File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
components/drivers/include/drivers Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 225225#define RT_SERIAL_FLOWCONTROL_NONE 0
226226
227227/* Default config for serial_configure structure */
228+ #ifdef RT_SERIAL_USING_DMA
228229#define RT_SERIAL_CONFIG_DEFAULT \
229230{ \
230231 BAUD_RATE_115200, /* 115200 bits/s */ \
239240 0 , /* reserved */ \
240241 0 , /* dma_ping_bufsz */ \
241242}
243+ #else
244+ #define RT_SERIAL_CONFIG_DEFAULT \
245+ { \
246+ BAUD_RATE_115200 , /* 115200 bits/s */ \
247+ DATA_BITS_8 , /* 8 databits */ \
248+ STOP_BITS_1 , /* 1 stopbit */ \
249+ PARITY_NONE , /* No parity */ \
250+ BIT_ORDER_LSB , /* LSB first sent */ \
251+ NRZ_NORMAL , /* Normal mode */ \
252+ RT_SERIAL_RX_MINBUFSZ , /* rxBuf size */ \
253+ RT_SERIAL_TX_MINBUFSZ , /* txBuf size */ \
254+ RT_SERIAL_FLOWCONTROL_NONE , /* Off flowcontrol */ \
255+ 0 , /* reserved */ \
256+ }
257+ #endif
242258
243259/**
244260 * @brief Serial receive indicate hook function type
You can’t perform that action at this time.
0 commit comments