Skip to content

Decide on consistent strategy for enabling peripherals #154

@hannobraun

Description

@hannobraun

@burrbull wrote this in #152 (comment):

I would say you need to decide what API you want.
Now all peripheral init functions are different.
Some take &mut APBx, other &mut Rcc. Some take nothing and make peripheral enable in unsafe, other in interrupt::free mode.

My reply in #152 (comment):

Not sure, to be honest. It's been a while since I actually used this HAL, or worked on the design of a STM32 HAL, or really thought about the design of STM32 HALs.

It would be better if it was consistent, of course, but I don't know which of the options is best. Suggestions welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions