Lines Matching refs:BIT
211 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
213 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
215 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
229 #define ATOMIC_SET_BIT(REG, BIT) \ argument
233 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
238 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
242 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
256 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
260 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
265 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
269 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \