diff --git a/boards/avsextrem/Makefile.features b/boards/avsextrem/Makefile.features index d88a55619b1cbf4e68235d6180e0503187f0b8e2..a73d270b881cfb9e07978a0d7aec3f591f3fb796 100644 --- a/boards/avsextrem/Makefile.features +++ b/boards/avsextrem/Makefile.features @@ -1,4 +1,5 @@ FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_spi +FEATURES_PROVIDED += periph_timer FEATURES_MCU_GROUP = arm7 diff --git a/boards/avsextrem/include/board.h b/boards/avsextrem/include/board.h index 579f83824f7eda660aa4935d709a5e7c888c362c..3f74a5c9db308d50c4f973d0765ab81a7faeb2cd 100644 --- a/boards/avsextrem/include/board.h +++ b/boards/avsextrem/include/board.h @@ -56,6 +56,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 */ diff --git a/boards/avsextrem/include/periph_conf.h b/boards/avsextrem/include/periph_conf.h index 72e7c89a9f2d9fe7448718b79cbe7f2d7d80db1f..2dc1dc76a9ad5a931ab43d3deef814741b2a15e2 100644 --- a/boards/avsextrem/include/periph_conf.h +++ b/boards/avsextrem/include/periph_conf.h @@ -25,6 +25,22 @@ extern "C" { #endif +/** + * @brief Clock configuration + * @{ + */ +#define CLOCK_CORECLOCK (72000000U) /* this board 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 */