Skip to content

Add the ability to disable a peripheral #11934

@embeddedteam103

Description

@embeddedteam103

Description of defect

Hello!

I am using some SPIs in my projects in the following way - a user sends some bytes to the MCU and then the MCU sends the given bytes via the chosen SPI peripheral.
The thing is, that this project suppose to be low power and I dont want the SPI peripherals so stay active all the time.
Is there a way to disable the SPI peripheral clock with the SPI driver?
Is there even a way to disable any peripheral after initiated via mbed?

thanks!

Target(s) affected by this defect ?

All

Toolchain(s) (name and version) displaying this defect ?

IAR

What version of Mbed-os are you using (tag or sha) ?

5.14

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions