mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/telosb: clean up code
Move the periph configuration from board.h to periph_conf.h as indicated by the todo note there.
This commit is contained in:
parent
54abdff029
commit
81ebcb5b43
@ -7,8 +7,9 @@
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
#include "cpu.h"
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
#include "periph_conf.h"
|
||||
|
||||
void uart_init(void);
|
||||
|
||||
|
@ -56,18 +56,6 @@ extern "C" {
|
||||
#define XTIMER_BACKOFF (40)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name CPU core configuration
|
||||
* @{
|
||||
*/
|
||||
/** @todo Move this to the periph_conf.h */
|
||||
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||
#define F_RC_OSCILLATOR 32768
|
||||
#define MSP430_HAS_DCOR 0
|
||||
#define MSP430_HAS_EXTERNAL_CRYSTAL 1
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name LED pin definitions and handlers
|
||||
* @{
|
||||
|
@ -29,10 +29,14 @@ extern "C" {
|
||||
* @name Clock configuration
|
||||
* @{
|
||||
*/
|
||||
/** @todo Move all clock configuration code here from the board.h */
|
||||
#define CLOCK_CORECLOCK (2457600U)
|
||||
#define CLOCK_CORECLOCK (2457600U)
|
||||
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||
#define F_RC_OSCILLATOR 32768
|
||||
#define MSP430_HAS_DCOR 0
|
||||
#define MSP430_HAS_EXTERNAL_CRYSTAL 1
|
||||
|
||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user