Lines Matching refs:BIT
138 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
140 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
142 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
154 #define ATOMIC_SET_BIT(REG, BIT) \ argument
158 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
163 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
167 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
181 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
185 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
190 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
194 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \