From b206658b51a4e5e18307f28bbecdbac9e928ac16 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 5 Dec 2021 11:54:31 +0100 Subject: [PATCH] cpu/native: define default CLOCK_CORECLOCK constant --- cpu/native/include/periph_conf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cpu/native/include/periph_conf.h b/cpu/native/include/periph_conf.h index be853f52d9..eaf611029d 100644 --- a/cpu/native/include/periph_conf.h +++ b/cpu/native/include/periph_conf.h @@ -16,10 +16,21 @@ #ifndef PERIPH_CONF_H #define PERIPH_CONF_H +#include "macros/units.h" + #ifdef __cplusplus extern "C" { #endif +/** + * @brief System core clock in Hz + * + * 1GHz is an arbitrary value used for compatibility with other platforms. + */ +#ifndef CLOCK_CORECLOCK +#define CLOCK_CORECLOCK GHZ(1) +#endif + /** * @name hardware timer clock skew avoidance * @{