_init_startup option to call user code
Market leading real time kernel for 40+ microcontroller architectures
Brought to you by:
gaurav-aws,
rtel
This is specific to AVR32. The crt0.s file has a call to _init_startup, which FreeRTOS supplies. But, I'd like to run some of my own code at the same time - before C++ contstructors get called.
A nice way to do this would be to have a #define indicating whether FreeRTOS should call a user init_startup() before, or after, FreeRTOS executes its code in _init_startup.
One reason for this is wanting to have debugging output via RS-232 setup when the C++ constructors get called, to report problems (or confirm execution).
Now I can do this by adding my own code in port.c, but its the wrong place for me to put it.
The AVR32 port in the FreeRTOS download is for ES chips - Atmel (now Microchip) maintain their own version.