MG32F10x Standard Peripherals Firmware Library

宏定义
Exported_macro
CMSIS » Mg32f10x

## 宏定义
#define | SET_BIT(REG, BIT) ((REG) |= (BIT))
#define | CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
#define | READ_BIT(REG, BIT) ((REG) & (BIT))
#define | CLEAR_REG(REG) ((REG) = (0x0))
#define | WRITE_REG(REG, VAL) ((REG) = (VAL))
#define | READ_REG(REG) ((REG))
#define | MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))

## 详细描述