-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add shutdown mode to sleep api #6081
Comments
Please consider adding RTC::alarm service together with shutdown |
Internal Jira reference: https://jira.arm.com/browse/IOTHAL-83 |
Hi |
This is being tracked internally via another ticket. Thus this was closed and original kept (it's not on Github as an issue). @donatieng can correct me. |
Either way, if an issue was closed because it was duplicated, a message indicating what it's a duplicate of should be provided. |
Description
Shutdown api
Enhancement
Reason to enhance or problem with existing solution
Currently it is starting to work in the industrial sector with the internet of things.
One of the characteristics of IoT is the low consumption. To achieve this low consumption, manufacturers already have microcontrollers such as the STM32L4 capable of entering ultra-low consumption mode (shutdown), sacrificing information not stored in memory.
This utility is very useful at the moment but, in spite of the fact that in this case ST has implemented this functionality for its microcontroller, this function does not exist in the mbed library.
With the current library (sleep) you can only reach two operating modes (sleep and deepsleep) that have higher consumption than shutdown.
Therefore if you need to use the shutdown function in your project you need to go down to the HAL level and try to do it on your own. Possibly resulting errors since going down to the HAL layer implies losing the thread safety
Suggested enhancement
Add shutdown mode to de mbed library
Pros
-more easy to use for the user
-mbed will be more itnerested for the market, specially on Iot devices
Cons
-invalid function for some microcontrollers
The text was updated successfully, but these errors were encountered: