Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,10 @@ void uart_lld_serve_interrupt(UARTDriver *uartp) {
isr = u->ISR;
u->ICR = isr;

if (isr & USART_ISR_CMF) {
_uart_rx_char_match_isr_code(uartp);
}

if (isr & (USART_ISR_LBDF | USART_ISR_ORE | USART_ISR_NE |
USART_ISR_FE | USART_ISR_PE)) {
_uart_rx_error_isr_code(uartp, translate_errors(isr));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,10 @@ typedef struct hal_uart_config {
* flags in CR registers and supported hardware features.
*/
uartcb_t timeout_cb;
/**
* @brief Character Received callback.
*/
uartcb_t rx_cm_cb;
/**
* @brief Receiver timeout value in terms of number of bit duration.
* @details Set it to 0 when you want to handle idle interrupt instead of
Expand Down
Loading