Lines Matching refs:BIT
212 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
214 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
216 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
228 #define ATOMIC_SET_BIT(REG, BIT) \ argument
232 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
237 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
241 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
255 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
259 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
264 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
268 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \