Lines Matching refs:BIT
173 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
175 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
177 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
189 #define ATOMIC_SET_BIT(REG, BIT) \ argument
193 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
198 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
202 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
216 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
220 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
225 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
229 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \