Hi, On Sat, Feb 14, 2015 at 05:17:06PM +0100, Joakim Gebart wrote: > > On 02/14/15 12:28, Ludwig Ortmann wrote: > >> > >> I created quick&dirty branches for both methods: > >> > >> plain c: > >> https://github.com/LudwigOrtmann/RIOT/tree/wip/remove-main-application-init > >> macro magic: > >> https://github.com/LudwigOrtmann/RIOT/tree/wip/remove-main-make > >> > >> Not sure which one I dislike better ;) > > I like the main-application-init version because it is still somewhat > simple to follow. Perhaps it would be possible to still keep the > trampoline but make it execute application_init instead of main and > let auto_init() execute from the trampoline. This eliminates the need > to modify the example applications.
My reason for moving autoinit to the application threads was that it is currently also executed in a thread context. I wasn't sure (and too lazy to find out) if there are good reasons for this. The test and example applications would need to be modified anyways. First to add the application_init function, and also because the main function need to be renamed. Cheers, Ludwig _______________________________________________ devel mailing list [email protected] http://lists.riot-os.org/mailman/listinfo/devel
