Lines Matching refs:BIT
153 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
155 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
157 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
169 #define ATOMIC_SET_BIT(REG, BIT) \ argument
173 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
178 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
182 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
196 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
200 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
205 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
209 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \