Skip to content

Commit 5ed6117

Browse files
committed
enable idle interrupt.
1 parent a8c9ca0 commit 5ed6117

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hw/bsp/mc02/drivers/bsp_uart.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ void bsp_uart_irq_handler(UART_HandleTypeDef *huart) {
121121
void bsp_uart_init() {
122122
HAL_UART_RegisterUserCallback(bsp_uart_irq_handler);
123123
__HAL_UART_ENABLE_IT(bsp_uart_get_handle(BSP_UART_REF), UART_IT_IDLE);
124+
__HAL_UART_ENABLE_IT(bsp_uart_get_handle(BSP_UART_AI), UART_IT_IDLE);
125+
__HAL_UART_ENABLE_IT(bsp_uart_get_handle(BSP_UART_CUSTOM), UART_IT_IDLE);
126+
__HAL_UART_ENABLE_IT(bsp_uart_get_handle(BSP_UART_RS485_1), UART_IT_IDLE);
127+
__HAL_UART_ENABLE_IT(bsp_uart_get_handle(BSP_UART_RS485_2), UART_IT_IDLE);
124128
}
125129

126130
bsp_status_t bsp_uart_register_callback(bsp_uart_t uart,

0 commit comments

Comments
 (0)