23.8.1.1.2 Code
Copy-paste the following setup code to your application:
structsystem_pinmux_config config_pinmux;system_pinmux_get_config_defaults(&config_pinmux);config_pinmux.mux_position = SYSTEM_PINMUX_GPIO;config_pinmux.direction = SYSTEM_PINMUX_PIN_DIR_INPUT;config_pinmux.input_pull = SYSTEM_PINMUX_PIN_PULL_UP;system_pinmux_pin_set_config(10, &config_pinmux);
