Lines Matching refs:BIT
174 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
176 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
178 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
192 #define ATOMIC_SET_BIT(REG, BIT) \ argument
196 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
201 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
205 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
219 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
223 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
228 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
232 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \