Enabling/Disabling Interrupts
Regarding my previous post on the interrupt crashing the FreeRTOS tasks, I went and research on the method used for enabling and disabling interrupts on AEMB through software. There are two simple functions used to do the job, which are portDISABLE_INTERRUPTS() and portENABLE_INTERRUPTS(). These two functions will disable and enable the interrupts. These are implemented in the task itself. void vTestTask1(void *pvParameters) { while (1) { portDISABLE_INTERRUPTS(); iprintf(“task 1”); portENABLE_INTERRUPTS(); } } and void vTestTask1(void *pvParameters) { while (1) { Read more