[drivers][pin]增加两种IO中断模式

This commit is contained in:
tangyuxin 2018-03-15 11:05:43 +08:00
parent 93f5e3e466
commit a745d5ee03
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ struct rt_device_pin
#define PIN_IRQ_MODE_RISING 0x00 #define PIN_IRQ_MODE_RISING 0x00
#define PIN_IRQ_MODE_FALLING 0x01 #define PIN_IRQ_MODE_FALLING 0x01
#define PIN_IRQ_MODE_RISING_FALLING 0x02 #define PIN_IRQ_MODE_RISING_FALLING 0x02
#define PIN_IRQ_MODE_HIGH_LEVEL 0x03
#define PIN_IRQ_MODE_LOW_LEVEL 0x04
#define PIN_IRQ_DISABLE 0x00 #define PIN_IRQ_DISABLE 0x00
#define PIN_IRQ_ENABLE 0x01 #define PIN_IRQ_ENABLE 0x01