1
0
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:
Marian Buschsieweke 2023-05-04 21:01:43 +02:00
parent 54abdff029
commit 81ebcb5b43
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
3 changed files with 9 additions and 16 deletions

View File

@ -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);

View File

@ -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
* @{

View File

@ -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 */
/** @} */
/**