From 19547261bd79a1e5e065754e0ba84de2300e1549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Tue, 29 Aug 2023 15:18:04 +0200 Subject: [PATCH] move enable global interrupt --- 306-controller_interface.X/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {