void vEMACISR_Wrapper( void ) { /* Save the context of the interrupted task. */ portSAVE_CONTEXT(); /* Call the handler to do the work. This must be a separate function to ensure the stack frame is set up correctly. */ vEMACISR_Handler(); /* Restore the context of whichever task will execute next. */ portRESTORE_CONTEXT(); }
void vEMACISR_Wrapper( void ) { /* Save the context of the interrupted task. */ portSAVE_CONTEXT(); /* Call the handler task to do the actual work. This must be a separate function to ensure the stack frame is correctly set up. */ vEMACISR_Handler(); /* Restore the context of whichever task is the next to run. */ portRESTORE_CONTEXT(); }