1.6.13.8 1.7.14.8 1.10.11.8 1.11.11.8 1.12.11.8 1.13.10.8 1.14.10.8 1.15.10.8 1.16.8.8 1.17.8.8 1.18.9.8 1.19.8.8 1.20.8.8 1.21.9.8 1.22.13.8 1.23.12.8 1.24.9.8 GPIO_PortInputEnable Function
C
void GPIO_PortInputEnable(GPIO_PORT port, uint32_t mask)
Summary
Enables selected IO pins of a port as input.
Description
This function enables selected IO pins of a port as input.
Precondition
None.
Parameters
Param | Description |
---|---|
port | One or more of the of the IO ports from the enum GPIO_PORT. |
mask | A 32 bit value in which positions of 0s and 1s decide which IO pins of the selected port will be setup as inputs. |
-
1's Will set corresponding IO pins as input(s).
-
0's Will cause the direction of the corresponding IO pins to remain unchanged.
Returns
None.
Example
// Make RC5 and RC7 pins as input GPIO_PortInputEnable(GPIO_PORT_C, 0x00A0);
Remarks
None.