Page 1 of 1

gpio_config

Posted: Sat Oct 21, 2017 1:00 am
by chegewara
Hi,
im trying to route pin 1 with gpio_config(config) and esp32 hangs on this command.

Code: Select all

	uint64_t mask = 2;
	gpio_config_t config;
	config.pin_bit_mask = mask;
	config.mode = GPIO_MODE_INPUT_OUTPUT; // <-- all combinations here
	config.pull_up_en = GPIO_PULLUP_ENABLE;
	config.pull_down_en = GPIO_PULLDOWN_DISABLE;
	config.intr_type = GPIO_INTR_DISABLE;
	gpio_config(&config);

Re: gpio_config

Posted: Sat Oct 21, 2017 6:53 am
by loboris
GPIO1 == U0TXD is tx pin of UART0, when you configure it, it is disconnected from UART and you will no longer have any output.
ESP32 does not hang, you simply do not see any output on the console.