diff options
| author | [email protected] <[email protected]> | 2012-11-03 13:56:14 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-03 13:56:14 +0000 |
| commit | d0cba80c07fd82f9b4f3dfdebb7c492b814290b2 (patch) | |
| tree | bd99f291b9df9e21acd9064fecdf020887ec1b3f /components | |
| parent | 533492545421ad3fca6bcff9330a967b7d86f677 (diff) | |
add invoke callback after serial DMA transmit complete in serial.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2387 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/serial/serial.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index fae43dcc16..50f4f106db 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); + } } |
