Skip to content
Snippets Groups Projects
Commit 6b36030d authored by Edward Longman's avatar Edward Longman
Browse files

Disable interrupts which are not handled

parent 63e53e05
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,6 @@ void main (void) ...@@ -87,7 +87,6 @@ void main (void)
*/ */
UCB1CTLW0 |= 0x00+UCMST + UCSYNC + UCMODE_0 + UCMSB + UCCKPH; UCB1CTLW0 |= 0x00+UCMST + UCSYNC + UCMODE_0 + UCMSB + UCCKPH;
UCB1CTLW0 |= UCSSEL_2; UCB1CTLW0 |= UCSSEL_2;
UCB1BRW = 4; UCB1BRW = 4;
// select bit RF_MISO_PIN, RF_MOSI_PIN, RF_SCLK as peripheral // select bit RF_MISO_PIN, RF_MOSI_PIN, RF_SCLK as peripheral
RF_PORT_SEL0 |= RF_MISO_PIN + RF_MOSI_PIN + RF_SCLK_PIN; RF_PORT_SEL0 |= RF_MISO_PIN + RF_MOSI_PIN + RF_SCLK_PIN;
...@@ -106,7 +105,8 @@ void main (void) ...@@ -106,7 +105,8 @@ void main (void)
/* Release for operation */ /* Release for operation */
UCB1CTLW0 &= ~UCSWRST; UCB1CTLW0 &= ~UCSWRST;
//trxRfSpiInterfaceInit(4); //trxRfSpiInterfaceInit(4);
UCB1IE=0;
__enable_interrupt(); __enable_interrupt();
/* Infinite loop with a 1 second timer */ /* Infinite loop with a 1 second timer */
while(1) while(1)
...@@ -124,6 +124,7 @@ void main (void) ...@@ -124,6 +124,7 @@ void main (void)
P3OUT ^= BIT4; P3OUT ^= BIT4;
waited = hal_timer_wait(0x09C4); waited = hal_timer_wait(0x09C4);
P3OUT ^= BIT4; P3OUT ^= BIT4;
UCB1TXBUF= (uint8)idle_counter;
ee_printf("Waited:0x%4X\n\r", waited); ee_printf("Waited:0x%4X\n\r", waited);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment