Skip to content

Commit

Permalink
fix:uart1 波特率 > 9600无法从低功耗模式唤醒
Browse files Browse the repository at this point in the history
  • Loading branch information
allewalker committed Dec 6, 2024
1 parent 609e1e6 commit e88b811
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions interface/src/luat_uart_ec7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,6 @@ static int32_t luat_uart_cb(void *pData, void *pParam){
}
uart_cb[uartid].sent_callback_fun(uartid, NULL);
break;
case UART_CB_RX_BUFFER_FULL:
//只有UART1可以唤醒
#ifdef __LUATOS__
if (UART_ID1 == uartid)
{
uart_cb[uartid].recv_callback_fun(uartid, 0xffffffff);
}
#else
if (UART_ID1 == uartid)
{
uart_cb[uartid].recv_callback_fun(uartid, 0);
}
#endif
break;
case UART_CB_RX_TIMEOUT:
if (g_s_serials[uartid].rx_info.is_enable)
{
Expand All @@ -157,6 +143,20 @@ static int32_t luat_uart_cb(void *pData, void *pParam){
uart_cb[uartid].recv_callback_fun(uartid, len);
}
break;
case UART_CB_WAKEUP_IN_IRQ:
//只有UART1可以唤醒
#ifdef __LUATOS__
if (UART_ID1 == uartid)
{
uart_cb[uartid].recv_callback_fun(uartid, 0xffffffff);
}
#else
if (UART_ID1 == uartid)
{
uart_cb[uartid].recv_callback_fun(uartid, 0);
}
#endif
break;
case UART_CB_ERROR:
break;
case UART_CB_CTS_IN_IRQ:
Expand Down

0 comments on commit e88b811

Please sign in to comment.