#ifndef _LED_H_INCLUDED #define _LED_H_INCLUDED #include #define LED_VERSION "v1.1" #define LED_MAJOR 166 #define LED_DEV_NUM 13 #define LED_GPIO_START 1 #define GPIO_MAJOR 167 #define GPIO_DEV_NUM 16 #define REG_MINOR 128 //#define GPIO_IO_BASE 0xB4002480 #define GPIO_IO_BASE ((unsigned long)0xb20000b8) #define GPIO_IO_EXTENT 0x40 #define LED_ON 0x010000 #define LED_OFF 0x020000 #define LED_BLINK_CMD 0x030000 #define LED_BLINK_PERIOD 0x00FFFF #define LED_BLINK (LED_BLINK_CMD|1000) #define LED_BLINK_FAST (LED_BLINK_CMD|250) #define LED_BLINK_SLOW (LED_BLINK_CMD|500) #define LED_BLINK_EXTRA_SLOW (LED_BLINK_CMD|2000) #define LED_SET_OFF _IOC(_IOC_WRITE, 'j', 0, 4) #define LED_SET_ON _IOC(_IOC_WRITE, 'j', 1, 4) #define LED_GET _IOC(_IOC_READ , 'j', 12, 4) #endif