Sets MCU frequency in 'board.h', instead of the common 'cpu.h' file

This commit is contained in:
Kévin Roussel 2013-12-20 13:12:51 +01:00
parent 2b4febf8df
commit 5d393d270b
7 changed files with 16 additions and 4 deletions

View File

@ -29,6 +29,8 @@
#endif
#define MSP430_INITIAL_CPU_SPEED 7372800uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 1
#define MSP430_HAS_EXTERNAL_CRYSTAL 1

View File

@ -52,7 +52,9 @@ and the mailinglist (subscription via web site)
#endif
//MSB430 core
#define MSP430_INITIAL_CPU_SPEED 2457600uL
#define MSP430_INITIAL_CPU_SPEED 2457600uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 1
#define MSP430_HAS_EXTERNAL_CRYSTAL 0

View File

@ -46,6 +46,8 @@ and the mailinglist (subscription via web site)
//MSB430 core
#define MSP430_INITIAL_CPU_SPEED 7372800uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 1
#define MSP430_HAS_EXTERNAL_CRYSTAL 1

View File

@ -32,6 +32,8 @@
//MSB430 core
#define MSP430_INITIAL_CPU_SPEED 8000000uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 0
#define MSP430_HAS_EXTERNAL_CRYSTAL 1

View File

@ -35,6 +35,8 @@
//MSB430 core
#define MSP430_INITIAL_CPU_SPEED 800000uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 0
#define MSP430_HAS_EXTERNAL_CRYSTAL 1

View File

@ -35,6 +35,8 @@
//MSB430 core
#define MSP430_INITIAL_CPU_SPEED 800000uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768
#define MSP430_HAS_DCOR 0
#define MSP430_HAS_EXTERNAL_CRYSTAL 1

View File

@ -36,9 +36,9 @@ See the file LICENSE in the top level directory for more details.
#define WORDSIZE 16
/* CPU speed */
#define F_CPU (2457600ul)
#define F_RC_OSCILLATOR (32768) ///< Frequency of internal RC oscillator
/* CPU speed, to be defined in board.h */
//#define F_CPU (2457600ul)
//#define F_RC_OSCILLATOR (32768) ///< Frequency of internal RC oscillator
extern volatile int __inISR;
extern char __isr_stack[MSP430_ISR_STACK_SIZE];