I want to set the Drive strength of pin 6 of GPIO to High drive.
In this case, how should the 5th argument of the nrf_gpio_cfg () function be set?
Hi,
The drive strength is set in the GPIO PIN_CNF[n] register, field DRIVE:
Here's an example for setting H0H1 with the help from nrf_gpio.h:
nrf_gpio_cfg( pin_number, NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_DISCONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0H1, NRF_GPIO_PIN_NOSENSE);
Regards,
Amanda