General-purpose I/Os (GPIO)
Fills each GPIO_InitStruct member with its default value.
ï‚· GPIO_InitStruct : pointer to a GPIO_InitTypeDef structure
which will be initialized.
12.2.5.4 GPIO_PinLockConfig
void GPIO_PinLockConfig ( GPIO_TypeDef * GPIOx, uint16_t
GPIO_Pin)
Locks GPIO Pins configuration registers.
ï‚· GPIOx : where x can be (A or B or D) to select the GPIO
peripheral.
ï‚· GPIO_Pin : specifies the port bit to be written. This
parameter can be any combination of GPIO_Pin_x where x
can be (0..15).
ï‚· The configuration of the locked GPIO pins can no longer be
modified until the next reset.
12.2.6 GPIO Read and Write functions
12.2.6.1 GPIO_ReadInputDataBit
uint8_t GPIO_ReadInputDataBit ( GPIO_TypeDef * GPIOx,
uint16_t GPIO_Pin)
Reads the specified input port pin.
ï‚· GPIOx : where x can be (A, B, C, D, E or F) to select the
GPIO peripheral.
ï‚· GPIO_Pin : specifies the port bit to read.
ï‚· The input port pin value.
ï‚· 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.