Skip to content

Register Definitions #8

@wanja

Description

@wanja

... adapt them to our new convenction, which avoids problems by the compiler choosing non-word accesses for writing them.

Mail by Thomas from Oct 19, 2009:

  • the basepointer register is always CAPITALIZED
  • the "temporary" memory variable has the same name, but is lower-case

so, for example
volatile spi_csr_t CSR = (volatile spi_csr_t)0x60004000;

then in the code

spi_csr_t csr = *CSR;
// do operations on csr
*CSR = csr;

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