-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Fix button support for frdm_mcxw71 #86736
base: main
Are you sure you want to change the base?
Fix button support for frdm_mcxw71 #86736
Conversation
@fabiobaltieri would this be able to get into 4.1 by any chance? |
It's a bit on the late side, is this correct btw? SW2 appears to be on |
You are correct, I need to look at this more gpioc alone for some reason does not allow the button to function correctly. |
Ok, it seems like the issue is somewhere else, let's not rush, see if you can figure what is actually wrong and then fix it properly and backport it. |
The SW2 needs the PULL UP flag to be set to be enabled. Signed-off-by: Emilio Benavente <[email protected]>
080cbba
eec3b46
to
080cbba
Compare
This PR has now been updated with correct change. |
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.
Now I'm even more confused by how it could have possibly worked by enabling the gpioa device but ok, this makes sense.
the pin was floating, so literally just breathing on it could change the button behavior, and enabling another thing on the device could also, so I can see where the confusion came from |
Fixes #86735
SW2 Needed the GPIO_PULL_UP flag to be set.