1.1.4.22 void GPIO_PinPolarityConfig(GPIO_PIN pin, GPIO_POLARITY polarity) Function
C
void GPIO_PinPolarityConfig(GPIO_PIN pin, GPIO_POLARITY polarity)
Summary
Configures the polarity of the given GPIO pin
Description
This API lets the application configure the polarity of the given GPIO pin
Precondition
The pin function must be set to other than GPIO
Parameters
Param | Description |
---|---|
pin | One of the values from the enum GPIO_PIN |
polarity | One of the values from the enum GPIO_POLARITY |
Returns
None
Example
GPIO_PinPolarityConfig(GPIO_PIN_GPIO012, GPIO_POLARITY_INVERTED);
Remarks
None