I'm use freeRTOS in the primer 2, followed the guide's website FreeRTOS to do resume from isr but not working, someone can tell me what I'm doing wrong
code is isr handle:
void USART2_IRQHandler(void)
{
USART_ClearITPendingBit(USART2, USART_IT_CTS);
portBASE_TYPE xYieldRequired,xAlreadyYielded; // Resume the suspended task.
xYieldRequired = xTaskResumeFromISR( xHandle );
if( xYieldRequired == pdTRUE )
{ // We should switch context so the ISR returns to a different task.
// NOTE: How this is done depends on the port you are using. Check
// the documentation and examples for your port.
vPortYieldFromISR();
}
}
and task is suspend before try resume i am sure
ty for your time