I'm currently converting AMR-WB onto a SAMD21G18A development board and have come up against a problem I have not been able to solve. I have a .H file that includes all of the hardware equates but it doesn't always work.
I define in the normal assembly language format:
<name of address or mask> = <value>
SYSCTRL = $40000800
SC_OSC8M_PRESC_MASK = $FFFFFFFC
SC_OSC8M = 32
But when I use the equates...
The use of SC_OSC8M_PRESC_MASK results in an 'invalid offset, value too big 0xFFFFFFFC' but the rest work! Adding a = before the label doesn't work and using #define doesn't work. Is this a ME error or some GNU error?
Many thanks for your time.