Understanding user_init() and drivers etc
Posted: Wed Dec 10, 2014 2:04 am
Hi guys,
I've been trying to understand the structure of an esp8266 build, but I can't find any documentation about the core setup
It doesn't look like there is a main() in any of the "app" code ? I presume that this must be linked from the SDK and that it calls user_init() ?
Also I'm unclear about why there is a folder called driver , I can see that people put code in there to communicate with the UART etc, but I'm not sure why code needs to be put in that folder, or if it needs to be there at all
I've read the latest SDK document 0.9.2 and I can't see any mention of user_init() or drivers
Is there another document that describes an overview of the structure and hierarchy, build and run process ?
Another thing I'm unclear of is why the code is usually split into 2 blocks, I presume this is a code block and a data (text) block, but unless you want to keep replacing the code and not replacing the text this seems pointless
And I see in some things the app is split into even more blocks e.g. the web server I think is in 3 blocks
Can someone let me know where the documentation is that describes why this is done etc.
Thanks
Roger
I've been trying to understand the structure of an esp8266 build, but I can't find any documentation about the core setup
It doesn't look like there is a main() in any of the "app" code ? I presume that this must be linked from the SDK and that it calls user_init() ?
Also I'm unclear about why there is a folder called driver , I can see that people put code in there to communicate with the UART etc, but I'm not sure why code needs to be put in that folder, or if it needs to be there at all
I've read the latest SDK document 0.9.2 and I can't see any mention of user_init() or drivers
Is there another document that describes an overview of the structure and hierarchy, build and run process ?
Another thing I'm unclear of is why the code is usually split into 2 blocks, I presume this is a code block and a data (text) block, but unless you want to keep replacing the code and not replacing the text this seems pointless
And I see in some things the app is split into even more blocks e.g. the web server I think is in 3 blocks
Can someone let me know where the documentation is that describes why this is done etc.
Thanks
Roger