Fix: Misconfigurations to compile for avr-zigbit platform
This commit is contained in:
parent
2604260653
commit
2c2b930648
2 changed files with 23 additions and 29 deletions
|
@ -95,15 +95,19 @@ PROCINIT(&etimer_process, &mac_process );
|
|||
#endif
|
||||
#endif
|
||||
/* Put default MAC address in EEPROM */
|
||||
#if MY_NODE_ID
|
||||
uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44,
|
||||
MY_NODE_ID};
|
||||
#else
|
||||
uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
init_lowlevel(void)
|
||||
{
|
||||
|
||||
/* Second rs232 port for debugging */
|
||||
rs232_init(RS232_PORT_1, USART_BAUD_115200,
|
||||
rs232_init(RS232_PORT_1, USART_BAUD_38400,
|
||||
USART_PARITY_NONE | USART_STOP_BITS_1 | USART_DATA_BITS_8);
|
||||
|
||||
/* Redirect stdout to second port */
|
||||
|
@ -167,8 +171,8 @@ init_lowlevel(void)
|
|||
#if ANNOUNCE_BOOT
|
||||
printf_P(PSTR("Routing Enabled\n"));
|
||||
#endif
|
||||
rime_init(rime_udp_init(NULL));
|
||||
uip_router_register(&rimeroute);
|
||||
//rime_init(rime_udp_init(NULL));
|
||||
//uip_router_register(&rimeroute);
|
||||
#endif
|
||||
#if NETSTACK_CONF_WITH_IPV6 || NETSTACK_CONF_WITH_IPV4
|
||||
process_start(&tcpip_process, NULL);
|
||||
|
@ -195,13 +199,13 @@ main(void)
|
|||
/* Register initial processes */
|
||||
// procinit_init();
|
||||
|
||||
/* Autostart processes */
|
||||
autostart_start(autostart_processes);
|
||||
|
||||
printf_P(PSTR("\n********BOOTING CONTIKI*********\n"));
|
||||
|
||||
printf_P(PSTR("System online.\n"));
|
||||
|
||||
/* Autostart processes */
|
||||
autostart_start(autostart_processes);
|
||||
|
||||
/* Main scheduler loop */
|
||||
while(1) {
|
||||
process_run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue