Dear,
- nRF connect SDK 1.9.1
- nRF5340 DK
Here is my code and config. I can assign some pin as gpio such as 0.04. Maybe 0.03 or 0.13 have other function mux, but I don't know how to config.
void main(void)
{
int ret;
const struct device *port;
port = device_get_binding("GPIO_0");
if(port == NULL){
printk("LED device %s not found", "GPIO_0");
}
ret = gpio_pin_configure(port, 13, GPIO_OUTPUT);
if (ret < 0) {
return;
}
while (1) {
ret = gpio_pin_toggle(port, 13);
if (ret < 0) {
return;
}
k_msleep(SLEEP_TIME_MS);
}
}
CONFIG_GPIO=y CONFIG_NFCT_PINS_AS_GPIOS=y