Hi
I am a little confused while I am migrating my old embOS Renesas source code to Microchip FreeRTOS.
In Renesas, we were using this below :
void far TA1_ISR()
{
P7 &= 0xFB; //sk cr step signal off//
OS_EnterNestableInterrupt();
Motor_timer();
OS_LeaveNestableInterrupt();
}
Now in Microchip, I am using this :
void TA1_ISR(uint32_t status, uintptr_t context) {
UBaseType_t TA1_ISR_uxSavedInterruptStatus;
TA1_ISR_uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
vTaskSuspendAll();
PORT_PinWrite(CR_CLK_PIN, false);
Motor_timer();
xTaskResumeAll();
taskEXIT_CRITICAL_FROM_ISR(TA1_ISR_uxSavedInterruptStatus);
}
Is this correct ?? If not then please help me out.