浏览代码

Merge branch 'master' of https://github.com/RT-Thread/rt-thread

moebius.ever 7 年之前
父节点
当前提交
3e7501113f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      components/drivers/include/drivers/pin.h

+ 2 - 0
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