Initializing DSP System & Control Registers From C and C++
The document provides methods for initializing system registers in C code. For memory-mapped control registers, it describes dereferencing C pointers to access specific addresses, utilizing include files like defxxxx.h that define register addresses and bit fields.
For non-memory-mapped control registers (such as the MODE2 or IMASK registers), the note details the use of inline assembly and macros provided in sysreg.h. It lists functions for reading, writing, setting, clearing, toggling, and testing bits within these registers.
You dereference a C pointer pointing to the address, for example: * (int *) OxlO = Oxffff;
The include file provides prototypes such as sysreg_read, sysreg_write, and sysreg_bit_clr.