2.49.22 GPIO_PinInputConfig Function

C

void GPIO_PinInputConfig(GPIO_PIN pin, GPIO_INP_READ inpEn)

Summary

Enables or disables input on the given GPIO pin

Description

Based on the value of the GPIO_INP_READ enum, enables or disables input on the given GPIO pin

Precondition

None.

Parameters

ParamDescription
pinOne of the GPIO pins from the enum GPIO_PIN
inpEnOne of the values from the enum GPIO_INP_READ

Returns

None

Example

GPIO_PinInputConfig(GPIO_PIN_GPIO012, GPIO_INP_DISABLE);

Remarks

None