From 2033911b7f067d5fa84ee3ab8524f88cea87c46a Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Fri, 7 Jul 2023 09:07:52 +0200 Subject: [PATCH] cpu/nrf53: introduce peripheral clocks defines Signed-off-by: Dylan Laduranty --- cpu/nrf53/include/periph_cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cpu/nrf53/include/periph_cpu.h b/cpu/nrf53/include/periph_cpu.h index 7dd0ab9974..46bd07ce58 100644 --- a/cpu/nrf53/include/periph_cpu.h +++ b/cpu/nrf53/include/periph_cpu.h @@ -26,6 +26,15 @@ extern "C" { #endif +/** + * @brief Peripheral clocks speed + */ +#define PERIPH_CLOCK_1MHZ MHZ(1) /**< 1MHz peripheral clock */ +#define PERIPH_CLOCK_16MHZ MHZ(16) /**< 16MHz peripheral clock */ +#define PERIPH_CLOCK_32MHZ MHZ(32) /**< 32MHz peripheral clock */ +#define PERIPH_CLOCK_64MHZ MHZ(64) /**< 64MHz peripheral clock */ +#define PERIPH_CLOCK PERIPH_CLOCK_16MHZ /**< For driver compatibility */ + #ifndef DOXYGEN /** * @brief Wrapper to fix differences between nRF families vendor files