STM32F10x Standard Peripherals Library
3.5.0
|
Defines | |
#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_BIT | ( | REG, | |
BIT | |||
) | ((REG) &= ~(BIT)) |
Definition at line 8306 of file stm32f10x.h.
#define CLEAR_REG | ( | REG | ) | ((REG) = (0x0)) |
Definition at line 8310 of file stm32f10x.h.
#define MODIFY_REG | ( | REG, | |
CLEARMASK, | |||
SETMASK | |||
) | WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) |
Definition at line 8316 of file stm32f10x.h.
#define READ_BIT | ( | REG, | |
BIT | |||
) | ((REG) & (BIT)) |
Definition at line 8308 of file stm32f10x.h.
#define READ_REG | ( | REG | ) | ((REG)) |
Definition at line 8314 of file stm32f10x.h.
#define SET_BIT | ( | REG, | |
BIT | |||
) | ((REG) |= (BIT)) |
Definition at line 8304 of file stm32f10x.h.
#define WRITE_REG | ( | REG, | |
VAL | |||
) | ((REG) = (VAL)) |
Definition at line 8312 of file stm32f10x.h.