boards/msba2: added periph timer configuration
This commit is contained in:
parent
342d292889
commit
a052f5515f
@ -2,6 +2,7 @@ FEATURES_PROVIDED += periph_gpio
|
||||
FEATURES_PROVIDED += periph_pwm
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += cpp
|
||||
FEATURES_PROVIDED += config
|
||||
FEATURES_MCU_GROUP = arm7
|
||||
|
||||
@ -53,6 +53,11 @@ extern "C" {
|
||||
#define STDIO_RX_BUFSIZE (64U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Deprecated HW_TIMER definition (to be removed)
|
||||
*/
|
||||
#define HW_TIMER TIMER_DEV(0)
|
||||
|
||||
/**
|
||||
* @brief initialize the board's clock system
|
||||
*/
|
||||
|
||||
@ -25,6 +25,22 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Clock configuration
|
||||
* @{
|
||||
*/
|
||||
#define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */
|
||||
|
||||
#define CLOCK_PCLK (CLOCK_CORECLOCK)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Timer configuration, select a number from 1 to 4
|
||||
* @{
|
||||
*/
|
||||
#define TIMER_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief PWM device and pinout configuration
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user