MG32L003 Standard Peripherals Firmware Library

宏定义
Exported_macro
CMSIS » Mg32l003

## 宏定义
#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)))
#define | CLEAR_WPBIT(REG, CLEARMASK, WPKEY) WRITE_REG((REG), ((READ_REG(REG)) & (~(CLEARMASK))) | WPKEY)

## 详细描述