Lines Matching refs:BIT
140 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument
142 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument
144 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument
156 #define ATOMIC_SET_BIT(REG, BIT) \ argument
160 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
165 #define ATOMIC_CLEAR_BIT(REG, BIT) \ argument
169 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
183 #define ATOMIC_SETH_BIT(REG, BIT) \ argument
187 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
192 #define ATOMIC_CLEARH_BIT(REG, BIT) \ argument
196 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \