BeRTOS
hw_sensor.h
Go to the documentation of this file.
00001 
00039 #ifndef HW_SENSOR_H
00040 #define HW_SENSOR_H
00041 
00042 #warning TODO:This is an example implementation, you must implement it!
00043 
00044 #define NUM_HOME_SENSORS 1
00045 
00046 
00047 INLINE bool hw_home_sensor_read(int sensor)
00048 {
00049         /* Implement me! */
00050 
00051         //Only for test remove when implement this function
00052         (void)sensor;
00053         return 0;
00054 }
00055 
00056 INLINE void hw_home_sensor_set_inverted(int sensor, bool inverted)
00057 {
00058         /* Implement me! */
00059 
00060         //Only for test remove when implement this function
00061         (void)sensor;
00062         (void)inverted;
00063 }
00064 
00065 INLINE bool hw_level_sensor_read(int sensor)
00066 {
00067         /* Implement me! */
00068 
00069         //Only for test remove when implement this function
00070         (void)sensor;
00071         return 0;
00072 }
00073 
00074 INLINE void hw_level_sensor_set_inverted(int sensor, bool inverted)
00075 {
00076         /* Implement me! */
00077 
00078         //Only for test remove when implement this function
00079         (void)sensor;
00080         (void)inverted;
00081 }
00082 
00083 INLINE bool bld_hw_sensor_read(int sensor)
00084 {
00085         /* Implement me! */
00086 
00087         //Only for test remove when implement this function
00088         (void)sensor;
00089         return 0;
00090 }
00091 
00092 #endif /* HW_SENSOR_H */