Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/arch/arm/src/amebasmart: Enable/disable loguart rx irq according t… #6534

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions os/arch/arm/src/amebasmart/amebasmart_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,11 @@ 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)
//LOGUART_RxCmd(LOGUART_DEV, ENABLE);
//else
//LOGUART_RxCmd(LOGUART_DEV, DISABLE);
if (enable) {
LOGUART_INTConfig(LOGUART_DEV, LOGUART_BIT_ERBI, ENABLE);
} else {
LOGUART_INTConfig(LOGUART_DEV, LOGUART_BIT_ERBI, DISABLE);
}
}

/****************************************************************************
Expand Down
4 changes: 0 additions & 4 deletions os/board/rtl8730e/src/rtl8730e_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,6 @@ void board_initialize(void)
ipc_msg_loguart.rsvd = 0; /* for coverity init issue */
ipc_send_message(IPC_AP_TO_LP, IPC_A2L_DISLOGUART, &ipc_msg_loguart);

/* Tizen: re-enable the LOGUART Rx event interrupt so that CA32 can use it, after KM0 LOGUART is disabled */
irqstate_t flags = enter_critical_section();
LOGUART_INTConfig(LOGUART_DEV, LOGUART_BIT_ERBI, ENABLE);
leave_critical_section(flags);
}
#else
#error "CONFIG_BOARD_INITIALIZE MUST ENABLE"
Expand Down