[DeviceDrivers]添加pin开漏和下拉输入宏

[DeviceDrivers]添加pin开漏和下拉输入宏
This commit is contained in:
MiraculousConch 2017-10-20 14:22:10 +08:00
parent 000a0388d5
commit c564605c98
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ struct rt_device_pin
#define PIN_MODE_OUTPUT 0x00 #define PIN_MODE_OUTPUT 0x00
#define PIN_MODE_INPUT 0x01 #define PIN_MODE_INPUT 0x01
#define PIN_MODE_INPUT_PULLUP 0x02 #define PIN_MODE_INPUT_PULLUP 0x02
#define PIN_MODE_INPUT_PULLDOWN 0x03
#define PIN_MODE_OUTPUT_OD 0x04
#define PIN_IRQ_MODE_RISING 0x00 #define PIN_IRQ_MODE_RISING 0x00
#define PIN_IRQ_MODE_FALLING 0x01 #define PIN_IRQ_MODE_FALLING 0x01