summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-21 23:26:45 +0800
committerbernard <[email protected]>2017-10-21 23:26:45 +0800
commit1181c5b308e8aa253459469e8276d48dce76285d (patch)
tree2753f329a1419ab8c823e54d1b9c8c047b43336e /components/drivers/include
parent252432baf0d744b081c2416eee7c9959b0fb149e (diff)
parent67ffce7af2ce9778966afccd10560b56d887d1e3 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/pin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/pin.h b/components/drivers/include/drivers/pin.h
index a76798e284..9745aafdf7 100644
--- a/components/drivers/include/drivers/pin.h
+++ b/components/drivers/include/drivers/pin.h
@@ -20,6 +20,7 @@
* Change Logs:
* Date Author Notes
* 2015-01-20 Bernard the first version
+ * 2017-10-20 ZYH add mode open drain and input pull down
*/
#ifndef PIN_H__
@@ -45,6 +46,8 @@ struct rt_device_pin
#define PIN_MODE_OUTPUT 0x00
#define PIN_MODE_INPUT 0x01
#define PIN_MODE_INPUT_PULLUP 0x02
+#define PIN_MODE_INPUT_PULLDOWN 0x03
+#define PIN_MODE_OUTPUT_OD 0x04
#define PIN_IRQ_MODE_RISING 0x00
#define PIN_IRQ_MODE_FALLING 0x01