Lines Matching refs:BIT
148 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
150 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
152 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
164 #define ATOMIC_SET_BIT(REG, BIT) \ argument
168 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
173 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
177 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
191 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
195 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
200 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
204 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \