Call startup sequence stage 3 later

This commit is contained in:
George Oikonomou 2017-10-15 17:33:27 +01:00 committed by George Oikonomou
parent f89da621d9
commit f2ee2c706c
2 changed files with 4 additions and 4 deletions

View File

@ -88,8 +88,6 @@ main(void)
netstack_init();
platform_init_stage_three();
#if NETSTACK_CONF_WITH_IPV6
memcpy(&uip_lladdr.addr, &linkaddr_node_addr, sizeof(uip_lladdr.addr));
queuebuf_init();
@ -104,6 +102,8 @@ main(void)
serial_shell_init();
#endif /* BUILD_WITH_SHELL */
platform_init_stage_three();
autostart_start(autostart_processes);
watchdog_start();

View File

@ -48,9 +48,9 @@
* - Initialises core Contiki-NG modules, such as the process scheduler and
* timers
* - Calls a platform-provided function to initialise more hardware drivers
* - Initialises the network stack
* - Initialises the network stack and TCP/IP
* - Calls a platform-provided function to initialise any remaining drivers
* - Initialises TCP/IP and enters the main loop
* - Enters the main loop
*
* The main loop will service all pending events and will then call a
* platform-dependent function to put the hardware in a low-power state.