1.13.10.9 GPIO_PortOutputEnable Function

C

void GPIO_PortOutputEnable(GPIO_PORT port, uint32_t mask)

Summary

Enables selected IO pins of a port as output(s).

Description

This function enables selected IO pins of the given port as output(s).

Precondition

None.

Parameters

Param Description
port One 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 outputs.
  • 1's Will set corresponding IO pins as output(s).

  • 0's Will cause the direction of the corresponding IO pins to remain unchanged.

Returns

None.

Example

// Make RC5 and RC7 pins as output
GPIO_PortOutputEnable(GPIO_PORT_C, 0x00A0);

Remarks

None.