Hi, I just noticed some typos in msp430-libc. See patch below.
Best wishes, --Daniel
Index: include/msp430/basic_clock.h =================================================================== RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/basic_clock.h,v retrieving revision 1.3 diff -u -r1.3 basic_clock.h --- include/msp430/basic_clock.h 28 Dec 2002 06:57:06 -0000 1.3 +++ include/msp430/basic_clock.h 4 Mar 2003 15:11:00 -0000 @@ -47,11 +47,11 @@ #define DCOR 0x01 /* Enable External Resistor : 1 */ #define DIVS0 0x02 /* SMCLK Divider 0 */ #define DIVS1 0x04 /* SMCLK Divider 1 */ -#define SELS 0x08 /* MCLK Source Select 0:DCOCLK / 1:XT2CLK/LFXTCLK */ +#define SELS 0x08 /* SMCLK Source Select 0:DCOCLK / 1:XT2CLK/LFXTCLK */ #define DIVM0 0x10 /* MCLK Divider 0 */ #define DIVM1 0x20 /* MCLK Divider 1 */ -#define SELM0 0x40 /* SMCLK Source Select 0 */ -#define SELM1 0x80 /* SMCLK Source Select 1 */ +#define SELM0 0x40 /* MCLK Source Select 0 */ +#define SELM1 0x80 /* MCLK Source Select 1 */ #define DIVS_0 (0<<1) /* SMCLK Divider 0: /1 */ #define DIVS_1 (1<<1) /* SMCLK Divider 1: /2 */ @@ -63,10 +63,10 @@ #define DIVM_2 (2<<4) /* MCLK Divider 2: /4 */ #define DIVM_3 (3<<4) /* MCLK Divider 3: /8 */ -#define SELM_0 (0<<6) /* SMCLK Source Select 0: DCOCLK */ -#define SELM_1 (1<<6) /* SMCLK Source Select 1: DCOCLK */ -#define SELM_2 (2<<6) /* SMCLK Source Select 2: XT2CLK/LFXTCLK */ -#define SELM_3 (3<<6) /* SMCLK Source Select 3: LFXTCLK */ +#define SELM_0 (0<<6) /* MCLK Source Select 0: DCOCLK */ +#define SELM_1 (1<<6) /* MCLK Source Select 1: DCOCLK */ +#define SELM_2 (2<<6) /* MCLK Source Select 2: XT2CLK/LFXTCLK */ +#define SELM_3 (3<<6) /* MCLK Source Select 3: LFXTCLK */ /* Aliases by mspgcc */ #define DIVA_DIV1 DIVA_0