Other Parts Discussed in Thread: SYSCONFIG
Below APIs help set the GPIO pins to HIGH and LOW state.
DL_GPIO_setPins()
DL_GPIO_clearPins()
DL_GPIO_togglePins()
Is there an API to set a GPIO pin state to Hi-Z?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Below APIs help set the GPIO pins to HIGH and LOW state.
DL_GPIO_setPins()
DL_GPIO_clearPins()
DL_GPIO_togglePins()
Is there an API to set a GPIO pin state to Hi-Z?
Keith,
More equivalent to setting the pullup for an individual pin. Its manipulating the IOMUX register of the individual pin (which enables all the features/muxing) rather than manipulating the GPIO registers which are port based and grouped.
PINCMx index to PIN NAME mapping is available in the datasheet table 6-1 Pin Attributes.
The corresponding enumeration is available in IOMUX_PINCM.
Keith,
With the generated source from Sysconfig, the definitions for the IOMUX are made available as well. See code snippet below:
/* Port definition for Pin Group GPIO_LEDS */ #define GPIO_LEDS_PORT (GPIOB) /* Defines for USER_LED_1: GPIOB.22 with pinCMx 50 on package pin 21 */ #define GPIO_LEDS_USER_LED_1_PIN (DL_GPIO_PIN_22) #define GPIO_LEDS_USER_LED_1_IOMUX (IOMUX_PINCM50)