diff options
| author | bernard <[email protected]> | 2013-07-29 13:53:38 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2013-07-29 13:53:38 +0800 |
| commit | 914244f368af021c0bd26be0deaac742fdf3569e (patch) | |
| tree | fd16ed8ee80373cca26e8b1b46d2609955165ad8 /components | |
| parent | d74dee0dd6082d9fdb9178610dd2c372ec043c1f (diff) | |
| parent | a431a2569923b97e2dae983ddc31f9bb56822d14 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/serial/serial.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index 1f6b29e261..c7b8e79b2b 100644 --- a/components/drivers/serial/serial.c +++ b/components/drivers/serial/serial.c @@ -145,7 +145,14 @@ static rt_err_t rt_serial_init(struct rt_device *dev) serial_ringbuffer_init(serial->int_rx); if (dev->flag & RT_DEVICE_FLAG_INT_TX) + { + /* not supported yet */ + /* + serial->ops->control(serial, RT_DEVICE_CTRL_SET_INT, (void *)RT_NULL); serial_ringbuffer_init(serial->int_tx); + serial->int_sending_flag = RT_FALSE; + */ + } if (dev->flag & RT_DEVICE_FLAG_DMA_TX) { |
