summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2018-03-15 11:05:43 +0800
committertangyuxin <[email protected]>2018-03-15 11:12:22 +0800
commita745d5ee031f304727ca360ac4aa8ddd98c06ff6 (patch)
tree17a6da1f39bc8ecb167100c5c4fb493596a7c453 /components
parent93f5e3e466af0e89a3cbce55443cad491844e9fc (diff)
[drivers][pin]增加两种IO中断模式
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/pin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/pin.h b/components/drivers/include/drivers/pin.h
index a4ac39c75b..d21fc28bd9 100644
--- a/components/drivers/include/drivers/pin.h
+++ b/components/drivers/include/drivers/pin.h
@@ -52,6 +52,8 @@ struct rt_device_pin
#define PIN_IRQ_MODE_RISING 0x00
#define PIN_IRQ_MODE_FALLING 0x01
#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_ENABLE 0x01