From 84d611249e4f5423108e4ecbb4af3c18abdf95f3 Mon Sep 17 00:00:00 2001 From: Hauke Petersen <hauke.petersen@fu-berlin.de> Date: Fri, 4 Sep 2015 14:51:12 +0200 Subject: [PATCH] boards/avsextrem: configured periph timer --- boards/avsextrem/Makefile.features | 1 + boards/avsextrem/include/board.h | 5 +++++ boards/avsextrem/include/periph_conf.h | 16 ++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/boards/avsextrem/Makefile.features b/boards/avsextrem/Makefile.features index d88a55619b..a73d270b88 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 579f83824f..3f74a5c9db 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 72e7c89a9f..2dc1dc76a9 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 */ -- GitLab