summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-10-20 15:45:35 +0800
committerGitHub <[email protected]>2017-10-20 15:45:35 +0800
commit5e22c23d72db78696cbfb606db856e2c6cb5f590 (patch)
tree51313d0a10500d85bec01d820073ce74092659ca /components
parent0f6e68ff0affd593c959f0668472542196b8cbf4 (diff)
parenta004dfa3611764288aebaa623caa62c47d73e1f6 (diff)
Merge pull request #891 from uestczyh222/master
[BSP] Add stm32f10x_HAL bsp.
Diffstat (limited to 'components')
-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