gpio_config

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

gpio_config

Postby chegewara » Sat Oct 21, 2017 1:00 am

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);

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: gpio_config

Postby loboris » Sat Oct 21, 2017 6:53 am

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.

Who is online

Users browsing this forum: No registered users and 52 guests