Skip to content

STM32: introducing a const constructor for rcc::Config #4213

@ROMemories

Description

@ROMemories

Currently, the only way of instantiating an embassy_stm32::rcc::Config is through the Default trait, which of course makes it not instantiable from const contexts.

Would you consider a PR that introduces a const new() constructor method on that type (and on the children types required for that), so that it is possible to instantiate it in const contexts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions