diff options
| author | rcitach <[email protected]> | 2025-08-01 20:59:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-01 20:59:08 +0800 |
| commit | ae50e406da41f87d1567fada7593df3ed3ad0627 (patch) | |
| tree | 4f6191d1e90a4500ecacc0b8dc4f756bd96bf4b0 /components/drivers/include | |
| parent | d82dd71aefd6a4ec4d3e43698a396dd235bfdb0f (diff) | |
【SMART】【BSP】【allwinner】Fix smart serial_v2 bypass compile error issue (#10524)
* 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
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/dev_serial_v2.h | 3 | ||||
| -rw-r--r-- | components/drivers/include/rtdevice.h | 2 |
2 files changed, 4 insertions, 1 deletions
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 |
