Closed
Description
Feature request
Use case:
As developer, I want to develop low-power applications that make the best usage of the battery in the system.
In many situations, it's common to leave an MCU in sleep/low-power state for long periods of time.
For example, if an ADC is used while the MCU is turned on, the developer has to make sure the ADC is turned off before the device goes to sleep.
At the moment, the way to do this is by accessing the device's registers from the top-level application, which is clearly not ideal as interferes with the hal.
Request:
Add xxxx_uninit
function in the hal to let developers disable peripherals in a clean way.