Skip to content

Commit

Permalink
Added TerminalFlush() to pal_uart for ME17 and ME18
Browse files Browse the repository at this point in the history
  • Loading branch information
crsz20 committed Oct 4, 2024
1 parent 75bc2c3 commit fcdd31e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
*/
/*************************************************************************************************/

#include "util/terminal.h"

#include "pal_uart.h"
#include "pal_led.h"
#include "pal_sys.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
*/
/*************************************************************************************************/

#include "util/terminal.h"

#include "pal_uart.h"
#include "pal_led.h"
#include "pal_sys.h"
Expand Down Expand Up @@ -90,10 +92,16 @@ void UART_CommonHandler(mxc_uart_regs_t *uart)
{
const uint8_t uartIdx = MXC_UART_GET_IDX(uart);

if( uartIdx == CONSOLE_UART || uartIdx == HCI_UART)
if( uartIdx == CONSOLE_UART)
{
TerminalFlush();
MXC_UART_ClearRXFIFO(uart);
}
else if(uartIdx == HCI_UART)
{
MXC_UART_ClearRXFIFO(uart);
}

else
{
PAL_SYS_ASSERT(err == E_NO_ERROR);
Expand Down

0 comments on commit fcdd31e

Please sign in to comment.