Call startup sequence stage 3 later
This commit is contained in:
parent
f89da621d9
commit
f2ee2c706c
@ -88,8 +88,6 @@ main(void)
|
|||||||
|
|
||||||
netstack_init();
|
netstack_init();
|
||||||
|
|
||||||
platform_init_stage_three();
|
|
||||||
|
|
||||||
#if NETSTACK_CONF_WITH_IPV6
|
#if NETSTACK_CONF_WITH_IPV6
|
||||||
memcpy(&uip_lladdr.addr, &linkaddr_node_addr, sizeof(uip_lladdr.addr));
|
memcpy(&uip_lladdr.addr, &linkaddr_node_addr, sizeof(uip_lladdr.addr));
|
||||||
queuebuf_init();
|
queuebuf_init();
|
||||||
@ -104,6 +102,8 @@ main(void)
|
|||||||
serial_shell_init();
|
serial_shell_init();
|
||||||
#endif /* BUILD_WITH_SHELL */
|
#endif /* BUILD_WITH_SHELL */
|
||||||
|
|
||||||
|
platform_init_stage_three();
|
||||||
|
|
||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
watchdog_start();
|
watchdog_start();
|
||||||
|
@ -48,9 +48,9 @@
|
|||||||
* - Initialises core Contiki-NG modules, such as the process scheduler and
|
* - Initialises core Contiki-NG modules, such as the process scheduler and
|
||||||
* timers
|
* timers
|
||||||
* - Calls a platform-provided function to initialise more hardware drivers
|
* - 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
|
* - 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
|
* 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.
|
* platform-dependent function to put the hardware in a low-power state.
|
||||||
|
Loading…
Reference in New Issue
Block a user