43 #include PLATFORM_HEADER
44 #include "hal/error.h"
54 #include "dev/watchdog.h"
56 #include "dev/button-sensor.h"
57 #include "dev/temperature-sensor.h"
58 #include "dev/acc-sensor.h"
59 #include "dev/uart1.h"
73 #define PRINTF(...) printf(__VA_ARGS__)
74 #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])
75 #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])
78 #define PRINT6ADDR(addr)
79 #define PRINTLLADDR(addr)
84 PROCINIT(&etimer_process, &tcpip_process, &sensors_process);
86 PROCINIT(&etimer_process, &sensors_process);
87 #warning "No TCP/IP process!"
90 SENSORS(&button_sensor,&temperature_sensor,&acc_sensor);
103 int8u *stm32w_eui64 = ST_RadioGetEui64();
106 for(c = 0; c < 8; c++) {
107 eui64.u8[c] = stm32w_eui64[7 - c];
110 PRINTF(
"\n\rRadio EUI-64:");
124 printf(
"Rime started with address ");
125 for(i = 0; i <
sizeof(rimeaddr_t) - 1; i++) {
149 PRINTF(
"\r\nStarting ");
150 PRINTF(CONTIKI_VERSION_STRING);
151 PRINTF(
" on %s\r\n",boardDescription->name);
159 #if WITH_SERIAL_LINE_INPUT
160 uart1_set_input(serial_line_input_byte);
166 ST_RadioEnableAutoAck(
FALSE);
167 ST_RadioEnableAddressFiltering(
FALSE);
178 ENERGEST_ON(ENERGEST_TYPE_CPU);
180 autostart_start(autostart_processes);
197 ENERGEST_OFF(ENERGEST_TYPE_CPU);
199 ENERGEST_ON(ENERGEST_TYPE_LPM);
204 ENERGEST_OFF(ENERGEST_TYPE_LPM);
205 ENERGEST_ON(ENERGEST_TYPE_CPU);
260 void Default_Handler()