summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authormoebius.ever <[email protected]>2018-03-15 11:58:56 +0800
committermoebius.ever <[email protected]>2018-03-15 11:58:56 +0800
commit3e7501113fa90394bad7ec9b63a97b650d7cf559 (patch)
tree22724d21f68785c984e0271f5d039031703339ad /components
parent336c946b8499727c4678bd3893b1878f9620a142 (diff)
parent24de9f144b518445cf0bf649abf777a9256900cc (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
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