#ifndef __DRV_DI_H_ #define __DRV_DI_H_ #include #include #include #define DRV_DI_H 1 #define DRV_DI_L 0 #define DRV_DI1 "/sys/class/gpio-input/DIN1/state" #define DRV_DI2 "/sys/class/gpio-input/DIN2/state" #define DRV_DI3 "/sys/class/gpio-input/DIN3/state" #define DRV_DI4 "/sys/class/gpio-input/DIN4/state" #define DRV_DI5 "/sys/class/gpio-input/DIN5/state" #define DRV_DI6 "/sys/class/gpio-input/DIN6/state" #define DRV_DI7 "/sys/class/gpio-input/DIN7/state" #define DRV_DI8 "/sys/class/gpio-input/DIN8/state" #define DRV_KEY "sys/class/gpio-input/FWn/state" void drv_di_read(char *dev, char *value); #endif