# GPIO interrupt interface of HAL Source: [https://docs.qualcomm.com/doc/80-88500-4/topic/24_GPIO_interrupt_interface_of_HAL.html](https://docs.qualcomm.com/doc/80-88500-4/topic/24_GPIO_interrupt_interface_of_HAL.html) The GPIO pins can be configured as interrupt requests. These interrupts are passed to the hardware abstraction layer (HAL). The HAL code for GPIO interrupts is at \core\systemdrivers\hal\gpioint\. ## Definitions The following definition enumerates the five possible trigger types of the GPIO interrupts: Typedef enum { HAL_GPIOINT_TRIGGER_HIGH = 0, HAL_GPIOINT_TRIGGER_LOW = 1, HAL_GPIOINT_TRIGGER_RISING = 2, HAL_GPIOINT_TRIGGER_FALLING = 3, HAL_GPIOINT_TRIGGER_DUAL_EDGE = 4 } HAL_gpioint_TriggerType; Copy to clipboard ## Functions Using the HAL TLMM, the following HAL GPIO interrupt functions are provided to help you understand the GPIO interrupt driver code. The use of these functions should be limited to the TLMM driver only. The application software should not call these functions directly. - Initialization The following function initializes the HAL GPIO interrupt controller: void HAL_gpioint_Init (char **ppszVersion)Copy to clipboard - Restore and save The following function saves the current hardware context: void HAL_gpioint_Save (void);Copy to clipboard The following function restores the hardware context saved by the HAL\_gpioint\_Save function: void HAL_gpioint_Restore (void);Copy to clipboard - Enable and disable - The following function enables (unmasks) the given interrupt: void HAL_gpioint_Enable (uint32 nGPIO);Copy to clipboard - The following function disables (masks) the given interrupt: void HAL_gpioint_Disable ( uint32 nGPIO);Copy to clipboard **Parent Topic:** [GPIO hardware abstraction layer](https://docs.qualcomm.com/doc/80-88500-4/topic/22_GPIO_HAL_and_DAL.html) Last Published: Aug 18, 2023 [Previous Topic TLMM interface of HAL](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/23_TLMM_interface_of_HAL.md) [Next Topic GPIO DAL driver](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/25_GPIO_DAL_driver.md)