Lines Matching refs:BIT
207 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
209 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
211 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
225 #define ATOMIC_SET_BIT(REG, BIT) \ argument
229 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
234 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
238 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
252 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
256 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
261 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
265 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \