move enable global interrupt

This commit is contained in:
Rémi Heredero 2023-08-29 15:18:04 +02:00
parent af8b515578
commit 19547261bd

View File

@ -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)
{