Skip to content

[Feature request] uninit function in HAL to disable a peripheral #2407

Closed
@MarceloSalazar

Description

@MarceloSalazar

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions