Skip to content

Make VolatilePtr::new const #65

Description

@flaviojs

I tried to use VolatilePtr::new to create a const that points to a u32 register.
I could not and had to use VolatilePtr::new_restricted instead.

Looking at the source, VolatilePtr::new calls VolatilePtr::new_restricted so I don't see why it can't be const.
Please make it const.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions