diff --git a/boards/pttu/Makefile.features b/boards/pttu/Makefile.features index d88a55619b..a73d270b88 100644 --- a/boards/pttu/Makefile.features +++ b/boards/pttu/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/pttu/include/board.h b/boards/pttu/include/board.h index 76e7b7c706..e9efae4775 100644 --- a/boards/pttu/include/board.h +++ b/boards/pttu/include/board.h @@ -59,6 +59,11 @@ void bl_init_clks(void); #define STDIO_RX_BUFSIZE (64U) /** @} */ +/** + * @brief Deprecated HW_TIMER definition (to be removed) + */ +#define HW_TIMER TIMER_DEV(0) + /** * @name dummy-defines for LEDs * @{ diff --git a/boards/pttu/include/periph_conf.h b/boards/pttu/include/periph_conf.h index 1998dd03a7..bc66266dc4 100644 --- a/boards/pttu/include/periph_conf.h +++ b/boards/pttu/include/periph_conf.h @@ -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 */