Skip to content

Commit f5d6828

Browse files
committed
Adjust interrupt numbers for GPIO and Touch
1 parent d1025b6 commit f5d6828

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: cores/esp32/esp32-hal-gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "soc/gpio_struct.h"
2525
#include "soc/rtc_io_reg.h"
2626

27-
#define ETS_GPIO_INUM 4
27+
#define ETS_GPIO_INUM 12
2828

2929
const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[GPIO_PIN_COUNT]={
3030
{0x44, 11, 11, 1},

Diff for: cores/esp32/esp32-hal-touch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "soc/rtc_cntl_reg.h"
2323
#include "soc/sens_reg.h"
2424

25-
#define RTC_TOUCH_INUM 5
25+
#define RTC_TOUCH_INUM 13
2626

2727
static uint16_t __touchSleepCycles = 0x1000;
2828
static uint16_t __touchMeasureCycles = 0x1000;

Diff for: cores/esp32/esp32-hal-uart.c

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define UART_REG_BASE(u) ((u==0)?DR_REG_UART_BASE:( (u==1)?DR_REG_UART1_BASE:( (u==2)?DR_REG_UART2_BASE:0)))
3434
#define UART_RXD_IDX(u) ((u==0)?U0RXD_IN_IDX:( (u==1)?U1RXD_IN_IDX:( (u==2)?U2RXD_IN_IDX:0)))
3535
#define UART_TXD_IDX(u) ((u==0)?U0TXD_OUT_IDX:( (u==1)?U1TXD_OUT_IDX:( (u==2)?U2TXD_OUT_IDX:0)))
36-
#define UART_INUM(u) ((u==0)?ETS_UART0_INUM:( (u==1)?ETS_UART1_INUM:( (u==2)?ETS_UART2_INUM:0)))
3736
#define UART_INTR_SOURCE(u) ((u==0)?ETS_UART0_INTR_SOURCE:( (u==1)?ETS_UART1_INTR_SOURCE:((u==2)?ETS_UART2_INTR_SOURCE:0)))
3837

3938
static int s_uart_debug_nr = 0;

0 commit comments

Comments
 (0)