This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Combining GPIOTE and high-drive capability

Hi, I've got a quick question here about using the GPIOTE driver in tandem with the GPIO HAL.

For simplicity's sake, I'm using an in-house library that gives me high-level configuration and usage of GPIOTE pins.
Most of the pins that I use are S0S1 outputs (standard low, standard high) or standard LOTOHI/HITOLO/TOGGLE pins and the lib's worked well so far.

However, every once in a while I need to provide high-drive capability to a pin, in order to actuate a particularly current-hungry relay or other peripheral.
I know the GPIO HAL allows me to set high-drive sinking and sourcing, but I'm not exactly sure how best to apply it to an already GPIOTE-configured pin.

I'm assuming the driver uses the HAL somewhere under the hood - but I still need to know whether I should first configure it with the driver and then apply the HAL drive mode setting, or vice-versa.

Thanks in advance!

Related