summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
authorchenjh <[email protected]>2021-06-05 17:21:27 +0800
committerchenjh <[email protected]>2021-06-08 09:38:43 +0800
commitd94be14df5cede07a99d6aeebcd4f8446ae80d7e (patch)
treef27eefc60b7efe29f1cb901d824f9e64a2097abb /components/drivers/include/rtdevice.h
parent5c8625c8ef6deff6979d990f1638200029978dd2 (diff)
[serial] 增加serial_v2版本的框架和基于stm32的串口驱动
Diffstat (limited to 'components/drivers/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index fbd3c9e7b2..07a2be361e 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -57,7 +57,11 @@ extern "C" {
#endif /* RT_USING_USB_HOST */
#ifdef RT_USING_SERIAL
+#ifdef RT_USING_SERIAL_V2
+#include "drivers/serial_v2.h"
+#else
#include "drivers/serial.h"
+#endif
#endif /* RT_USING_SERIAL */
#ifdef RT_USING_I2C