1.6.13.10 1.7.14.10 1.10.11.10 1.11.11.10 1.12.11.10 1.13.10.10 1.14.10.10 1.15.10.10 1.16.8.10 1.17.8.10 1.18.9.10 1.19.8.10 1.22.13.10 1.23.12.10 1.24.9.10 GPIO_PortInterruptEnable Function
C
void GPIO_PortInterruptEnable(GPIO_PORT port, uint32_t mask)
Summary
Enables IO interrupt on selected IO pins of a port.
Description
This function enables interrupt on selected IO pins of selected port.
Precondition
Corresponding pins must be configured in interrupt mode in MHC Pin Manager. GPIO_Initialize() must have been called.
Parameters
Param | Description |
---|---|
port | One of the IO ports from the enum GPIO_PORT |
mask | Is a 32 bit value in which positions of 0s and 1s decide which IO pins of the selected port will have interrupt enabled. |
-
The bit positions of mask value which are set as 1, IO interrupt of corresponding IO pin of the selected port will be enabled.
-
The bit positions of mask value which are cleared to 0, IO interrupt of corresponding IO pin of the selected port will remain unchanged.
Returns
None.
Example
// Enable IO interrupt for RC5 and RC7 pins GPIO_PortInterruptEnable(GPIO_PORT_C, 0x00A0);
Remarks
None.