From a745d5ee031f304727ca360ac4aa8ddd98c06ff6 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Thu, 15 Mar 2018 11:05:43 +0800 Subject: [PATCH] =?UTF-8?q?[drivers][pin]=E5=A2=9E=E5=8A=A0=E4=B8=A4?= =?UTF-8?q?=E7=A7=8DIO=E4=B8=AD=E6=96=AD=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/include/drivers/pin.h | 2 ++ 1 file changed, 2 insertions(+) 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