summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMiraculousConch <[email protected]>2017-10-20 03:28:13 +0800
committerMiraculousConch <[email protected]>2017-10-20 03:28:13 +0800
commitcfa87cf9382fda48a0b8e54ff9e8646fd6661f45 (patch)
treeca557005ac466d2a73102e9f58f4b247c6857965 /components
parente448ecc6ad805109480ecc191f0e2d786216a297 (diff)
STM32F10x HAL库的bsp分支
增加了pin设备的模式开漏和下拉 添加的HAL库的bsp分支
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 a76798e284..3dd512a391 100644
--- a/components/drivers/include/drivers/pin.h
+++ b/components/drivers/include/drivers/pin.h
@@ -45,6 +45,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