소스 검색

Merge pull request #1282 from enkiller/development

[drivers][pin]增加两种IO中断模式
Bernard Xiong 7 년 전
부모
커밋
24de9f144b
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