Lines Matching refs:BIT
181 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
183 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
185 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
199 #define ATOMIC_SET_BIT(REG, BIT) \ argument
203 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
208 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
212 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
226 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
230 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
235 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
239 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \