mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 10:33:49 +01:00
The MSP430 vendor files already provide macros containing register constants and symbols (provided via linker scripts) containing addresses of peripheral registers. So lets make use of that rather than maintaining a long list of constants.
8 lines
243 B
Plaintext
8 lines
243 B
Plaintext
/* provide address for UASRT register map by taking the address of the first
|
|
* register (as provided by the vendor files) */
|
|
PROVIDE(USART_0_SFR = IE1);
|
|
PROVIDE(USART_1_SFR = IE2);
|
|
|
|
PROVIDE(USART_0 = U0CTL);
|
|
PROVIDE(USART_1 = U1CTL);
|