forked from tschmid/tinyos-2.x
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
... 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;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels