Jump to main content

##

# 2.51.31 GPIO_PinIntDetectConfig Function

## C

    void GPIO_PinIntDetectConfig(GPIO_PIN pin, GPIO_INTDET_TYPE intDet)

## Summary

Configures the event that generates interrupt on the GPIO pin

## Description

This API lets the application configure the event that generates interrupt on the given GPIO pin

## Precondition

None

## Parameters

Param | Description
--- | ---
pin | One of the values from the enum GPIO_PIN
intDet | One of the values from the enum GPIO_INTDET_TYPE

## Returns

None

## Example

    GPIO_PinIntDetectConfig(GPIO_PIN_GPIO012, GPIO_INTDET_TYPE_FALLING_EDGE);

## Remarks

None