Lines Matching refs:BIT
148 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
150 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
152 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
166 #define ATOMIC_SET_BIT(REG, BIT) \ argument
170 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
175 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
179 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
193 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
197 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
202 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
206 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \