Skip to content

Commit

Permalink
os/arch/arm/src/amebasmart: Enable/disable loguart rx irq according t…
Browse files Browse the repository at this point in the history
…o driver call

1. Loguart rx irq should be handled properly with enable/disable
  • Loading branch information
zhongnuo-tang committed Nov 25, 2024
1 parent 438f46c commit f0ef778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions os/arch/arm/src/amebasmart/amebasmart_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,13 @@ static void rtl8730e_log_up_rxint(struct uart_dev_s *dev, bool enable)
struct rtl8730e_up_dev_s *priv = (struct rtl8730e_up_dev_s *)dev->priv;
DEBUGASSERT(priv);
priv->rxint_enable = enable;
//if (enable)
if (enable) {
LOGUART_INTConfig(LOGUART_DEV, LOGUART_BIT_ERBI, ENABLE);
//LOGUART_RxCmd(LOGUART_DEV, ENABLE);
//else
} else {
LOGUART_INTConfig(LOGUART_DEV, LOGUART_BIT_ERBI, DISABLE);
//LOGUART_RxCmd(LOGUART_DEV, DISABLE);
}
}

/****************************************************************************
Expand Down

0 comments on commit f0ef778

Please sign in to comment.