Cortex CMSIS style definition of MSP430 registers. More...
Cortex CMSIS style definition of MSP430 registers.
Definition in file msp430_regs.h.
Include dependency graph for msp430_regs.h:Go to the source code of this file.
Data Structures | |
| struct | msp430_port_p1_p2_t |
| GPIO Port 1/2 (with interrupt functionality) More... | |
| struct | msp430_usart_t |
| USART (UART, SPI and I2C) Registers. More... | |
| struct | msp430_usart_sfr_t |
| USART Special Function Registers (SFR) More... | |
USART clock selection | |
The vendor header files expose clock configurations selection field as one bitmask per bit. This is pretty hard to read in the code, so we provide alias with better names. | |
| #define | UXTCTL_SSEL_UCLKI 0 |
| Clock USART using UCLKI clock. | |
| #define | UXTCTL_SSEL_ACLK SSEL0 |
| Clock USART using auxiliary clock. | |
| #define | UXTCTL_SSEL_SMCLK SSEL1 |
| Clock USART using sub-system master clock. | |
| #define | UXTCTL_SSEL_MASK (SSEL0 | SSEL1) |
| Mask to retrieve SSEL field. | |
Typing of base register objects | |
| msp430_usart_sfr_t | USART_0_SFR |
| USART 0 SFR register map. | |
| msp430_usart_sfr_t | USART_1_SFR |
| USART 1 SFR register map. | |
| msp430_usart_t | USART_0 |
| USART 0 register map. | |
| msp430_usart_t | USART_1 |
| USART 1 register map. | |
| #define UXTCTL_SSEL_ACLK SSEL0 |
Clock USART using auxiliary clock.
Definition at line 84 of file msp430_regs.h.
| #define UXTCTL_SSEL_MASK (SSEL0 | SSEL1) |
Mask to retrieve SSEL field.
Definition at line 86 of file msp430_regs.h.
| #define UXTCTL_SSEL_SMCLK SSEL1 |
Clock USART using sub-system master clock.
Definition at line 85 of file msp430_regs.h.
| #define UXTCTL_SSEL_UCLKI 0 |
Clock USART using UCLKI clock.
Definition at line 83 of file msp430_regs.h.
|
extern |
USART 0 register map.
The address is provided by the linker script
|
extern |
USART 1 register map.
The address is provided by the linker script