-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Driver: gpio: Add support of Open Drain GPIO for STM32 #13190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13190 +/- ##
==========================================
- Coverage 53.05% 48.86% -4.19%
==========================================
Files 313 317 +4
Lines 45706 46810 +1104
Branches 10584 10818 +234
==========================================
- Hits 24248 22873 -1375
- Misses 16547 19366 +2819
+ Partials 4911 4571 -340
Continue to review full report at Codecov.
|
1fc074a to
ef9f05b
Compare
mnkp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zephyr aims to be compatible with Linux DTS. The relevant bindings for the GPIO node are defined in Linux's dt-bindings gpio.h. To fulfill this requirement the flag to configure open drain mode should be called GPIO_OPEN_DRAIN. gpio_stm32.c needs to be updated.
There is no need to modify include/dt-bindings/gpio/gpio.h file since there exists already PR #12651 which attempts to add the flag (along with several others).
Add ability to configure an output GPIO as Open Drain. Add GPIO_OPEN_DRAIN flags for use with gpio_pin_configure. Signed-off-by: Benoit Leforestier <[email protected]>
ef9f05b to
4fe345a
Compare
|
Renamed GPIO_PUD_OPEN_DRAIN by GPIO_OPEN_DRAIN. |
|
Superseded by PR #16648 |
Add ability to configure an output GPIO as Open Drain.
Add GPIO_OPEN_DRAIN flags for use with gpio_pin_configure.