move enable global interrupt
This commit is contained in:
		| @@ -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) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user