Using rtos SDK i was able to develop and run successfully some simple examples, but I need to understand.
Normally a c / c++ program starts with main(...) (I don't remember the exact signature)
RTOS projects seem to start almost all with app_main() and some examples online with user_init()
A text search throughout all sources did not help me. It seems that there is a startup.c that in turn calls app_main but this does not explain why some other examples (https://github.com/espressif/esp8266-rtos-sample-code/blob/master/03Wifi/Soft_AP_DEMO/user/user_main.c that I did not try) have another entrypoint.
Can somebody explain how it is structured? "Who" is calling app_main?