Hi, Please find a patch attached that creates three defines for the UCSSEL bits of the USCI module of the MSP430x2xx series. I found these useful in my code.
Cheers, Rob Spanton
A set of convenient defines for the UCSSEL bits of the USCI module. --- include/msp430/usci.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/msp430/usci.h b/include/msp430/usci.h index 3ad8317..ad913a4 100644 --- a/include/msp430/usci.h +++ b/include/msp430/usci.h @@ -237,6 +237,11 @@ __MSP430_HAS_USCI1__ - if device has USCI1 #define UCSA1 (0x0002) /* I2C Slave Address 1 */ #define UCSA0 (0x0001) /* I2C Slave Address 0 */ +/* Aliases by mspgcc */ +#define UCSSEL_UCLKI UCSSEL_0 +#define UCSSEL_ACLK UCSSEL_1 +#define UCSSEL_SMCLK UCSSEL_2 + /* -------- USCI0 */ #define UCA0CTL0_ 0x0060 /* USCI A0 Control Register 0 */ -- 1.5.3.6
