|
@@ -56,7 +56,19 @@
|
|
|
|
|
|
#define RT_SERIAL_ERR_OVERRUN 0x01
|
|
#define RT_SERIAL_ERR_OVERRUN 0x01
|
|
#define RT_SERIAL_ERR_FRAMING 0x02
|
|
#define RT_SERIAL_ERR_FRAMING 0x02
|
|
-#define RT_SERIAL_ERR_PARITY 0x03
|
|
|
|
|
|
+#define RT_SERIAL_ERR_PARITY 0x03
|
|
|
|
+
|
|
|
|
+/* Default config for serial_configure structure */
|
|
|
|
+#define RT_SERIAL_CONFIG_DEFAULT \
|
|
|
|
+{ \
|
|
|
|
+ BAUD_RATE_115200, /* 115200 bits/s */ \
|
|
|
|
+ DATA_BITS_8, /* 8 databits */ \
|
|
|
|
+ STOP_BITS_1, /* 1 stopbit */ \
|
|
|
|
+ PARITY_NONE, /* No parity */ \
|
|
|
|
+ BIT_ORDER_LSB, /* LSB first sent */ \
|
|
|
|
+ NRZ_NORMAL, /* Normal mode */ \
|
|
|
|
+ 0 \
|
|
|
|
+} \
|
|
|
|
|
|
struct serial_ringbuffer
|
|
struct serial_ringbuffer
|
|
{
|
|
{
|