gpio: enable GPIO19 on ESP32C3 boards

This commit is contained in:
Omar Chebib
2021-02-10 17:22:41 +08:00
parent 24f3341a2d
commit 5795075460
3 changed files with 4 additions and 3 deletions

View File

@@ -117,7 +117,7 @@
#define IO_MUX_GPIO20_REG PERIPHS_IO_MUX_U0RXD_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 GPIO_PAD_PULLUP(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO##num);}while(0)