-
Notifications
You must be signed in to change notification settings - Fork 224
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
feature request: add support for StopMode #1041
Comments
Would it be feasible to implement the What is the use case that would necessitate something like this? Especially if you're using the Adding support for en/disabling the interrupt in the monotonic, and fast-forwarding it seems like a somewhat heavy maintenance burden for a potentially niche use-case. |
the RTC is not Monotonic. It only calls interrupt every second to wake us up from deep sleep.
To decrease power consumption, we have to enter StopMode. We can't accept any interrupt during StopMode including Systic interrupt.
I understand. but with the current implementation of Systick there is no way to implement fast-forward and we have to copy the whole Systick code to our code base. if New feature requestmake unsafe fn systick_cnt() -> &AtomicU32 {
&SYSTICK_CNT
} |
Hi @smmoosavi, Thank you for the feature request, we discussed it during today's meeting. All the best! |
To have low power mode, we should enter
StopMode
. Before entering stop mode, we should disable theSYST
interrupt, and enable it when exiting stop mode.We also need to fast-forward the
SYSTICK_CNT
value to keep it in sync with the real time.I am not sure where is the best place for these functions to be implemented,
SystickBackend
or another struct/trait.The text was updated successfully, but these errors were encountered: