1- What’s the difference between taskEnterCritical, portEnterCritical and portDISABLE_INTERRUPTS API functions?
2- Suppose i have the following Task and IRQ handler in my running program:
IRQ_Handler /* Priority supposed to be above MAX_SYSCALL_INTERRUPT_PRIORITY */
flag = TRUE;
bool mysecflag = FALSE;
portDISABLE_INTERRUPTS(); /* Whitch API should i use? portDISABLE, taskENTER_CRITICAL? */
mysecflag = flag;
if (mysecflag == TRUE)
mysecflag = FALSE
3- Does freertos mask some interrupts priority level in a Cortex M0+? or it enables and disables global interrupts?
Thanks in advance