General-purpose I/Os (GPIO)
void GPIO_WriteBit ( GPIO_TypeDef * GPIOx, uint16_t
GPIO_Pin, BitAction BitVal)
Sets or clears the selected data port bit.
ï‚· GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
ï‚· GPIO_Pin : specifies the port bit to be written.
ï‚· BitVal : specifies the value to be written to the selected bit.
This parameter can be one of the BitAction enumeration
values:
ï€ Bit_RESET : to clear the port pin
ï€ Bit_SET : to set the port pin
ï‚· This parameter can be GPIO_Pin_x where x can be : (0..15)
for GPIOA, GPIOB, GPIOC, GPIOD or GPIOE; (0..2, 4, 6,
9..10) for GPIOF.
12.2.6.8 GPIO_Write
void GPIO_Write ( GPIO_TypeDef * GPIOx, uint16_t PortVal)
Writes data to the specified GPIO data port.
ï‚· GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
ï‚· PortVal : specifies the value to be written to the port output
data register.
12.2.7 GPIO Alternate functions configuration functions
12.2.7.1 GPIO_PinAFConfig
void GPIO_PinAFConfig ( GPIO_TypeDef * GPIOx, uint16_t
GPIO_PinSource, uint8_t GPIO_AF)