Hi,
This is the code I need to make compatible with RV.
void vPortYieldProcessor( void ) { __asm{ ADD lr, lr, #4 }; /* Perform the context switch. */ portSAVE_CONTEXT(); vTaskSwitchContext(); portRESTORE_CONTEXT(); }
With this code. I received error "lr is undefined"
After reading the manual, and probably understood incorrectly, I put declaration
#define lr __return_address()
before the above function, and received this error instead
..\..\Source\portable\Keil\ARM7\portISR.c(98): error: #1093: Must be a modifiable lvalue
Anyone can help? Thanks