From ebfc13c68d8fea2116ffd5709fecfe4bd61a34a6 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 5 Jan 2016 13:32:33 +0100 Subject: [PATCH] boards: added CLOCK_CORECLOCK define to periph_conf --- boards/arduino-due/include/periph_conf.h | 7 +++++++ boards/arduino-mega2560/include/periph_conf.h | 7 +++++++ boards/udoo/include/periph_conf.h | 7 +++++++ boards/weio/include/periph_conf.h | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/boards/arduino-due/include/periph_conf.h b/boards/arduino-due/include/periph_conf.h index b5e594dc33..ccc6594591 100644 --- a/boards/arduino-due/include/periph_conf.h +++ b/boards/arduino-due/include/periph_conf.h @@ -27,6 +27,13 @@ extern "C" { #endif +/** + * @name Clock configuration + * @{ + */ +#define CLOCK_CORECLOCK (84000000U) +/** @} */ + /** * @name Timer peripheral configuration * @{ diff --git a/boards/arduino-mega2560/include/periph_conf.h b/boards/arduino-mega2560/include/periph_conf.h index 0f72a0cc75..52c9b8141e 100644 --- a/boards/arduino-mega2560/include/periph_conf.h +++ b/boards/arduino-mega2560/include/periph_conf.h @@ -23,6 +23,13 @@ extern "C" { #endif +/** + * @name Clock configuration + * @{ + */ +#define CLOCK_CORECLOCK (16000000L) +/** @} */ + /** * @name Timer peripheral configuration * @brief The ATmega2560 has 6 timers. Timer0 and Timer2 are 8 Bit Timers, diff --git a/boards/udoo/include/periph_conf.h b/boards/udoo/include/periph_conf.h index d53b0e2502..bf88862c35 100644 --- a/boards/udoo/include/periph_conf.h +++ b/boards/udoo/include/periph_conf.h @@ -25,6 +25,13 @@ extern "C" { #endif +/** + * @name Clock configuration + * @{ + */ +#define CLOCK_CORECLOCK (84000000U) +/** @} */ + /** * @name Timer peripheral configuration * @{ diff --git a/boards/weio/include/periph_conf.h b/boards/weio/include/periph_conf.h index d5d8b77728..dbcc20ab24 100644 --- a/boards/weio/include/periph_conf.h +++ b/boards/weio/include/periph_conf.h @@ -24,6 +24,13 @@ extern "C" { #endif +/** + * @brief Clock configuration + * @{ + */ +#define CLOCK_CORECLOCK (48000000U) +/** @} */ + /** * @brief Timer configuration * @{