EMS/drv/drv_di.h

24 lines
647 B
C
Raw Normal View History

#ifndef __DRV_DI_H_
#define __DRV_DI_H_
2024-11-12 08:21:37 +08:00
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#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"
2024-11-12 08:21:37 +08:00
void drv_di_read(char *dev, char *value);
#endif