Skip to content

Commit 5c4a91e

Browse files
committed
fixup! kinetis/bme: temp disable BITBAND_FUNCTIONS_PROVIDED
1 parent 9ec5bff commit 5c4a91e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpu/kinetis/include/bme.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)