Skip to content

Commit 3d10d72

Browse files
committed
kinetis/bme: temp disable BITBAND_FUNCTIONS_PROVIDED
The kinetis bme currently doesn't work properly. Temporarily disable the use of the bme so that the default `sys/bit.h` implementation is used instead.
1 parent 5987b19 commit 3d10d72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpu/kinetis/include/bme.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C"
2828
/**
2929
* @brief Tell bit.h that we provide CPU specific bit manipulation functions
3030
*/
31-
#define BITBAND_FUNCTIONS_PROVIDED 1
31+
#define BITBAND_FUNCTIONS_PROVIDED 0
3232

3333
#define BME_AND_MASK (1 << 26) /**< AND decoration bitmask */
3434
#define BME_OR_MASK (1 << 27) /**< OR decoration bitmask */
@@ -121,6 +121,7 @@ static inline volatile uint8_t *bme_bitfield8(volatile uint8_t *ptr, uint8_t bit
121121
return (volatile uint8_t *)(bme_bf_addr(ptr, bit, width));
122122
}
123123

124+
#if BITBAND_FUNCTIONS_PROVIDED
124125
/* For compatibility with the M3/M4 bitbanding macros: */
125126

126127
/**
@@ -243,6 +244,8 @@ static inline void bit_clear8(volatile uint8_t *ptr, uint8_t bit)
243244
*((volatile uint8_t *)(((uintptr_t)ptr) | BME_AND_MASK)) = (uint8_t)(~(1ul << bit));
244245
}
245246

247+
#endif /* BITBAND_FUNCTIONS_PROVIDED */
248+
246249
#ifdef __cplusplus
247250
}
248251
#endif

0 commit comments

Comments
 (0)