Lines Matching refs:BIT
203 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
205 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
207 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
219 #define ATOMIC_SET_BIT(REG, BIT) \ argument
223 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
228 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
232 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
246 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
250 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
255 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
259 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \