44 #include PLATFORM_HEADER
45 #include "hal/error.h"
55 #include "dev/watchdog.h"
57 #include "dev/button-sensor.h"
58 #include "dev/temperature-sensor.h"
59 #include "dev/acc-sensor.h"
60 #include "dev/uart1.h"
74 #define PRINTF(...) printf(__VA_ARGS__)
75 #define PRINT6ADDR(addr) PRINTF(" %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x ", ((u8_t *)addr)[0], ((u8_t *)addr)[1], ((u8_t *)addr)[2], ((u8_t *)addr)[3], ((u8_t *)addr)[4], ((u8_t *)addr)[5], ((u8_t *)addr)[6], ((u8_t *)addr)[7], ((u8_t *)addr)[8], ((u8_t *)addr)[9], ((u8_t *)addr)[10], ((u8_t *)addr)[11], ((u8_t *)addr)[12], ((u8_t *)addr)[13], ((u8_t *)addr)[14], ((u8_t *)addr)[15])
76 #define PRINTLLADDR(lladdr) PRINTF(" %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x ",lladdr.u8[0], lladdr.u8[1], lladdr.u8[2], lladdr.u8[3],lladdr.u8[4], lladdr.u8[5], lladdr.u8[6], lladdr.u8[7])
79 #define PRINT6ADDR(addr)
80 #define PRINTLLADDR(addr)
85 PROCINIT(&etimer_process, &tcpip_process, &sensors_process);
87 PROCINIT(&etimer_process, &sensors_process);
88 #warning "No TCP/IP process!"
91 SENSORS(&button_sensor,&temperature_sensor,&acc_sensor);
104 int8u *stm32w_eui64 = ST_RadioGetEui64();
107 for(c = 0; c < 8; c++) {
108 eui64.u8[c] = stm32w_eui64[7 - c];
111 PRINTF(
"\n\rRadio EUI-64:");
125 printf(
"Rime started with address ");
126 for(i = 0; i <
sizeof(rimeaddr_t) - 1; i++) {
150 PRINTF(
"\r\nStarting ");
151 PRINTF(CONTIKI_VERSION_STRING);
152 PRINTF(
" on MB851\r\n");
160 #if WITH_SERIAL_LINE_INPUT
161 uart1_set_input(serial_line_input_byte);
167 ST_RadioEnableAutoAck(
FALSE);
168 ST_RadioEnableAddressFiltering(
FALSE);
179 ENERGEST_ON(ENERGEST_TYPE_CPU);
181 autostart_start(autostart_processes);
198 ENERGEST_OFF(ENERGEST_TYPE_CPU);
200 ENERGEST_ON(ENERGEST_TYPE_LPM);
205 ENERGEST_OFF(ENERGEST_TYPE_LPM);
206 ENERGEST_ON(ENERGEST_TYPE_CPU);
261 void Default_Handler()