-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[TOPIC-GPIO] drivers: stellaris: update to use new GPIO API #19384
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
|
AFAICT this platform exists only as a basis for Why are we keeping this? |
196772b to
988014d
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.
The gpio_stellaris_configure function should also be updated.
988014d to
1165a77
Compare
|
Seems like this PR was rebased but no changes to the driver code were applied. |
1165a77 to
c671478
Compare
should be fixed now. |
|
It seems like it's again the same version, no changes. |
|
Line 194 should be changed. That was the only review comment that was made. |
|
I've opened the PR in another browser, just in case, still the line 194 is written as which is the original. I believe it should be written as since Apart from line 194 also |
c671478 to
fbe2dc8
Compare
Gotcha, sorry bit a little while since I worked on the driver. Should now hopefully be fixed correctly. |
|
It worked. However, we also need to update |
fbe2dc8 to
67ba5de
Compare
Should now be updated. |
67ba5de to
8b3f4d9
Compare
8b3f4d9 to
e02eccc
Compare
|
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
|
Not sure I follow where in the code we should handle 'disconnected' mode. Was thinking we'd have: |
e02eccc to
104c5c7
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.
Was thinking we'd have:
if (flags & INPUT) ... else if (flags & OUTPUT) ... else /* disconnect */
This version of the code looks good with the only remark that we should test first for GPIO_OUTPUT flag and then have } else if (flags & INPUT) {. If we swap the branches the code should also work if user passes both flags simultaneously (GPIO_OUTPUT | GPIO_INPUT). The pin will be configured as an output, but the input direction should also work as long as the pin is in push-pull mode.
104c5c7 to
1ad401b
Compare
1ad401b to
bda7b40
Compare
bda7b40 to
dff82c8
Compare
dff82c8 to
ba7aa7d
Compare
Update driver code and board files to use new GPIO configuration flags such as GPIO_ACTIVE_LOW. Also add implementation of new port_* driver API as well as gpio_pin_interrupt_configure function. Signed-off-by: Kumar Gala <[email protected]>
ba7aa7d to
f0e00e7
Compare
Update driver code and board files to use new GPIO configuration flags
such as GPIO_ACTIVE_LOW. Also add implementation of new port_* driver
API as well as gpio_pin_interrupt_configure function.
Signed-off-by: Kumar Gala [email protected]