-
Notifications
You must be signed in to change notification settings - Fork 3k
allow rtos idle thread to call sleep(); #2443
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
To enable power efficiency, the rtos loop should call sleep(). To my knowledge, this can be done regardless if the debugger interface is connected (at least it can on the Kinetis MCUs). If the debugger interface is connected, the device may not achieve as great of power savings, but it still can enter low power mode. Something is better than nothing.
@maclobdell Did you test this on the lpc boards that have local filesystem? There's relevant issue here: #143 |
Cc @bulislaw (he's working on something related to this). |
I'm working on a tickless mode, where we'll stop the SysTick, set wakeup timer and then call sleep. |
I cant make lpc11u24 neither lpc1768 debugging work (uvision, iar, makefile). Anyone to test for those platforms this patch? |
I believe this will eventually be a better solution, since tickless mode allows the OS to keep track of the time even while the MCU is asleep. |
Closing in favor of #2547 @maclobdell please make sure sleep() gets enabled by default for the non-tickless mode. |
re-opening because #2547 is postponed. |
@maclobdell can you resolve the conflict? |
@maclobdell github is still not happy :) |
created new pull request #3019 to replace this one. The change is identical. Trying to avoid potential git issue with this PR. |
To enable power efficiency, the rtos thread should call sleep(). To my knowledge, this can be done regardless if the debugger interface is connected (at least it can on the Kinetis MCUs). If the debugger interface is connected, the device may not achieve as great of power savings, but it still can enter low power mode. Something is better than nothing.