fix typos/loose defines
authorEugene Crosser <evgenii.cherkashin@profitbricks.com>
Mon, 11 Dec 2017 17:19:44 +0000 (18:19 +0100)
committerEugene Crosser <evgenii.cherkashin@profitbricks.com>
Mon, 11 Dec 2017 17:19:44 +0000 (18:19 +0100)
Signed-off-by: Eugene Crosser <evgenii.cherkashin@profitbricks.com>
msp430/main.c

index 5d03cca04d33314f26f55b56db6791904824b907..7de46c33bb0835c18fcce8c47781ec06491ccf4c 100644 (file)
@@ -58,10 +58,10 @@ int main(void)
        {
                unsigned int events;
 
        {
                unsigned int events;
 
-               _disable_interrupt();
+               _disable_interrupts();
                events = irq_events;
                irq_events = 0;
                events = irq_events;
                irq_events = 0;
-               _enable_interrupt();
+               _enable_interrupts();
 
                // Button 2 or PIR events initiate light measurement and tuns on green led
                if (events & (1<<ev_btn2|1<<ev_pir1|1<<ev_pir2)) {
 
                // Button 2 or PIR events initiate light measurement and tuns on green led
                if (events & (1<<ev_btn2|1<<ev_pir1|1<<ev_pir2)) {
@@ -124,7 +124,7 @@ int main(void)
                __bis_SR_register(LPM0_bits | GIE);
                __no_operation();
        }
                __bis_SR_register(LPM0_bits | GIE);
                __no_operation();
        }
-       retun 0; /* not reached */
+       return 0; /* not reached */
 }
 
 // TIMER interrupt routine
 }
 
 // TIMER interrupt routine