gpio_pin_config
if (gpio_pin_config(handle, &cfg) < 0)
gpio_pin_config(handle, &cfgs[i]);
int gpio_pin_config(gpio_handle_t, gpio_config_t *);