From 17c03d69f227fcb35cc8d98bae7c8ea4ffc945c3 Mon Sep 17 00:00:00 2001 From: cxs <19511928573@163.com> Date: Fri, 13 Sep 2024 10:35:51 +0800 Subject: [PATCH] fix ci error --- bsp/bouffalo_lab/bl808/m0/board/wlan_port/drv_wifi.c | 2 +- bsp/k210/drivers/drv_spi.c | 1 + components/drivers/spi/SConscript | 2 +- components/drivers/spi/{qspi_core.c => dev_qspi_core.c} | 0 4 files changed, 3 insertions(+), 2 deletions(-) rename components/drivers/spi/{qspi_core.c => dev_qspi_core.c} (100%) diff --git a/bsp/bouffalo_lab/bl808/m0/board/wlan_port/drv_wifi.c b/bsp/bouffalo_lab/bl808/m0/board/wlan_port/drv_wifi.c index faa52f50f2b4..01795a05b1be 100644 --- a/bsp/bouffalo_lab/bl808/m0/board/wlan_port/drv_wifi.c +++ b/bsp/bouffalo_lab/bl808/m0/board/wlan_port/drv_wifi.c @@ -303,7 +303,7 @@ static rt_err_t drv_wlan_softap(struct rt_wlan_device *wlan, struct rt_ap_info * } if (ret < 0) - return RT_ERROR; + return -RT_ERROR; return RT_EOK; } diff --git a/bsp/k210/drivers/drv_spi.c b/bsp/k210/drivers/drv_spi.c index 2693e2c1c0fa..62330eac257e 100644 --- a/bsp/k210/drivers/drv_spi.c +++ b/bsp/k210/drivers/drv_spi.c @@ -10,6 +10,7 @@ #include #include +#include #ifdef RT_USING_SPI #include "drv_spi.h" diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index 588d54a6c97e..874db5b7e915 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -11,7 +11,7 @@ if GetDepend('RT_USING_SPI_BITOPS'): src += ['dev_spi_bit_ops.c'] if GetDepend('RT_USING_QSPI'): - src += ['dev_spi_core.c'] + src += ['dev_qspi_core.c'] src_device = [] diff --git a/components/drivers/spi/qspi_core.c b/components/drivers/spi/dev_qspi_core.c similarity index 100% rename from components/drivers/spi/qspi_core.c rename to components/drivers/spi/dev_qspi_core.c