-
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
[nrfconnect] Optimized application main loop wake up interval #10644
Merged
bzbarsky-apple
merged 1 commit into
project-chip:master
from
kkasperczyk-no:main_loop_optimization
Oct 20, 2021
Merged
[nrfconnect] Optimized application main loop wake up interval #10644
bzbarsky-apple
merged 1 commit into
project-chip:master
from
kkasperczyk-no:main_loop_optimization
Oct 20, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chulspro,
Damian-Nordic,
emargolis,
franck-apple,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel,
LuDuda,
mrjerryjohns,
msandstedt,
mspang,
pan-apple,
sagar-apple,
saurabhst,
shana-apple,
tcarmelveilleux,
turon,
vivien-apple,
wbschiller and
woody-apple
October 19, 2021 06:00
saurabhst
approved these changes
Oct 19, 2021
PR #10644: Size comparison from 1623b4b to 58c6c67 8 builds (for k32w, p6, qpg, telink)
14 builds (for efr32, linux, mbed)
|
kkasperczyk-no
force-pushed
the
main_loop_optimization
branch
from
October 19, 2021 06:42
58c6c67
to
fb92579
Compare
PR #10644: Size comparison from 4c7f664 to fb92579 8 builds (for k32w, p6, qpg, telink)
14 builds (for efr32, linux, mbed)
2 builds (for esp32)
10 builds (for nrfconnect)
|
Size increase report for "nrfconnect-example-build" from 4c7f664
Full report output
|
Damian-Nordic
approved these changes
Oct 19, 2021
Changing to draft, a bug was spotted |
Application wakes up MCU every 10 ms to update LEDs state and handle events even if it's not necessary. * Moved updating BLE connection and Thread state from main loop to Matter event handler * Moved updating LED state from main loop to event handler * Refactored LEDWidget module to use timer and change LEDs state on timer expiration. * By the way spotted and removed unused lighting-app/nrfconnect/child_image/mcuboot.conf file
kkasperczyk-no
force-pushed
the
main_loop_optimization
branch
from
October 19, 2021 12:11
fb92579
to
b579ddb
Compare
Bug fixed |
PR #10644: Size comparison from 4c7f664 to b579ddb 16 builds (for k32w, linux, p6, qpg, telink)
6 builds (for efr32, mbed)
2 builds (for esp32)
10 builds (for nrfconnect)
|
bzbarsky-apple
approved these changes
Oct 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Application wakes up MCU every 10 ms to update LEDs state and handle events even if it's not necessary.
Change overview
Testing
Tested manually on nrfconnect platform that application functional behavior despite main loop optimization didn't change