Exported_macro
[Stm32f10x]

Defines

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

Define Documentation

#define CLEAR_BIT ( REG,
BIT   )     ((REG) &= ~(BIT))

Definition at line 8289 of file stm32f10x.h.

#define CLEAR_REG ( REG   )     ((REG) = (0x0))

Definition at line 8293 of file stm32f10x.h.

#define MODIFY_REG ( REG,
CLEARMASK,
SETMASK   )     WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))

Definition at line 8299 of file stm32f10x.h.

#define READ_BIT ( REG,
BIT   )     ((REG) & (BIT))

Definition at line 8291 of file stm32f10x.h.

#define READ_REG ( REG   )     ((REG))

Definition at line 8297 of file stm32f10x.h.

#define SET_BIT ( REG,
BIT   )     ((REG) |= (BIT))

Definition at line 8287 of file stm32f10x.h.

#define WRITE_REG ( REG,
VAL   )     ((REG) = (VAL))

Definition at line 8295 of file stm32f10x.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32