boards: replace @brief with @name when necessary
This commit is contained in:
parent
d8ad724099
commit
882bcff048
@ -28,7 +28,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
|
|||||||
@ -33,7 +33,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief As the CPU is too slow to handle 115200 baud, we set the default
|
* @name STDIO configuration
|
||||||
|
*
|
||||||
|
* As the CPU is too slow to handle 115200 baud, we set the default
|
||||||
* baudrate to 9600 for this board
|
* baudrate to 9600 for this board
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
@ -41,7 +43,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifdef CPU_ATMEGA328P
|
#ifdef CPU_ATMEGA328P
|
||||||
@ -60,10 +62,11 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Context swap defines
|
* @brief Context swap defines
|
||||||
** Setup to use PC5 which is pin change interrupt 13 (PCINT13)
|
*
|
||||||
** This emulates a software triggered interrupt
|
* Setup to use PC5 which is pin change interrupt 13 (PCINT13)
|
||||||
***/
|
* This emulates a software triggered interrupt
|
||||||
|
*/
|
||||||
#ifdef CPU_ATMEGA328P
|
#ifdef CPU_ATMEGA328P
|
||||||
#define AVR_CONTEXT_SWAP_INIT do { \
|
#define AVR_CONTEXT_SWAP_INIT do { \
|
||||||
DDRC |= (1 << PC5); \
|
DDRC |= (1 << PC5); \
|
||||||
@ -85,7 +88,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief xtimer configuration values
|
* @name xtimer configuration values
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_CORECLOCK (16000000L)
|
#define CLOCK_CORECLOCK (16000000L)
|
||||||
@ -74,8 +74,6 @@ extern "C" {
|
|||||||
#define TIMER_1_ISRB TIMER4_COMPB_vect
|
#define TIMER_1_ISRB TIMER4_COMPB_vect
|
||||||
#define TIMER_1_ISRC TIMER4_COMPC_vect
|
#define TIMER_1_ISRC TIMER4_COMPC_vect
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Mapping of MCU pins to Arduino pins
|
* @name Mapping of MCU pins to Arduino pins
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ARDUINO_PIN_0 GPIO_PIN(PA, 8)
|
#define ARDUINO_PIN_0 GPIO_PIN(PA, 8)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set default configuration parameters for the sdcard_spi driver
|
* @name Default configuration for the sdcard_spi driver
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef SDCARD_SPI_PARAM_SPI
|
#ifndef SDCARD_SPI_PARAM_SPI
|
||||||
@ -69,7 +69,6 @@ static const sdcard_spi_params_t sdcard_spi_params[] = {
|
|||||||
.power_act_high = SDCARD_SPI_PARAM_POWER_AH
|
.power_act_high = SDCARD_SPI_PARAM_POWER_AH
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
/** @} */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set configuration parameters for the W5100 driver
|
* @name Configuration parameters for the W5100 driver
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef W5100_PARAM_SPI
|
#ifndef W5100_PARAM_SPI
|
||||||
@ -52,7 +52,6 @@ static const w5100_params_t w5100_params[] = {
|
|||||||
.evt = W5100_PARAM_EVT
|
.evt = W5100_PARAM_EVT
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
/** @} */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Mapping of MCU pins to Arduino pins
|
* @name Mapping of MCU pins to Arduino pins
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ARDUINO_PIN_0 GPIO_PIN(PA, 11)
|
#define ARDUINO_PIN_0 GPIO_PIN(PA, 11)
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief xtimer configuration
|
* @name xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER TIMER_0
|
#define XTIMER TIMER_0
|
||||||
@ -40,7 +40,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PA, 17)
|
#define LED0_PIN GPIO_PIN(PA, 17)
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(2, 25)
|
#define LED0_PIN GPIO_PIN(2, 25)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -39,7 +39,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED matrix pin configuration
|
* @name LED matrix pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define MINI_LED_COL1 GPIO_PIN(0, 4)
|
#define MINI_LED_COL1 GPIO_PIN(0, 4)
|
||||||
@ -57,7 +57,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Button configuration
|
* @name Button configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BTN0_PIN GPIO_PIN(0, 17)
|
#define BTN0_PIN GPIO_PIN(0, 17)
|
||||||
|
|||||||
@ -120,7 +120,7 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Radio device configuration
|
* @name Radio device configuration
|
||||||
*
|
*
|
||||||
* The radio is not guarded by a NUMOF define, as the radio is selected by its
|
* The radio is not guarded by a NUMOF define, as the radio is selected by its
|
||||||
* own module in the build system.
|
* own module in the build system.
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(2, 0)
|
#define LED0_PIN GPIO_PIN(2, 0)
|
||||||
@ -63,7 +63,6 @@ extern "C" {
|
|||||||
* @name Flash Customer Configuration Area (CCA) parameters
|
* @name Flash Customer Configuration Area (CCA) parameters
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef UPDATE_CCA
|
#ifndef UPDATE_CCA
|
||||||
#define UPDATE_CCA 1
|
#define UPDATE_CCA 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -28,14 +28,14 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief On-board button configuration
|
* @name On-board button configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BUTTON1_DIO GPIO_PIN(0, 4)
|
#define BUTTON1_DIO GPIO_PIN(0, 4)
|
||||||
@ -43,7 +43,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Macros for controlling the on-board LEDs
|
* @name Macros for controlling the on-board LEDs
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 10)
|
#define LED0_PIN GPIO_PIN(0, 10)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
/* the main clock is fixed to 48MHZ */
|
/* the main clock is fixed to 48MHZ */
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
* @file
|
* @file
|
||||||
* @brief Header for the chronos board
|
* @brief Header for the chronos board
|
||||||
*
|
*
|
||||||
* @author unknwon
|
* @author unknown
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CHRONOS_BOARD_H
|
#ifndef CHRONOS_BOARD_H
|
||||||
@ -28,14 +28,14 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Define the CPU model for the <msp430.h>
|
* @name Define the CPU model for the <msp430.h>
|
||||||
*/
|
*/
|
||||||
#ifndef __CC430F6137__
|
#ifndef __CC430F6137__
|
||||||
#define __CC430F6137__
|
#define __CC430F6137__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -44,9 +44,10 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MSP430 core configuration
|
* @name MSP430 core configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 7372800uL
|
#define MSP430_INITIAL_CPU_SPEED 7372800uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
@ -58,5 +59,5 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _CHRONOS_BOARD_H */
|
#endif /* CHRONOS_BOARD_H */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -26,10 +26,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (12000000U)
|
#define CLOCK_CORECLOCK (12000000U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
@ -68,9 +68,11 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Real Time Clock configuration
|
* @name Real Time Clock configuration
|
||||||
|
* @{
|
||||||
*/
|
*/
|
||||||
#define RTC_NUMOF (1)
|
#define RTC_NUMOF (1)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(5, 7)
|
#define LED0_PIN GPIO_PIN(5, 7)
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_A, 1)
|
#define LED0_PIN GPIO_PIN(PORT_A, 1)
|
||||||
|
|||||||
@ -34,12 +34,16 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Tell the xtimer that we use a 16-bit peripheral timer
|
* @name Xtimer configuration
|
||||||
|
*
|
||||||
|
* Tell the xtimer that we use a 16-bit peripheral timer
|
||||||
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Define the interface to the AT86RF231 radio
|
* @brief Define the interface to the AT86RF231 radio
|
||||||
*
|
*
|
||||||
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
||||||
*/
|
*/
|
||||||
@ -81,7 +85,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_B, 10)
|
#define LED0_PIN GPIO_PIN(PORT_B, 10)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_B, 22)
|
#define LED0_PIN GPIO_PIN(PORT_B, 22)
|
||||||
|
|||||||
@ -44,12 +44,18 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Tell the xtimer that we use a 16-bit peripheral timer
|
* @name Xtimer configuration
|
||||||
|
*
|
||||||
|
* Tell the xtimer that we use a 16-bit peripheral timer
|
||||||
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16U)
|
||||||
|
#define XTIMER_OVERHEAD (6U)
|
||||||
|
#define XTIMER_SHOOT_EARLY (3U)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Define the interface to the AT86RF231 radio
|
* @brief Define the interface to the AT86RF231 radio
|
||||||
*
|
*
|
||||||
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
||||||
*/
|
*/
|
||||||
@ -61,7 +67,7 @@ extern "C" {
|
|||||||
.reset_pin = GPIO_PIN(PORT_C, 1)}
|
.reset_pin = GPIO_PIN(PORT_C, 1)}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_D, 2)
|
#define LED0_PIN GPIO_PIN(PORT_D, 2)
|
||||||
@ -85,14 +91,6 @@ extern "C" {
|
|||||||
#define LED2_TOGGLE (GPIOC->ODR ^= LED2_MASK)
|
#define LED2_TOGGLE (GPIOC->ODR ^= LED2_MASK)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
|
||||||
* @name xtimer tuning values
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
#define XTIMER_OVERHEAD 6
|
|
||||||
#define XTIMER_SHOOT_EARLY 3
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -60,7 +60,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const timer_conf_t timer_config[] = {
|
static const timer_conf_t timer_config[] = {
|
||||||
@ -87,7 +87,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_C, 3)
|
#define LED0_PIN GPIO_PIN(PORT_C, 3)
|
||||||
|
|||||||
@ -33,7 +33,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(1, 18)
|
#define LED0_PIN GPIO_PIN(1, 18)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -39,7 +39,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED matrix pin configuration
|
* @name LED matrix pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
|
#define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
|
||||||
@ -57,7 +57,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Button configuration
|
* @name Button configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BTN0_PIN GPIO_PIN(0, 17)
|
#define BTN0_PIN GPIO_PIN(0, 17)
|
||||||
@ -65,7 +65,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MMA8653 accelerometer configuration
|
* @name MMA8653 accelerometer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define MMA8653_PARAM_I2C I2C_0,
|
#define MMA8653_PARAM_I2C I2C_0,
|
||||||
@ -73,7 +73,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MAG3110 magnetometer configuration
|
* @name MAG3110 magnetometer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define MAG3110_PARAM_I2C I2C_0,
|
#define MAG3110_PARAM_I2C I2C_0,
|
||||||
|
|||||||
@ -120,7 +120,7 @@ static const i2c_conf_t i2c_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Radio device configuration
|
* @name Radio device configuration
|
||||||
*
|
*
|
||||||
* The radio is not guarded by a NUMOF define, as the radio is selected by its
|
* The radio is not guarded by a NUMOF define, as the radio is selected by its
|
||||||
* own module in the build system.
|
* own module in the build system.
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer definitions
|
* @name Timer definitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define TIMER_NUMOF (1)
|
#define TIMER_NUMOF (1)
|
||||||
|
|||||||
@ -34,7 +34,7 @@ extern "C" {
|
|||||||
#define INFOMEM (0x1000)
|
#define INFOMEM (0x1000)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -44,7 +44,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(4, 7)
|
#define LED0_PIN GPIO_PIN(4, 7)
|
||||||
|
|||||||
@ -48,11 +48,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
|
|||||||
@ -26,10 +26,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (7372800U)
|
#define CLOCK_CORECLOCK (7372800U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
|
|||||||
@ -36,11 +36,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 7372800uL
|
#define MSP430_INITIAL_CPU_SPEED 7372800uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
|
|||||||
@ -28,10 +28,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (7372800U)
|
#define CLOCK_CORECLOCK (7372800U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(2, 25)
|
#define LED0_PIN GPIO_PIN(2, 25)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */
|
#define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */
|
||||||
@ -46,7 +46,6 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* Currently, we only support a single device and 3 channels, the implementation
|
* Currently, we only support a single device and 3 channels, the implementation
|
||||||
* is fixed on PWM1.
|
* is fixed on PWM1.
|
||||||
*
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define PWM_NUMOF (1U)
|
#define PWM_NUMOF (1U)
|
||||||
@ -68,12 +67,14 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Real Time Clock configuration
|
* @name Real Time Clock configuration
|
||||||
|
* @{
|
||||||
*/
|
*/
|
||||||
#define RTC_NUMOF (1)
|
#define RTC_NUMOF (1)
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief uart configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define UART_NUMOF (1)
|
#define UART_NUMOF (1)
|
||||||
|
|||||||
@ -49,7 +49,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_B, 8)
|
#define LED0_PIN GPIO_PIN(PORT_B, 8)
|
||||||
|
|||||||
@ -35,7 +35,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED handlers
|
* @name LED handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
void _native_LED_GREEN_OFF(void);
|
void _native_LED_GREEN_OFF(void);
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin configuration
|
* @name LED pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 13)
|
#define LED0_PIN GPIO_PIN(0, 13)
|
||||||
@ -60,7 +60,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Button pin configuration
|
* @name Button pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BUTTON1_PIN (GPIO_PIN(0, 11))
|
#define BUTTON1_PIN (GPIO_PIN(0, 11))
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin configuration
|
* @name LED pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 17)
|
#define LED0_PIN GPIO_PIN(0, 17)
|
||||||
@ -59,7 +59,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Button pin configuration
|
* @name Button pin configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define BUTTON1_PIN (GPIO_PIN(0, 13))
|
#define BUTTON1_PIN (GPIO_PIN(0, 13))
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 8)
|
#define LED0_PIN GPIO_PIN(0, 8)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -69,7 +69,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
@ -129,7 +129,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/** @brief PWM configuration
|
/** @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
@ -159,7 +159,7 @@ static const pwm_conf_t pwm_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SPI configuration
|
* @name SPI configuration
|
||||||
*
|
*
|
||||||
* @note The spi_divtable is auto-generated from
|
* @note The spi_divtable is auto-generated from
|
||||||
* `cpu/stm32_common/dist/spi_divtable/spi_divtable.c`
|
* `cpu/stm32_common/dist/spi_divtable/spi_divtable.c`
|
||||||
|
|||||||
@ -52,7 +52,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const timer_conf_t timer_config[] = {
|
static const timer_conf_t timer_config[] = {
|
||||||
@ -71,7 +71,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
@ -104,7 +104,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
|
|||||||
@ -52,7 +52,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const timer_conf_t timer_config[] = {
|
static const timer_conf_t timer_config[] = {
|
||||||
@ -71,7 +71,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
@ -104,7 +104,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
|
|||||||
@ -85,7 +85,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
@ -141,7 +141,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PORT_B, 0)
|
#define LED0_PIN GPIO_PIN(PORT_B, 0)
|
||||||
|
|||||||
@ -105,6 +105,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
|
|
||||||
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
|
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
@ -269,7 +270,7 @@ static const spi_conf_t spi_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief RTC configuration
|
* @name RTC configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define RTC_NUMOF (1)
|
#define RTC_NUMOF (1)
|
||||||
|
|||||||
@ -124,7 +124,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
|
|||||||
@ -51,7 +51,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const timer_conf_t timer_config[] = {
|
static const timer_conf_t timer_config[] = {
|
||||||
@ -129,7 +129,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
@ -192,8 +192,6 @@ static const uint8_t spi_divtable[2][5] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static const spi_conf_t spi_config[] = {
|
static const spi_conf_t spi_config[] = {
|
||||||
{
|
{
|
||||||
.dev = SPI1,
|
.dev = SPI1,
|
||||||
@ -210,7 +208,6 @@ static const spi_conf_t spi_config[] = {
|
|||||||
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name I2C configuration
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -127,7 +127,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
@ -196,7 +196,6 @@ static const spi_conf_t spi_config[] = {
|
|||||||
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name I2C configuration
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -127,7 +127,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
@ -206,7 +206,6 @@ static const spi_conf_t spi_config[] = {
|
|||||||
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
#define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name I2C configuration
|
* @name I2C configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -52,7 +52,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const timer_conf_t timer_config[] = {
|
static const timer_conf_t timer_config[] = {
|
||||||
@ -71,7 +71,7 @@ static const timer_conf_t timer_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART configuration
|
* @name UART configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const uart_conf_t uart_config[] = {
|
static const uart_conf_t uart_config[] = {
|
||||||
@ -93,7 +93,7 @@ static const uart_conf_t uart_config[] = {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
@ -156,7 +156,6 @@ static const spi_conf_t spi_config[] = {
|
|||||||
#define ADC_NUMOF (0)
|
#define ADC_NUMOF (0)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name DAC configuration
|
* @name DAC configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -67,7 +67,7 @@ extern "C" {
|
|||||||
#define UART_STDIO_DEV UART_DEV(0)
|
#define UART_STDIO_DEV UART_DEV(0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Override with ROBOTIS Bluetooth antenna baudrate for STDIO
|
* @name Override with ROBOTIS Bluetooth antenna baudrate for STDIO
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef UART_STDIO_BAUDRATE
|
#ifndef UART_STDIO_BAUDRATE
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(2, 4)
|
#define LED0_PIN GPIO_PIN(2, 4)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -39,7 +39,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 21)
|
#define LED0_PIN GPIO_PIN(0, 21)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
|
|||||||
@ -25,8 +25,8 @@
|
|||||||
* @author Neil Jones <Neil.Jones@imgtec.com>
|
* @author Neil Jones <Neil.Jones@imgtec.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _BOARD_H_
|
#ifndef BOARD_H
|
||||||
#define _BOARD_H_
|
#define BOARD_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -55,5 +55,5 @@ void board_init(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* _BOARD_H_ */
|
#endif /* BOARD_H */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -20,8 +20,8 @@
|
|||||||
* @author Neil Jones <Neil.Jones@imgtec.com>
|
* @author Neil Jones <Neil.Jones@imgtec.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _PERIPH_CONF_H_
|
#ifndef PERIPH_CONF_H
|
||||||
#define _PERIPH_CONF_H_
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -36,7 +36,7 @@ extern "C" {
|
|||||||
#define PERIPHERAL_CLOCK (96000000) /* Hz */
|
#define PERIPHERAL_CLOCK (96000000) /* Hz */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer definitions
|
* @name Timer definitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define TIMER_NUMOF (1)
|
#define TIMER_NUMOF (1)
|
||||||
@ -44,7 +44,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART Definitions
|
* @name UART Definitions
|
||||||
* There are 4 UARTS available on this CPU.
|
* There are 4 UARTS available on this CPU.
|
||||||
* We route debug via UART3 on this board,
|
* We route debug via UART3 on this board,
|
||||||
* this is the UART connected to the MikroBUS
|
* this is the UART connected to the MikroBUS
|
||||||
@ -61,5 +61,5 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif /* PERIPH_CONF_H */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -33,7 +33,7 @@ extern "C" {
|
|||||||
#define PERIPHERAL_CLOCK (100000000) /* Hz */
|
#define PERIPHERAL_CLOCK (100000000) /* Hz */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Timer definitions
|
* @name Timer definitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define TIMER_NUMOF (1)
|
#define TIMER_NUMOF (1)
|
||||||
@ -41,7 +41,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UART Definitions
|
* @name UART Definitions
|
||||||
* There are 6 UARTS available on this CPU.
|
* There are 6 UARTS available on this CPU.
|
||||||
* We route debug via UART4 on this board,
|
* We route debug via UART4 on this board,
|
||||||
* this is the UART connected to the FTDI USB <-> UART device.
|
* this is the UART connected to the FTDI USB <-> UART device.
|
||||||
|
|||||||
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Serial port configuration
|
* @name Serial port configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define UART_PORT (COM1_PORT) /* IO port to use for UART */
|
#define UART_PORT (COM1_PORT) /* IO port to use for UART */
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(3, 2)
|
#define LED0_PIN GPIO_PIN(3, 2)
|
||||||
@ -63,7 +63,9 @@
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name 2.4GHz RF switch controlled by SW
|
* @name Radio configuration
|
||||||
|
*
|
||||||
|
* 2.4GHz RF switch controlled by SW
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define RF_SWITCH_PORT GPIO_D
|
#define RF_SWITCH_PORT GPIO_D
|
||||||
|
|||||||
@ -42,7 +42,6 @@
|
|||||||
/* UART 0 pin configuration */
|
/* UART 0 pin configuration */
|
||||||
#define UART_0_TX_PIN GPIO_PA1
|
#define UART_0_TX_PIN GPIO_PA1
|
||||||
#define UART_0_RX_PIN GPIO_PA0
|
#define UART_0_RX_PIN GPIO_PA0
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(1, 10)
|
#define LED0_PIN GPIO_PIN(1, 10)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief xtimer configuration
|
* @name xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV TIMER_1
|
#define XTIMER_DEV TIMER_1
|
||||||
@ -51,7 +51,7 @@ extern "C" {
|
|||||||
.reset_pin = GPIO_PIN(PB, 15)}
|
.reset_pin = GPIO_PIN(PB, 15)}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(0, 19)
|
#define LED0_PIN GPIO_PIN(0, 19)
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief External oscillator and clock configuration
|
* @name External oscillator and clock configuration
|
||||||
*
|
*
|
||||||
* For selection of the used CORECLOCK, we have implemented two choices:
|
* For selection of the used CORECLOCK, we have implemented two choices:
|
||||||
*
|
*
|
||||||
|
|||||||
@ -34,7 +34,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(1, 18)
|
#define LED0_PIN GPIO_PIN(1, 18)
|
||||||
|
|||||||
@ -36,7 +36,7 @@ extern "C" {
|
|||||||
#define HW_TIMER TIMER_DEV(0)
|
#define HW_TIMER TIMER_DEV(0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Connection to the on-board temperature/humidity sensor (Si7021)
|
* @name Connection to the on-board temperature/humidity sensor (Si7021)
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define SI7021_I2C (I2C_0)
|
#define SI7021_I2C (I2C_0)
|
||||||
@ -50,7 +50,7 @@ extern "C" {
|
|||||||
#define BC_PIN GPIO_PIN(PA,12)
|
#define BC_PIN GPIO_PIN(PA,12)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief User button pin definitions
|
* @name User button pin definitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define PB0_PIN GPIO_PIN(PE,3)
|
#define PB0_PIN GPIO_PIN(PE,3)
|
||||||
@ -58,7 +58,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions
|
* @name LED pin definitions
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PF, 6)
|
#define LED0_PIN GPIO_PIN(PF, 6)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_RCOSC (14000000) /* internal RC oscillator speed */
|
#define CLOCK_RCOSC (14000000) /* internal RC oscillator speed */
|
||||||
|
|||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief xtimer configuration
|
* @name xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER TIMER_1
|
#define XTIMER TIMER_1
|
||||||
@ -38,7 +38,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PA, 18)
|
#define LED0_PIN GPIO_PIN(PA, 18)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief External oscillator and clock configuration
|
* @name External oscillator and clock configuration
|
||||||
*
|
*
|
||||||
* For selection of the used CORECLOCK, we have implemented two choices:
|
* For selection of the used CORECLOCK, we have implemented two choices:
|
||||||
*
|
*
|
||||||
|
|||||||
@ -42,7 +42,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Override default baudrate for STDIO
|
* @name Override default baudrate for STDIO
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#ifndef UART_STDIO_BAUDRATE
|
#ifndef UART_STDIO_BAUDRATE
|
||||||
@ -51,7 +51,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -61,11 +61,10 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
#define MSP430_INITIAL_CPU_SPEED 2457600uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
@ -74,7 +73,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(4, 0)
|
#define LED0_PIN GPIO_PIN(4, 0)
|
||||||
|
|||||||
@ -26,10 +26,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (2457600U)
|
#define CLOCK_CORECLOCK (2457600U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
|
|||||||
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(PB, 27)
|
#define LED0_PIN GPIO_PIN(PB, 27)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2014-2015 Freie Universität Berlin
|
* Copyright (C) 2014-2015 Freie Universität Berlin
|
||||||
*
|
*
|
||||||
* This file is subject to the terms and conditions of the GNU Lesser
|
* This file is subject to the terms and conditions of the GNU Lesser
|
||||||
|
|||||||
@ -34,7 +34,6 @@ extern "C" {
|
|||||||
* baudrate to 9600 for this board
|
* baudrate to 9600 for this board
|
||||||
*/
|
*/
|
||||||
#define UART_STDIO_BAUDRATE (9600U)
|
#define UART_STDIO_BAUDRATE (9600U)
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Use the UART 0 for STDIO on this board, if the XBee socket is not
|
* @brief Use the UART 0 for STDIO on this board, if the XBee socket is not
|
||||||
@ -48,8 +47,6 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name LED pin definitions
|
* @name LED pin definitions
|
||||||
* @{
|
* @{
|
||||||
@ -146,12 +143,10 @@ extern "C" {
|
|||||||
#define SET_MUX_SOCKET0 MUX_PW_ENABLE_PORT; MUX_PW_ON; \
|
#define SET_MUX_SOCKET0 MUX_PW_ENABLE_PORT; MUX_PW_ON; \
|
||||||
MUX_USB_XBEE_ENABLE_PORT; \
|
MUX_USB_XBEE_ENABLE_PORT; \
|
||||||
MUX_USB_XBEE_ON
|
MUX_USB_XBEE_ON
|
||||||
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Context swap defines
|
* @brief Context swap defines
|
||||||
* Setup to use PB5 which is pin change interrupt 5
|
* Setup to use PB5 which is pin change interrupt 5
|
||||||
* This emulates a software triggered interrupt
|
* This emulates a software triggered interrupt
|
||||||
**/
|
**/
|
||||||
@ -166,7 +161,7 @@ extern "C" {
|
|||||||
/** @endcond */
|
/** @endcond */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief xtimer configuration values
|
* @name xtimer configuration values
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_CORECLOCK (14745600L)
|
#define CLOCK_CORECLOCK (14745600L)
|
||||||
@ -60,7 +60,6 @@ extern "C" {
|
|||||||
#define TIMER_1_ISRC TIMER4_COMPC_vect
|
#define TIMER_1_ISRC TIMER4_COMPC_vect
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name UART configuration
|
* @name UART configuration
|
||||||
*
|
*
|
||||||
@ -85,7 +84,6 @@ extern "C" {
|
|||||||
#define UART_4800 (191)
|
#define UART_4800 (191)
|
||||||
#define UART_9600 (95)
|
#define UART_9600 (95)
|
||||||
#define UART_115200 (7)
|
#define UART_115200 (7)
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(1, 13)
|
#define LED0_PIN GPIO_PIN(1, 13)
|
||||||
|
|||||||
@ -27,7 +27,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_CORECLOCK (48000000U)
|
#define CLOCK_CORECLOCK (48000000U)
|
||||||
@ -98,7 +98,7 @@ static const spi_conf_t spi_config[] = {
|
|||||||
/* @} */
|
/* @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
|
|||||||
@ -34,7 +34,7 @@ extern "C" {
|
|||||||
#define INFOMEM (0x1000)
|
#define INFOMEM (0x1000)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -44,7 +44,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(4, 4)
|
#define LED0_PIN GPIO_PIN(4, 4)
|
||||||
|
|||||||
@ -26,10 +26,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (8000000U)
|
#define CLOCK_CORECLOCK (8000000U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
|
|||||||
@ -42,11 +42,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 800000uL
|
#define MSP430_INITIAL_CPU_SPEED 800000uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
|
|||||||
@ -42,11 +42,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 800000uL
|
#define MSP430_INITIAL_CPU_SPEED 800000uL
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
#define F_RC_OSCILLATOR 32768
|
#define F_RC_OSCILLATOR 32768
|
||||||
|
|||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
|
|||||||
@ -45,7 +45,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Xtimer configuration
|
* @name Xtimer configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define XTIMER_DEV (0)
|
#define XTIMER_DEV (0)
|
||||||
@ -55,11 +55,10 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief CPU core configuration
|
* @name CPU core configuration
|
||||||
*
|
|
||||||
* @todo Move this to the periph_conf.h
|
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move this to the periph_conf.h */
|
||||||
#define MSP430_INITIAL_CPU_SPEED 8000000uL
|
#define MSP430_INITIAL_CPU_SPEED 8000000uL
|
||||||
#ifndef F_CPU
|
#ifndef F_CPU
|
||||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||||
@ -70,7 +69,7 @@ extern "C" {
|
|||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief LED pin definitions and handlers
|
* @name LED pin definitions and handlers
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define LED0_PIN GPIO_PIN(4, 0)
|
#define LED0_PIN GPIO_PIN(4, 0)
|
||||||
@ -95,9 +94,8 @@ extern "C" {
|
|||||||
#define LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK)
|
#define LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief User button configuration
|
* @name User button configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define USER_BTN_PxIN P2IN
|
#define USER_BTN_PxIN P2IN
|
||||||
|
|||||||
@ -26,10 +26,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clock configuration
|
* @name Clock configuration
|
||||||
*
|
* @{
|
||||||
* @todo Move all clock configuration code here from the board.h
|
|
||||||
*/
|
*/
|
||||||
|
/** @todo Move all clock configuration code here from the board.h */
|
||||||
#define CLOCK_CORECLOCK (8000000U)
|
#define CLOCK_CORECLOCK (8000000U)
|
||||||
|
|
||||||
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
#define CLOCK_CMCLK CLOCK_CORECLOCK /* no divider programmed */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user