Contiki 3.x
reset-sensor.h
1 #ifndef __RESET_SENSOR_H__
2 #define __RESET_SENSOR_H__
3 
4 #include <stdint.h>
5 #include "lib/sensors.h"
6 #include "dev/flash.h"
7 
8 /**
9  * Bytes used by the reset-sensor.
10  * Can be used to reserve space in the flash
11  */
12 #define RESET_SENSOR_SIZE FLASH_PAGE_SIZE
13 
14 extern const struct sensors_sensor reset_sensor;
15 
16 void reset_counter_reset();
17 
18 #endif /* __RESET_SENSOR_H__ */