-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[topic-gpio] Convert GPIO mesh on/off samples to the new GPIO API #22129
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
[topic-gpio] Convert GPIO mesh on/off samples to the new GPIO API #22129
Conversation
|
@Vikrant8051 can you please review and test? |
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.
imperfect indentation
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.
Fixed, thank you.
|
Ok. I will test |
5e630fe to
fd35c41
Compare
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.
We could write it as vnd_user_data.current == STATE_ON ? 1 : 0 to be Misra-C compliant. A few more gpio_pin_set calls may need to be updated. Non blocking.
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.
are you missing calls to gpio_pin_interrupt_configure for sw0 through sw3?
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.
You are indeed right, fixed.
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.
Well spotted!
fd35c41 to
3ffe533
Compare
|
@MaureenHelm this should be ready now |
Tested on nrf52840_pca10056