diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-05 09:07:21 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-05 09:07:21 +0000 |
commit | 2f505cf183ad47f6b25677e864e2f426b28c7f6f (patch) | |
tree | 9c3029acdc48e060fe80ab2b103ad181b51f8ea7 /demos/MSP430-MSP430x1611-GCC | |
parent | 03a0255b043e9a418e96cf3b3e0564ed2f6efe8e (diff) | |
download | ChibiOS-2f505cf183ad47f6b25677e864e2f426b28c7f6f.tar.gz ChibiOS-2f505cf183ad47f6b25677e864e2f426b28c7f6f.tar.bz2 ChibiOS-2f505cf183ad47f6b25677e864e2f426b28c7f6f.zip |
MSP430 HAL integration
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1375 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC')
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/board.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/board.h b/demos/MSP430-MSP430x1611-GCC/board.h index 836603f80..8f22c6a8e 100644 --- a/demos/MSP430-MSP430x1611-GCC/board.h +++ b/demos/MSP430-MSP430x1611-GCC/board.h @@ -21,40 +21,12 @@ #define _BOARD_H_
/*
- * Clock settings.
+ * Clock constants. */
-//#define MSP_USE_XT2CLK
-#define MSP_USE_DCOCLK
-
-#if defined(MSP_USE_XT2CLK) && defined(MSP_USE_DCOCLK)
-#error "Define MSP_USE_XT2CLK or MSP_USE_DCOCLK, not both"
-#endif
-
#define LFXT1CLK 32768
#define XT2CLK 8000000
#define DCOCLK 750000
-#define ACLK LFXT1CLK
-#if defined(MSP_USE_XT2CLK)
-#define MCLK XT2CLK
-#define SMCLK (XT2CLK / 8)
-#elif defined(MSP_USE_DCOCLK)
-#define MCLK DCOCLK
-#define SMCLK DCOCLK
-#else
-#error "Default clock source not selected"
-#endif
-
-#define VAL_DCOCTL (DCO0 | DCO1)
-#if defined(MSP_USE_XT2CLK)
-#define VAL_BCSCTL1 (RSEL2)
-#define VAL_BCSCTL2 (SELM_2 | DIVM_0 | DIVS_3 | SELS)
-#endif
-#if defined(MSP_USE_DCOCLK)
-#define VAL_BCSCTL1 (XT2OFF | RSEL2)
-#define VAL_BCSCTL2 (SELM_0 | DIVM_0 | DIVS_0)
-#endif
-
/*
* Pin definitions for the Olimex MSP430-P1611 board.
*/
|