-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Infineon] Implement button wake up handler #26178
[Infineon] Implement button wake up handler #26178
Conversation
ee77ba2
to
46d0ae0
Compare
PR #26178: Size comparison from b187c3e to 46d0ae0 Full report (1 build for cc32xx)
|
46d0ae0
to
7257311
Compare
PR #26178: Size comparison from f3f7ecd to 7257311 Increases (1 build for nrfconnect)
Decreases (1 build for cc32xx)
Full report (7 builds for cc32xx, mbed, nrfconnect, qpg)
|
* Add API to re-send the pending event if wake up from button.
7257311
to
759ae73
Compare
PR #26178: Size comparison from c2a28c8 to 759ae73 Full report (7 builds for cc32xx, mbed, nrfconnect, qpg)
|
/** | ||
* Checks if there is pending event and then re-send the event. | ||
* | ||
* @return void : no return value is expected. |
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.
nit: doccommenting returing void
is a waste of vertical space.
Also this is copied and pasted from the header, so any updates would have to be done twice. It is up to infineon conding standards, so I will merge, however this is the opinion for an external reviewer.
void wiced_button_manager_pending_event_handle(void) | ||
{ | ||
uint32_t a; | ||
if (wiced_sleep_get_boot_mode() == WICED_SLEEP_FAST_BOOT) |
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.
nit: you often want to decrease indent, so if you would do if (wiced_sleep_get_boot_mode() != WICED_SLEEP_FAST_BOOT) return;
you would decrease one level an make the function a bit flatter which helps in following code.
Problem
The pending event are not handled if wake up from button.
Change overview
Add an API to handle the pending event if wake up from button.
Testing
Tested manually with chip-tool.