We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BITBAND_FUNCTIONS_PROVIDED
1 parent 9ec5bff commit 5c4a91eCopy full SHA for 5c4a91e
cpu/kinetis/include/bme.h
@@ -121,6 +121,7 @@ static inline volatile uint8_t *bme_bitfield8(volatile uint8_t *ptr, uint8_t bit
121
return (volatile uint8_t *)(bme_bf_addr(ptr, bit, width));
122
}
123
124
+#if BITBAND_FUNCTIONS_PROVIDED
125
/* For compatibility with the M3/M4 bitbanding macros: */
126
127
/**
@@ -243,6 +244,8 @@ static inline void bit_clear8(volatile uint8_t *ptr, uint8_t bit)
243
244
*((volatile uint8_t *)(((uintptr_t)ptr) | BME_AND_MASK)) = (uint8_t)(~(1ul << bit));
245
246
247
+#endif /* BITBAND_FUNCTIONS_PROVIDED */
248
+
249
#ifdef __cplusplus
250
251
#endif
0 commit comments