esp32s2 串口中断问题

wangxy
Posts: 7
Joined: Thu Jan 06, 2022 6:01 am

esp32s2 串口中断问题

Postby wangxy » Tue Jan 11, 2022 3:21 am

使用自定义中断

Code: Select all

uart_isr_register(UART_PORT0, uart0_irq_handler, NULL, ESP_INTR_FLAG_LOWMED | ESP_INTR_FLAG_IRAM, &handle);

static void IRAM_ATTR uart0_irq_handler(void *arg)
 {
       uint16_t status = UART0.int_st.val;
 }
 
提示UART0未定义,不知道需要包含什么头文件。

Who is online

Users browsing this forum: No registered users and 38 guests