diff --git a/306-controller_interface.X/main.c b/306-controller_interface.X/main.c index 6a05435..d81327c 100644 --- a/306-controller_interface.X/main.c +++ b/306-controller_interface.X/main.c @@ -10,8 +10,6 @@ void main(void) // Initialize the device SYSTEM_Initialize(); - // Enable the Global Interrupts - INTERRUPT_GlobalInterruptEnable(); // Disable the Global Interrupts // INTERRUPT_GlobalInterruptDisable(); @@ -29,6 +27,8 @@ void main(void) // TMR0 is interrupting. Important: Set the TICKINTERVAL define in //the xf.h file to the same value as the TMR0 value. TMR0_SetInterruptHandler(XF_decrementAndQueueTimers); + // Enable the Global Interrupts + INTERRUPT_GlobalInterruptEnable(); while (1) {