From e300dfe47ee3e3ef2bfa44d2bf0420e129ee742a Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 6 Dec 2020 20:51:20 +0100 Subject: [PATCH] sys/bit: move bit.h from cortexm_common/ to sys/ The bit access functions are not tied to Cortex-M CPUs, here they only provide optimisations via bit-banding. But the functions are generally useful - so move them to an arch independent location. --- {cpu/cortexm_common => sys}/include/bit.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename {cpu/cortexm_common => sys}/include/bit.h (96%) diff --git a/cpu/cortexm_common/include/bit.h b/sys/include/bit.h similarity index 96% rename from cpu/cortexm_common/include/bit.h rename to sys/include/bit.h index 52513e6a1c..f49527431e 100644 --- a/cpu/cortexm_common/include/bit.h +++ b/sys/include/bit.h @@ -7,11 +7,11 @@ */ /** - * @ingroup cpu_cortexm_common + * @ingroup sys * @{ * * @file - * @brief Bit access macros for Cortex-M based CPUs + * @brief Bit access macros with bit-banding support for Cortex-M based CPUs * * @author Joakim NohlgÄrd */ @@ -32,7 +32,7 @@ extern "C" { #if DOXYGEN /** @brief Flag for telling if the CPU has hardware bit band support */ -#define CPU_HAS_BITBAND 1 || 0 (1 for Cortex-M3 and up, 0 for Cortex-M0) +#define CPU_HAS_BITBAND 1 || 0 (1 if CPU implements bit-banding, 0 if not) #endif #if CPU_HAS_BITBAND || DOXYGEN