[Drivers] Make code cleanup in serial framework.
This commit is contained in:
parent
b0c94dc4d9
commit
d0debf9892
|
@ -30,9 +30,15 @@
|
|||
|
||||
#include <rtthread.h>
|
||||
|
||||
#define BAUD_RATE_2400 2400
|
||||
#define BAUD_RATE_4800 4800
|
||||
#define BAUD_RATE_9600 9600
|
||||
#define BAUD_RATE_38400 38400
|
||||
#define BAUD_RATE_57600 57600
|
||||
#define BAUD_RATE_115200 115200
|
||||
#define BAUD_RATE_230400 230400
|
||||
#define BAUD_RATE_460800 460800
|
||||
#define BAUD_RATE_921600 921600
|
||||
|
||||
#define DATA_BITS_5 5
|
||||
#define DATA_BITS_6 6
|
||||
|
|
|
@ -162,9 +162,6 @@ static rt_err_t rt_serial_init(struct rt_device *dev)
|
|||
rt_data_queue_init(&(serial->tx_dq), RT_SERIAL_TX_DATAQUEUE_SIZE,
|
||||
RT_SERIAL_TX_DATAQUEUE_LWM, RT_NULL);
|
||||
}
|
||||
|
||||
/* set activated */
|
||||
dev->flag |= RT_DEVICE_FLAG_ACTIVATED;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue