diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index fae43dcc16e6f6f5172913ece589137a225ac615..50f4f106db01ce956e6e62e7266c0b3f525d513a 100644 --- a/components/drivers/serial/serial.c +++ b/components/drivers/serial/serial.c @@ -439,4 +439,10 @@ void rt_hw_serial_dma_tx_isr(struct rt_serial_device *serial) { serial->dma_flag = RT_FALSE; } + + /* invoke callback */ + if (serial->parent.tx_complete != RT_NULL) + { + serial->parent.tx_complete(&serial->parent, RT_NULL); + } }