1.8.13.10 1.25.10.10 1.26.9.10 1.27.11.10 1.28.13.10 1.34.10.10 1.35.8.10 1.36.11.10 1.41.12.10 1.42.10.10 PIO_PortInterruptEnable Function
C
void PIO_PortInterruptEnable(PIO_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. PIO_Initialize() must have been called.
Parameters
Param | Description |
---|---|
port | One of the IO ports from the enum PIO_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 PC5 and PC7 pins PIO_PortInterruptEnable(PIO_PORT_C, 0x00A0);
Remarks
None.