Contiki 2.5
pir-sensor.h
1 #ifndef __PIR_SENSOR_H__
2 #define __PIR_SENSOR_H__
3 
4 #include "lib/sensors.h"
5 
6 extern const struct sensors_sensor pir_sensor;
7 
8 #define PIR_SENSOR "PIR"
9 
10 void pir_sensor_changed(int strength);
11 
12 #define PIR_ENABLE_EVENT 1
13 
14 #endif /* __PIR_SENSOR_H__ */