Lines Matching refs:BIT
177 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
179 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
181 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
195 #define ATOMIC_SET_BIT(REG, BIT) \ argument
199 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
204 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
208 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
222 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
226 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
231 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
235 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \