We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cc9f3b commit 658f81bCopy full SHA for 658f81b
cores/esp32/esp32-hal-uart.c
@@ -90,7 +90,7 @@ uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rx
90
91
pinMode(uart->rxPin, INPUT);
92
pinMatrixInAttach(uart->rxPin, UART_RXD_IDX(uart->num), uart->inverted);
93
- intr_matrix_set(APP_CPU_NUM, UART_INTR_SOURCE(uart->num), UART_INUM(uart->num));
+ intr_matrix_set(xPortGetCoreID(), UART_INTR_SOURCE(uart->num), UART_INUM(uart->num));
94
xt_set_interrupt_handler(UART_INUM(uart->num), _uart_isr, uart);
95
ESP_INTR_ENABLE(UART_INUM(uart->num));
96
conf1 = (112 << UART_RXFIFO_FULL_THRHD_S) | (0x02 << UART_RX_TOUT_THRHD_S) | UART_RX_TOUT_EN;
0 commit comments