Lines Matching refs:BIT
190 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
192 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
194 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
208 #define ATOMIC_SET_BIT(REG, BIT) \ argument
212 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
217 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
221 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
235 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
239 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
244 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
248 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \