EMS/drv/drv_do.h

24 lines
692 B
C
Raw Normal View History

#ifndef __DRV_DO_H_
#define __DRV_DO_H_
2024-11-12 08:21:37 +08:00
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#define DRV_DO1 "/sys/class/leds/do1/brightness"
#define DRV_DO2 "/sys/class/leds/do2/brightness"
#define DRV_DO3 "/sys/class/leds/do3/brightness"
#define DRV_DO4 "/sys/class/leds/do4/brightness"
#define DRV_DO5 "/sys/class/leds/do5/brightness"
#define DRV_DO6 "/sys/class/leds/do6/brightness"
#define DRV_LED1 "/sys/class/leds/can0/brightness"
#define DRV_LED2 "/sys/class/leds/can1/brightness"
#define DRV_LED3 "/sys/class/leds/led1/brightness"
#define DRV_LED4 "/sys/class/leds/led2/brightness"
2024-11-12 08:21:37 +08:00
#define DRV_DO_H "1"
#define DRV_DO_L "0"
void drv_do_write(char *dev, char *value);
#endif