📄 misc_gpio.h
字号:
/*
* include/misc_gpio.h for Linux .
*
*
* History:
* 10-April-2006 create this file
*/
#ifndef _MISC_GPIO_H
#define _MISC_GPIO_H
#define DEVICE_NAME "misc_gpio"
#define IRQ_2 8
#define IRQ_3 9
#define GPIO_2_PORT GPIO_2
#define GPIO_3_PORT GPIO_3
#define GPIO_2_PORT_ADDR GPIO_2_BASE
#define GPIO_3_PORT_ADDR GPIO_3_BASE
#define CHOOSE_TW2834 0
#define CHOOSE_DC 1
#define SCULL_IOC_MAGIC 'm'
#define SULL_IOCMISCGPIO _IOW(SCULL_IOC_MAGIC,1,sizeof(int))
#define margin_usb HZ
#define margin_sd HZ/100
typedef void (* func_type)(int);
extern int get_sd_state(void);
extern void sd_insert_hook(func_type);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -