mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 13:09:38 +00:00 
			
		
		
		
	Merge branch 'feature/enable_gpio19_esp32c3_v4.3' into 'release/v4.3'
gpio: enable GPIO19 on ESP32C3 boards (backport v4.3) See merge request espressif/esp-idf!12542
This commit is contained in:
		| @@ -391,7 +391,8 @@ esp_err_t gpio_config(const gpio_config_t *pGPIOConfig) | |||||||
|                 gpio_intr_disable(io_num); |                 gpio_intr_disable(io_num); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             PIN_FUNC_SELECT(io_reg, PIN_FUNC_GPIO); /*function number 2 is GPIO_FUNC for each pin */ |             /* By default, all the pins have to be configured as GPIO pins. */ | ||||||
|  |             PIN_FUNC_SELECT(io_reg, PIN_FUNC_GPIO); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         io_num++; |         io_num++; | ||||||
|   | |||||||
| @@ -292,7 +292,7 @@ typedef enum { | |||||||
|     GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */ |     GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */ | ||||||
|     GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */ |     GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */ | ||||||
|     GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */ |     GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */ | ||||||
|     // TODO: ESP32C3 IDF-2463 |     GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */ | ||||||
|     GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */ |     GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */ | ||||||
|     GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */ |     GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */ | ||||||
|     GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */ |     GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */ | ||||||
|   | |||||||
| @@ -117,7 +117,7 @@ | |||||||
| #define IO_MUX_GPIO20_REG	PERIPHS_IO_MUX_U0RXD_U | #define IO_MUX_GPIO20_REG	PERIPHS_IO_MUX_U0RXD_U | ||||||
| #define IO_MUX_GPIO21_REG	PERIPHS_IO_MUX_U0TXD_U | #define IO_MUX_GPIO21_REG	PERIPHS_IO_MUX_U0TXD_U | ||||||
|  |  | ||||||
| #define FUNC_GPIO_GPIO                              1 | /* Value to set in IO Mux to use a pin as GPIO. */ | ||||||
| #define PIN_FUNC_GPIO								1 | #define PIN_FUNC_GPIO								1 | ||||||
|  |  | ||||||
| #define GPIO_PAD_PULLUP(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO##num);}while(0) | #define GPIO_PAD_PULLUP(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO##num);}while(0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael (XIAO Xufeng)
					Michael (XIAO Xufeng)