Skip to content

Use PTR constant instead of deprecated ptr() function on registers and peripherals #28

@ghost

Description

Command: crate build

Full warning:

warning: use of deprecated associated function `cortex_m::peripheral::MPU::ptr`: Use the associated constant `PTR` instead
   --> board-support/src/lib.rs:140:26
    |
140 |         let mpu = &*MPU::ptr();
    |                          ^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `nw-board-support` (lib) generated 1 warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions