Skip to content

Commit 1cc9f3b

Browse files
committed
fix Serial RX
This trick does not fix GPIO interrupts. Different INUM maybe for GPIO on APP cpu
1 parent e7d2c18 commit 1cc9f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rx
9090

9191
pinMode(uart->rxPin, INPUT);
9292
pinMatrixInAttach(uart->rxPin, UART_RXD_IDX(uart->num), uart->inverted);
93-
intr_matrix_set(PRO_CPU_NUM, UART_INTR_SOURCE(uart->num), UART_INUM(uart->num));
93+
intr_matrix_set(APP_CPU_NUM, UART_INTR_SOURCE(uart->num), UART_INUM(uart->num));
9494
xt_set_interrupt_handler(UART_INUM(uart->num), _uart_isr, uart);
9595
ESP_INTR_ENABLE(UART_INUM(uart->num));
9696
conf1 = (112 << UART_RXFIFO_FULL_THRHD_S) | (0x02 << UART_RX_TOUT_THRHD_S) | UART_RX_TOUT_EN;

0 commit comments

Comments
 (0)