Jump to main content

##

# 2.51.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

Param | Description
--- | ---
pin | One of the values from the enum GPIO_PIN
pullType | One of the values from the enum GPIO_PULL_TYPE

## Returns

None

## Example

    GPIO_PinPullUpPullDownConfig(GPIO_PIN_GPIO012, GPIO_PULL_TYPE_UP);

## Remarks

None