GPIO drive strength and *_driver_install

cziter15
Posts: 4
Joined: Fri Dec 21, 2018 3:14 pm

GPIO drive strength and *_driver_install

Postby cziter15 » Sat Mar 02, 2024 3:44 pm

Hello,

I prefer to use lowest possible (working) GPIO drive strength. That's not a problem when directly using the pin, just calling gpio_set_drive_capability after setting pin mode. Some time ago a question came in my mind:

Does gpio_set_drive_capability have any effect if the pin is used by peripheral driver, like I2C or UART?


Does this setting persist forever? I saw there's also gpio_reset_pin but there's no info it will reset driver strength.

Regards,
Chris

MicroController
Posts: 1701
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: GPIO drive strength and *_driver_install

Postby MicroController » Sat Mar 02, 2024 7:44 pm

The drive strength of an output is configured via the IO mux ("FUN_DRV"). As every signal must pass through the IO mux, whether it's GPIO, peripheral-direct, or peripheral via GPIO matrix, it seems that drive strength (as well as pull-up/down) can be set independent of the signal that is being routed to a pin.

Who is online

Users browsing this forum: Google [Bot] and 53 guests