2.49.36 GPIO_PinPullUpPullDownConfig Function

C

void GPIO_PinPullUpPullDownConfig(GPIO_PIN pin, GPIO_PULL_TYPE pullType) 

Summary

Configures the pull type on the given GPIO pin

Description

This API lets the application configure the pull type on the given GPIO pin

Precondition

None

Parameters

ParamDescription
pinOne of the values from the enum GPIO_PIN
pullTypeOne of the values from the enum GPIO_PULL_TYPE

Returns

None

Example

GPIO_PinPullUpPullDownConfig(GPIO_PIN_GPIO012, GPIO_PULL_TYPE_UP);

Remarks

None