Hello!
Im trying to set a PIN to high/low with following example, but the nrf9160 crashes/reboots directly when the pin is set. But why? The CONFIG_GPIO=y is also set.
Or is there another way to set a pin directly?
//P0.09 Reset Pin
LOG_INF("Set Binding for Pin");
dev0= device_get_binding("GPIO_0");
LOG_INF("Set Pin as Output");
gpio_pin_configure(dev0, 9, GPIO_OUTPUT_HIGH);
LOG_INF("Pin was set");