1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00

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.
This commit is contained in:
Benjamin Valentin 2020-12-06 20:51:20 +01:00
parent 0fcecdeaca
commit e300dfe47e

View File

@ -7,11 +7,11 @@
*/ */
/** /**
* @ingroup cpu_cortexm_common * @ingroup sys
* @{ * @{
* *
* @file * @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 <joakim.nohlgard@eistec.se> * @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/ */
@ -32,7 +32,7 @@ extern "C" {
#if DOXYGEN #if DOXYGEN
/** @brief Flag for telling if the CPU has hardware bit band support */ /** @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 #endif
#if CPU_HAS_BITBAND || DOXYGEN #if CPU_HAS_BITBAND || DOXYGEN