Lines Matching refs:BIT
130 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
132 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
134 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
146 #define ATOMIC_SET_BIT(REG, BIT) \ argument
150 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
155 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
159 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
173 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
177 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
182 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
186 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \