Skip to content

WMODE not entirely correct #98

@Sympatron

Description

@Sympatron

Technically the following line would have to set NVMCTRL_CTRLA_WMODE_MAN_Val instead of NVMCTRL_CTRLA_WMODE_MAN, because the latter is already shifted and therefore not meant to be written to the bitfield. This only worked, because NVMCTRL_CTRLA_WMODE_MAN_Val is 0x0, otherwise this would not have worked.

NVMCTRL->CTRLA.bit.WMODE = NVMCTRL_CTRLA_WMODE_MAN;

I know this is nitpicky since it works, but this code would break down if somebody used it as a reference and tried to use another mode.

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