From ae50e406da41f87d1567fada7593df3ed3ad0627 Mon Sep 17 00:00:00 2001 From: rcitach Date: Fri, 1 Aug 2025 20:59:08 +0800 Subject: 【SMART】【BSP】【allwinner】Fix smart serial_v2 bypass compile error issue (#10524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Modify the reference path of the header file in the middle section * format * Fix smart serial_v2 bypass compile error issue * add allwinner/d1s ci --- components/drivers/include/drivers/dev_serial_v2.h | 3 +++ components/drivers/include/rtdevice.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'components/drivers/include') diff --git a/components/drivers/include/drivers/dev_serial_v2.h b/components/drivers/include/drivers/dev_serial_v2.h index 16fc82fcf9..5360b011e3 100644 --- a/components/drivers/include/drivers/dev_serial_v2.h +++ b/components/drivers/include/drivers/dev_serial_v2.h @@ -333,6 +333,9 @@ struct rt_serial_device struct rt_spinlock spinlock; +#ifdef RT_USING_SERIAL_BYPASS + struct rt_serial_bypass* bypass; +#endif struct rt_device_notify rx_notify; }; diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index fd4d316960..7007441c6b 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -152,10 +152,10 @@ extern "C" { #include "drivers/dev_serial_v2.h" #else #include "drivers/dev_serial.h" +#endif /* RT_USING_SERIAL_V2 */ #ifdef RT_USING_SERIAL_BYPASS #include "drivers/serial_bypass.h" #endif /* RT_USING_SERIAL_BYPASS */ -#endif #endif /* RT_USING_SERIAL */ #ifdef RT_USING_I2C -- cgit v1.3.1