From bb91502465da8432b5b38a0eb12be3af8238c22d Mon Sep 17 00:00:00 2001 From: CXSforHPU <156403074+CXSforHPU@users.noreply.github.com> Date: Sat, 14 Sep 2024 05:40:40 +0800 Subject: [PATCH] [drivers] Specifies the name of the drivers driver file https://github.com/RT-Thread/rt-thread/pull/9420 --- .../libraries/HAL_Drivers/drv_sdcard.c | 4 ++-- bsp/Infineon/libraries/HAL_Drivers/drv_spi.h | 2 +- bsp/airm2m/air105/board/ports/spi_flash_init.c | 4 ++-- .../air105/libraries/rt_drivers/drv_wdt.c | 2 +- .../air32f103/board/ports/spi_flash_init.c | 4 ++-- .../air32f103/libraries/rt_drivers/drv_spi.c | 2 +- bsp/allwinner_tina/drivers/spi/drv_spi_flash.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- bsp/apm32/libraries/Drivers/drv_sdio.h | 4 ++-- bsp/apm32/libraries/Drivers/drv_spi.h | 2 +- bsp/at32/libraries/rt_drivers/drv_sdio.h | 4 ++-- bsp/at32/libraries/rt_drivers/drv_spi.h | 2 +- bsp/at32/libraries/rt_drivers/drv_wdt.c | 2 +- .../at91sam9260/applications/application.c | 2 +- bsp/at91/at91sam9260/drivers/at91_mci.c | 2 +- .../at91sam9g45/applications/application.c | 2 +- bsp/at91/at91sam9g45/drivers/at91_mci.c | 2 +- bsp/bf533/board.c | 2 +- bsp/bf533/startup.c | 2 +- bsp/bluetrum/libraries/hal_drivers/drv_sdio.h | 4 ++-- .../bl808/m0/board/wlan_port/drv_wifi.c | 4 ++-- .../libraries/rt_drivers/drv_sdh.c | 4 ++-- bsp/cvitek/drivers/drv_sdhci.c | 4 ++-- bsp/dm365/applications/application.c | 2 +- bsp/dm365/drivers/mmcsd.c | 2 +- bsp/essemi/es32f0654/drivers/drv_spiflash.c | 4 ++-- bsp/essemi/es32f369x/drivers/drv_spiflash.c | 4 ++-- bsp/essemi/es32vf2264/drivers/drv_spiflash.c | 4 ++-- bsp/frdm-k64f/board/drv_uart.h | 2 +- bsp/ft2004/drivers/drv_qspi_flash.c | 4 ++-- bsp/ft2004/drivers/drv_sdctrl.c | 2 +- bsp/ft2004/drivers/drv_spi_flash.c | 4 ++-- .../arm/libraries/gd32_drivers/drv_spi_flash.c | 4 ++-- .../board/ports/drv_spi_flash.c | 4 ++-- .../board/ports/fal/fal_flash_sfud_port.c | 2 +- .../board/ports/drv_spi_flash.c | 4 ++-- .../board/ports/fal/fal_flash_sfud_port.c | 2 +- .../board/ports/drv_spi_flash.c | 4 ++-- .../board/ports/fal/fal_flash_sfud_port.c | 2 +- .../board/ports/drv_spi_flash.c | 4 ++-- .../board/ports/fal/fal_flash_sfud_port.c | 2 +- bsp/hc32/platform/fal/fal_flash_sfud_nor.c | 2 +- bsp/hc32/platform/sfud/drv_spi_flash.c | 4 ++-- bsp/hk32/libraries/rt_drivers/drv_spi.h | 2 +- bsp/k210/applications/mnt.c | 2 +- bsp/k210/drivers/drv_lcd.c | 1 + bsp/k210/drivers/drv_spi.c | 3 ++- bsp/loongson/ls1cdev/drivers/drv_spi.c | 4 ++-- bsp/loongson/ls1cdev/drivers/drv_wdt.c | 2 +- bsp/loongson/ls1cdev/drivers/touch.c | 2 +- bsp/loongson/ls2kdev/drivers/drv_spi.c | 2 +- bsp/microblaze/board.c | 6 +++--- bsp/mini2440/drivers/s3cmci.c | 2 +- bsp/mini4020/applications/startup.c | 2 +- bsp/mini4020/drivers/board.c | 2 +- bsp/n32g452xx/Libraries/rt_drivers/drv_wdt.c | 2 +- .../libraries/m2354/rtt_port/drv_sdio.c | 4 ++-- bsp/nuvoton/libraries/m460/rtt_port/drv_sdio.c | 4 ++-- bsp/nuvoton/libraries/m480/rtt_port/drv_sdio.c | 4 ++-- bsp/nuvoton/libraries/ma35/rtt_port/drv_sdio.c | 4 ++-- bsp/nuvoton/nk-980iot/board/board_dev.c | 4 ++-- bsp/nuvoton/nk-n9h30/board/board_dev.c | 4 ++-- bsp/nuvoton/nk-rtu980/board/board_dev.c | 4 ++-- .../numaker-hmi-ma35d1/board/board_dev.c | 4 ++-- bsp/nuvoton/numaker-iot-m467/board/board_dev.c | 4 ++-- bsp/nuvoton/numaker-iot-m487/board/board_dev.c | 4 ++-- .../numaker-iot-ma35d1/board/board_dev.c | 4 ++-- bsp/nuvoton/numaker-m032ki/board/board_dev.c | 4 ++-- bsp/nuvoton/numaker-m467hj/board/board_dev.c | 4 ++-- bsp/nuvoton/numaker-pfm-m487/board/board_dev.c | 4 ++-- bsp/nxp/imx/imx6ull-smart/drivers/drv_sdio.c | 2 +- .../board/ports/spi_flash_init.c | 4 ++-- bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c | 2 +- bsp/nxp/lpc/lpc54114-lite/drivers/drv_sdcard.c | 2 +- .../lpc/lpc54114-lite/drivers/drv_spi_flash.c | 4 ++-- .../lpc55sxx/Libraries/drivers/drv_soft_spi.h | 2 +- .../board/ports/soft_spi_flash_init.c | 4 ++-- .../board/ports/drv_filesystem_spi_flash.c | 2 +- .../board/ports/drv_filesystem_spi_flash.c | 2 +- bsp/phytium/libraries/drivers/drv_sdif.c | 2 +- bsp/qemu-vexpress-a9/drivers/drv_sdio.c | 2 +- bsp/raspberry-pi/raspi3-32/driver/drv_sdio.h | 2 +- bsp/raspberry-pi/raspi3-32/driver/drv_spi.h | 2 +- bsp/raspberry-pi/raspi3-64/driver/drv_sdio.h | 2 +- bsp/raspberry-pi/raspi3-64/driver/drv_spi.h | 2 +- bsp/raspberry-pi/raspi4-32/driver/drv_sdio.h | 2 +- .../raspi4-64/drivers/drv_dsi_touch.c | 2 +- bsp/raspberry-pi/raspi4-64/drivers/drv_sdio.h | 2 +- bsp/raspberry-pico/drivers/drv_soft_spi.h | 2 +- .../libraries/HAL_Drivers/drv_soft_spi.h | 2 +- bsp/renesas/ra4m2-eco/board/ports/mnt.c | 2 +- bsp/renesas/ra6m3-hmi-board/board/ports/mnt.c | 2 +- .../ra8d1-vision-board/board/ports/mnt.c | 2 +- bsp/renesas/ra8m1-ek/board/ports/mnt.c | 2 +- .../utils/stdio/stdio_serial/stdio_serial.h | 2 +- .../services/gfx_mono/gfx_mono_screen_dump.h | 2 +- .../utils/stdio/stdio_serial/stdio_serial.h | 2 +- bsp/sep6200/application/startup.c | 2 +- bsp/sep6200/drivers/board.c | 2 +- bsp/simulator/drivers/sst25vfxx_mtd.h | 2 +- .../libraries/HAL_Drivers/drivers/drv_sdio.h | 4 ++-- .../libraries/HAL_Drivers/drivers/drv_sdmmc.h | 4 ++-- .../HAL_Drivers/drivers/drv_soft_spi.h | 2 +- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/drv_sdcard.c | 2 +- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/fal/fal_spi_flash_sfud_port.c | 2 +- .../board/ports/soft_spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/fal/fal_spi_flash_sfud_port.c | 2 +- .../board/ports/soft_spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/fal/fal_spi_flash_sfud_port.c | 2 +- .../board/ports/soft_spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/spi_flash_init.c | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_spi_flash.c | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_sdio.h | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_sdio.h | 4 ++-- .../board/port/drv_qspi_flash.c | 2 +- .../stm32h750-artpi/board/port/drv_sdio.h | 4 ++-- .../stm32h750-artpi/board/port/drv_wlan.c | 6 +++--- .../board/port/spi_flash_init.c | 2 +- .../stm32h750-artpi/board/port/wifi_config.c | 6 +++--- .../board/port/drv_qspi_flash.c | 4 ++-- .../board/port/drv_spi_flash.c | 4 ++-- .../board/ports/drv_filesystem.c | 2 +- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_sdio_adapter.c | 4 ++-- .../board/ports/fal/fal_flash_sfud_port.c | 2 +- .../board/ports/wifi/wifi_config.c | 6 +++--- .../board/ports/wlan/drv_wlan.c | 6 +++--- .../board/ports/drv_sdio.h | 4 ++-- .../stm32mp157a-st-ev1/board/ports/drv_emmc.h | 4 ++-- .../board/ports/drv_qspi_flash.c | 4 ++-- .../board/ports/drv_spi_flash.c | 4 ++-- bsp/synopsys/boards/drivers/rt_board.c | 2 +- bsp/synwit/swm320-mini/applications/main.c | 4 ++-- bsp/synwit/swm341-mini/applications/main.c | 4 ++-- bsp/tm4c123bsp/libraries/Drivers/drv_spi.h | 2 +- bsp/w60x/drivers/drv_wifi.c | 2 +- .../Libraries/ch32_drivers/drv_spi_ch32f10x.c | 2 +- .../Libraries/ch32_drivers/drv_spi_ch32f20x.c | 2 +- .../Libraries/ch32_drivers/drv_soft_spi.h | 2 +- .../risc-v/Libraries/ch56x_drivers/ch56x_spi.c | 2 +- .../Libraries/ch56x_drivers/ch56x_uart.c | 4 ++-- .../risc-v/Libraries/ch56x_drivers/ch56x_wdt.c | 2 +- bsp/wch/risc-v/ch569w-evt/applications/test.c | 4 ++-- bsp/zynqmp-r5-axu4ev/drivers/drv_sdcard.c | 2 +- .../include/drivers/{gpt.h => dev_gpt.h} | 6 +++--- .../include/drivers/{mmc.h => dev_mmc.h} | 4 ++-- .../drivers/{mmcsd_core.h => dev_mmcsd_core.h} | 4 ++-- .../drivers/include/drivers/{sd.h => dev_sd.h} | 4 ++-- .../include/drivers/{sdio.h => dev_sdio.h} | 4 ++-- .../include/drivers/{serial.h => dev_serial.h} | 4 ++-- .../drivers/{serial_v2.h => dev_serial_v2.h} | 4 ++-- .../include/drivers/{spi.h => dev_spi.h} | 4 ++-- .../include/drivers/{touch.h => dev_touch.h} | 6 +++--- .../drivers/{watchdog.h => dev_watchdog.h} | 6 +++--- components/drivers/include/drivers/wlan.h | 10 +++++----- components/drivers/include/rtdevice.h | 16 ++++++++-------- components/drivers/sdio/SConscript | 12 ++++++------ .../drivers/sdio/{block_dev.c => dev_block.c} | 4 ++-- components/drivers/sdio/{gpt.c => dev_gpt.c} | 4 ++-- components/drivers/sdio/{mmc.c => dev_mmc.c} | 4 ++-- .../sdio/{mmcsd_core.c => dev_mmcsd_core.c} | 8 ++++---- components/drivers/sdio/{sd.c => dev_sd.c} | 4 ++-- components/drivers/sdio/{sdio.c => dev_sdio.c} | 6 +++--- components/drivers/serial/SConscript | 4 ++-- .../drivers/serial/{serial.c => dev_serial.c} | 0 .../serial/{serial_v2.c => dev_serial_v2.c} | 0 components/drivers/spi/SConscript | 12 ++++++------ .../spi/{qspi_core.c => dev_qspi_core.c} | 2 +- .../drivers/spi/{spi_dev.c => dev_spi.c} | 2 +- .../spi/{spi-bit-ops.c => dev_spi_bit_ops.c} | 2 +- .../spi/{spi-bit-ops.h => dev_spi_bit_ops.h} | 4 ++-- .../drivers/spi/{spi_core.c => dev_spi_core.c} | 2 +- .../spi/{spi_flash.h => dev_spi_flash.h} | 4 ++-- .../{spi_flash_sfud.c => dev_spi_flash_sfud.c} | 4 ++-- .../{spi_flash_sfud.h => dev_spi_flash_sfud.h} | 8 ++++---- .../drivers/spi/{spi_msd.c => dev_spi_msd.c} | 2 +- .../drivers/spi/{spi_msd.h => dev_spi_msd.h} | 8 ++++---- .../{spi_wifi_rw009.c => dev_spi_wifi_rw009.c} | 4 ++-- .../{spi_wifi_rw009.h => dev_spi_wifi_rw009.h} | 6 +++--- components/drivers/spi/enc28j60.h | 8 ++++---- components/drivers/touch/SConscript | 2 +- .../drivers/touch/{touch.c => dev_touch.c} | 0 .../watchdog/{watchdog.c => dev_watchdog.c} | 2 +- components/drivers/wlan/SConscript | 14 +++++++------- .../drivers/wlan/{wlan_dev.c => dev_wlan.c} | 4 ++-- .../drivers/wlan/{wlan_dev.h => dev_wlan.h} | 4 ++-- .../wlan/{wlan_cfg.c => dev_wlan_cfg.c} | 2 +- .../wlan/{wlan_cfg.h => dev_wlan_cfg.h} | 6 +++--- .../wlan/{wlan_cmd.c => dev_wlan_cmd.c} | 6 +++--- .../wlan/{wlan_lwip.c => dev_wlan_lwip.c} | 6 +++--- .../wlan/{wlan_mgnt.c => dev_wlan_mgnt.c} | 10 +++++----- .../wlan/{wlan_mgnt.h => dev_wlan_mgnt.h} | 6 +++--- .../wlan/{wlan_prot.c => dev_wlan_prot.c} | 4 ++-- .../wlan/{wlan_prot.h => dev_wlan_prot.h} | 4 ++-- .../{wlan_workqueue.c => dev_wlan_workqueue.c} | 2 +- .../{wlan_workqueue.h => dev_wlan_workqueue.h} | 4 ++-- .../fal/samples/porting/fal_flash_sfud_port.c | 2 +- documentation/device/wlan/wlan.md | 18 +++++++++--------- 219 files changed, 400 insertions(+), 398 deletions(-) rename components/drivers/include/drivers/{gpt.h => dev_gpt.h} (98%) rename components/drivers/include/drivers/{mmc.h => dev_mmc.h} (99%) rename components/drivers/include/drivers/{mmcsd_core.h => dev_mmcsd_core.h} (99%) rename components/drivers/include/drivers/{sd.h => dev_sd.h} (96%) rename components/drivers/include/drivers/{sdio.h => dev_sdio.h} (99%) rename components/drivers/include/drivers/{serial.h => dev_serial.h} (99%) rename components/drivers/include/drivers/{serial_v2.h => dev_serial_v2.h} (99%) rename components/drivers/include/drivers/{spi.h => dev_spi.h} (99%) rename components/drivers/include/drivers/{touch.h => dev_touch.h} (98%) rename components/drivers/include/drivers/{watchdog.h => dev_watchdog.h} (94%) rename components/drivers/sdio/{block_dev.c => dev_block.c} (99%) rename components/drivers/sdio/{gpt.c => dev_gpt.c} (99%) rename components/drivers/sdio/{mmc.c => dev_mmc.c} (99%) rename components/drivers/sdio/{mmcsd_core.c => dev_mmcsd_core.c} (99%) rename components/drivers/sdio/{sd.c => dev_sd.c} (99%) rename components/drivers/sdio/{sdio.c => dev_sdio.c} (99%) rename components/drivers/serial/{serial.c => dev_serial.c} (100%) rename components/drivers/serial/{serial_v2.c => dev_serial_v2.c} (100%) rename components/drivers/spi/{qspi_core.c => dev_qspi_core.c} (99%) rename components/drivers/spi/{spi_dev.c => dev_spi.c} (99%) rename components/drivers/spi/{spi-bit-ops.c => dev_spi_bit_ops.c} (99%) rename components/drivers/spi/{spi-bit-ops.h => dev_spi_bit_ops.h} (95%) rename components/drivers/spi/{spi_core.c => dev_spi_core.c} (99%) rename components/drivers/spi/{spi_flash.h => dev_spi_flash.h} (93%) rename components/drivers/spi/{spi_flash_sfud.c => dev_spi_flash_sfud.c} (99%) rename components/drivers/spi/{spi_flash_sfud.h => dev_spi_flash_sfud.h} (93%) rename components/drivers/spi/{spi_msd.c => dev_spi_msd.c} (99%) rename components/drivers/spi/{spi_msd.h => dev_spi_msd.h} (97%) rename components/drivers/spi/{spi_wifi_rw009.c => dev_spi_wifi_rw009.c} (99%) rename components/drivers/spi/{spi_wifi_rw009.h => dev_spi_wifi_rw009.h} (98%) rename components/drivers/touch/{touch.c => dev_touch.c} (100%) rename components/drivers/watchdog/{watchdog.c => dev_watchdog.c} (98%) rename components/drivers/wlan/{wlan_dev.c => dev_wlan.c} (99%) rename components/drivers/wlan/{wlan_dev.h => dev_wlan.h} (99%) rename components/drivers/wlan/{wlan_cfg.c => dev_wlan_cfg.c} (99%) rename components/drivers/wlan/{wlan_cfg.h => dev_wlan_cfg.h} (94%) rename components/drivers/wlan/{wlan_cmd.c => dev_wlan_cmd.c} (99%) rename components/drivers/wlan/{wlan_lwip.c => dev_wlan_lwip.c} (99%) rename components/drivers/wlan/{wlan_mgnt.c => dev_wlan_mgnt.c} (99%) rename components/drivers/wlan/{wlan_mgnt.h => dev_wlan_mgnt.h} (98%) rename components/drivers/wlan/{wlan_prot.c => dev_wlan_prot.c} (99%) rename components/drivers/wlan/{wlan_prot.h => dev_wlan_prot.h} (97%) rename components/drivers/wlan/{wlan_workqueue.c => dev_wlan_workqueue.c} (98%) rename components/drivers/wlan/{wlan_workqueue.h => dev_wlan_workqueue.h} (92%) diff --git a/bsp/Infineon/libraries/HAL_Drivers/drv_sdcard.c b/bsp/Infineon/libraries/HAL_Drivers/drv_sdcard.c index 9873b3a8931..a7eb1ee603e 100644 --- a/bsp/Infineon/libraries/HAL_Drivers/drv_sdcard.c +++ b/bsp/Infineon/libraries/HAL_Drivers/drv_sdcard.c @@ -79,8 +79,8 @@ static const struct _cy_sdio_pin_and_name_config _sdcard_config = }; #include -#include -#include +#include +#include struct rthw_sdio { struct rt_device parent; diff --git a/bsp/Infineon/libraries/HAL_Drivers/drv_spi.h b/bsp/Infineon/libraries/HAL_Drivers/drv_spi.h index ffcf87b3a5e..de0a4fd6ee3 100644 --- a/bsp/Infineon/libraries/HAL_Drivers/drv_spi.h +++ b/bsp/Infineon/libraries/HAL_Drivers/drv_spi.h @@ -12,7 +12,7 @@ #define __DRV_SPI__ #include -#include +#include "drivers/dev_spi.h" #include "drv_gpio.h" diff --git a/bsp/airm2m/air105/board/ports/spi_flash_init.c b/bsp/airm2m/air105/board/ports/spi_flash_init.c index 9885bef4d79..a7223d0008f 100644 --- a/bsp/airm2m/air105/board/ports/spi_flash_init.c +++ b/bsp/airm2m/air105/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/airm2m/air105/libraries/rt_drivers/drv_wdt.c b/bsp/airm2m/air105/libraries/rt_drivers/drv_wdt.c index 310b8397228..582ebf6fd4a 100644 --- a/bsp/airm2m/air105/libraries/rt_drivers/drv_wdt.c +++ b/bsp/airm2m/air105/libraries/rt_drivers/drv_wdt.c @@ -9,7 +9,7 @@ */ #include "board.h" -#include +#include "drivers/dev_watchdog.h" #ifdef RT_USING_WDT diff --git a/bsp/airm2m/air32f103/board/ports/spi_flash_init.c b/bsp/airm2m/air32f103/board/ports/spi_flash_init.c index 2e2ca27eb1c..0fbe4f2cafc 100644 --- a/bsp/airm2m/air32f103/board/ports/spi_flash_init.c +++ b/bsp/airm2m/air32f103/board/ports/spi_flash_init.c @@ -10,8 +10,8 @@ #include #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/airm2m/air32f103/libraries/rt_drivers/drv_spi.c b/bsp/airm2m/air32f103/libraries/rt_drivers/drv_spi.c index 4b39fa3d148..5470254a995 100644 --- a/bsp/airm2m/air32f103/libraries/rt_drivers/drv_spi.c +++ b/bsp/airm2m/air32f103/libraries/rt_drivers/drv_spi.c @@ -10,7 +10,7 @@ #include #include -#include +#include "drivers/dev_spi.h" #include "board.h" #include "drv_spi.h" diff --git a/bsp/allwinner_tina/drivers/spi/drv_spi_flash.c b/bsp/allwinner_tina/drivers/spi/drv_spi_flash.c index 42038e8abd2..71c681faac1 100644 --- a/bsp/allwinner_tina/drivers/spi/drv_spi_flash.c +++ b/bsp/allwinner_tina/drivers/spi/drv_spi_flash.c @@ -28,8 +28,8 @@ #endif #if defined(TINA_USING_SPI_FLASH) && defined(RT_USING_SFUD) -#include "spi_flash.h" -#include +#include "dev_spi_flash.h" +#include rt_spi_flash_device_t spi_device; int rt_hw_spi_flash_with_sfud_init(void) { diff --git a/bsp/apm32/apm32e103ze-evalboard/board/ports/spi_flash_init.c b/bsp/apm32/apm32e103ze-evalboard/board/ports/spi_flash_init.c index f5fba50b39c..784f8403393 100644 --- a/bsp/apm32/apm32e103ze-evalboard/board/ports/spi_flash_init.c +++ b/bsp/apm32/apm32e103ze-evalboard/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/apm32/apm32f051r8-evalboard/board/ports/spi_flash_init.c b/bsp/apm32/apm32f051r8-evalboard/board/ports/spi_flash_init.c index 7d7161ed502..026b790e24f 100644 --- a/bsp/apm32/apm32f051r8-evalboard/board/ports/spi_flash_init.c +++ b/bsp/apm32/apm32f051r8-evalboard/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/apm32/apm32f107vc-evalboard/board/ports/spi_flash_init.c b/bsp/apm32/apm32f107vc-evalboard/board/ports/spi_flash_init.c index 783d82a743e..7e6af8a0ed2 100644 --- a/bsp/apm32/apm32f107vc-evalboard/board/ports/spi_flash_init.c +++ b/bsp/apm32/apm32f107vc-evalboard/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/apm32/apm32f407zg-evalboard/board/ports/spi_flash_init.c b/bsp/apm32/apm32f407zg-evalboard/board/ports/spi_flash_init.c index 739ed088cb1..6b9c7436729 100644 --- a/bsp/apm32/apm32f407zg-evalboard/board/ports/spi_flash_init.c +++ b/bsp/apm32/apm32f407zg-evalboard/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/apm32/apm32s103vb-miniboard/board/ports/spi_flash_init.c b/bsp/apm32/apm32s103vb-miniboard/board/ports/spi_flash_init.c index 9b1ec081f39..051c45edce3 100644 --- a/bsp/apm32/apm32s103vb-miniboard/board/ports/spi_flash_init.c +++ b/bsp/apm32/apm32s103vb-miniboard/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/apm32/libraries/Drivers/drv_sdio.h b/bsp/apm32/libraries/Drivers/drv_sdio.h index e8d40d12188..ee1d0438c96 100644 --- a/bsp/apm32/libraries/Drivers/drv_sdio.h +++ b/bsp/apm32/libraries/Drivers/drv_sdio.h @@ -15,8 +15,8 @@ #include "rtdevice.h" #include #include -#include -#include +#include +#include #include "drv_common.h" #include "board.h" diff --git a/bsp/apm32/libraries/Drivers/drv_spi.h b/bsp/apm32/libraries/Drivers/drv_spi.h index 199958778ff..f9bd2759d6d 100644 --- a/bsp/apm32/libraries/Drivers/drv_spi.h +++ b/bsp/apm32/libraries/Drivers/drv_spi.h @@ -13,7 +13,7 @@ #include "board.h" #include -#include +#include "drivers/dev_spi.h" struct apm32_spi_config { diff --git a/bsp/at32/libraries/rt_drivers/drv_sdio.h b/bsp/at32/libraries/rt_drivers/drv_sdio.h index fcbfd7381a3..9a2b7d1c30a 100644 --- a/bsp/at32/libraries/rt_drivers/drv_sdio.h +++ b/bsp/at32/libraries/rt_drivers/drv_sdio.h @@ -14,8 +14,8 @@ #include "rtdevice.h" #include #include -#include -#include +#include +#include #include "drv_common.h" #define SDCARD_INSTANCE_TYPE sdio_type diff --git a/bsp/at32/libraries/rt_drivers/drv_spi.h b/bsp/at32/libraries/rt_drivers/drv_spi.h index dd6cf48146e..8ff557c84ee 100644 --- a/bsp/at32/libraries/rt_drivers/drv_spi.h +++ b/bsp/at32/libraries/rt_drivers/drv_spi.h @@ -12,7 +12,7 @@ #define __DRV_SPI__ #include -#include +#include "drivers/dev_spi.h" #include "drv_common.h" #include "drv_dma.h" diff --git a/bsp/at32/libraries/rt_drivers/drv_wdt.c b/bsp/at32/libraries/rt_drivers/drv_wdt.c index 249490f2f79..fad7ec13757 100644 --- a/bsp/at32/libraries/rt_drivers/drv_wdt.c +++ b/bsp/at32/libraries/rt_drivers/drv_wdt.c @@ -8,7 +8,7 @@ * 2022-05-16 shelton first version */ -#include +#include "drivers/dev_watchdog.h" #include "drv_common.h" #ifdef RT_USING_WDT diff --git a/bsp/at91/at91sam9260/applications/application.c b/bsp/at91/at91sam9260/applications/application.c index f1a377e1e92..c1c5add6336 100644 --- a/bsp/at91/at91sam9260/applications/application.c +++ b/bsp/at91/at91sam9260/applications/application.c @@ -22,7 +22,7 @@ #endif #ifdef RT_USING_SDIO -#include +#include #include "at91_mci.h" #endif diff --git a/bsp/at91/at91sam9260/drivers/at91_mci.c b/bsp/at91/at91sam9260/drivers/at91_mci.c index 92f7abdfecc..0855b61386d 100644 --- a/bsp/at91/at91sam9260/drivers/at91_mci.c +++ b/bsp/at91/at91sam9260/drivers/at91_mci.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include "at91_mci.h" diff --git a/bsp/at91/at91sam9g45/applications/application.c b/bsp/at91/at91sam9g45/applications/application.c index bae4b595a06..9775bc81d26 100644 --- a/bsp/at91/at91sam9g45/applications/application.c +++ b/bsp/at91/at91sam9g45/applications/application.c @@ -22,7 +22,7 @@ #endif #ifdef RT_USING_SDIO -#include +#include #include "at91_mci.h" #endif diff --git a/bsp/at91/at91sam9g45/drivers/at91_mci.c b/bsp/at91/at91sam9g45/drivers/at91_mci.c index 55c698832fd..d465d49a8c5 100644 --- a/bsp/at91/at91sam9g45/drivers/at91_mci.c +++ b/bsp/at91/at91sam9g45/drivers/at91_mci.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include "at91_mci.h" diff --git a/bsp/bf533/board.c b/bsp/bf533/board.c index 55420794354..34aa6f27ba8 100644 --- a/bsp/bf533/board.c +++ b/bsp/bf533/board.c @@ -12,7 +12,7 @@ #include "rtconfig.h" #include "rtdef.h" #include "rthw.h" -#include "serial.h" +#include "drivers/dev_serial.h" #include #include diff --git a/bsp/bf533/startup.c b/bsp/bf533/startup.c index 8e965df00f6..eceb9881f70 100644 --- a/bsp/bf533/startup.c +++ b/bsp/bf533/startup.c @@ -12,7 +12,7 @@ #include #include "application.h" #include "board.h" -#include "serial.h" +#include "drivers/dev_serial.h" #include "finsh.h" extern "asm" int rtt_heap_start; diff --git a/bsp/bluetrum/libraries/hal_drivers/drv_sdio.h b/bsp/bluetrum/libraries/hal_drivers/drv_sdio.h index 09c1d04f521..76818293062 100644 --- a/bsp/bluetrum/libraries/hal_drivers/drv_sdio.h +++ b/bsp/bluetrum/libraries/hal_drivers/drv_sdio.h @@ -13,8 +13,8 @@ #include "drv_common.h" #include "board.h" -#include "drivers/mmcsd_core.h" -#include "drivers/sdio.h" +#include "drivers/dev_mmcsd_core.h" +#include "drivers/dev_sdio.h" #define SDIO_BUFF_SIZE 1024 #define SDIO_ALIGN_LEN 32 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 d033ce87766..01795a05b1b 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 @@ -9,7 +9,7 @@ */ #include -#include +#include "dev_wlan.h" #define DBG_TAG "drv.wifi" #define DBG_LVL DBG_LOG @@ -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/bouffalo_lab/libraries/rt_drivers/drv_sdh.c b/bsp/bouffalo_lab/libraries/rt_drivers/drv_sdh.c index e1d2900515e..6dc5f3ed8fd 100644 --- a/bsp/bouffalo_lab/libraries/rt_drivers/drv_sdh.c +++ b/bsp/bouffalo_lab/libraries/rt_drivers/drv_sdh.c @@ -20,8 +20,8 @@ #endif #include -#include -#include +#include +#include #include "drv_sdh.h" #if defined(BL808) diff --git a/bsp/cvitek/drivers/drv_sdhci.c b/bsp/cvitek/drivers/drv_sdhci.c index dd7ae14086d..1b6c78d6a29 100644 --- a/bsp/cvitek/drivers/drv_sdhci.c +++ b/bsp/cvitek/drivers/drv_sdhci.c @@ -21,8 +21,8 @@ #define DBG_LEVEL DBG_INFO #include -#include -#include +#include +#include #include "drv_sdhci.h" diff --git a/bsp/dm365/applications/application.c b/bsp/dm365/applications/application.c index 3d5207b5166..e810f09ee69 100644 --- a/bsp/dm365/applications/application.c +++ b/bsp/dm365/applications/application.c @@ -22,7 +22,7 @@ #endif #ifdef RT_USING_SDIO -#include +#include #endif int main(void) diff --git a/bsp/dm365/drivers/mmcsd.c b/bsp/dm365/drivers/mmcsd.c index 8e122362563..2ef6dbb859c 100644 --- a/bsp/dm365/drivers/mmcsd.c +++ b/bsp/dm365/drivers/mmcsd.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include "mmcsd.h" #include "edma.h" diff --git a/bsp/essemi/es32f0654/drivers/drv_spiflash.c b/bsp/essemi/es32f0654/drivers/drv_spiflash.c index 334f9088874..70c8d62f850 100644 --- a/bsp/essemi/es32f0654/drivers/drv_spiflash.c +++ b/bsp/essemi/es32f0654/drivers/drv_spiflash.c @@ -14,9 +14,9 @@ #if defined(BSP_USING_SPI_FLASH) -#include "spi_flash.h" +#include "dev_spi_flash.h" #include "drv_spiflash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" int rt_hw_spi_flash_init(void) diff --git a/bsp/essemi/es32f369x/drivers/drv_spiflash.c b/bsp/essemi/es32f369x/drivers/drv_spiflash.c index 334f9088874..70c8d62f850 100644 --- a/bsp/essemi/es32f369x/drivers/drv_spiflash.c +++ b/bsp/essemi/es32f369x/drivers/drv_spiflash.c @@ -14,9 +14,9 @@ #if defined(BSP_USING_SPI_FLASH) -#include "spi_flash.h" +#include "dev_spi_flash.h" #include "drv_spiflash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" int rt_hw_spi_flash_init(void) diff --git a/bsp/essemi/es32vf2264/drivers/drv_spiflash.c b/bsp/essemi/es32vf2264/drivers/drv_spiflash.c index 334f9088874..70c8d62f850 100644 --- a/bsp/essemi/es32vf2264/drivers/drv_spiflash.c +++ b/bsp/essemi/es32vf2264/drivers/drv_spiflash.c @@ -14,9 +14,9 @@ #if defined(BSP_USING_SPI_FLASH) -#include "spi_flash.h" +#include "dev_spi_flash.h" #include "drv_spiflash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" int rt_hw_spi_flash_init(void) diff --git a/bsp/frdm-k64f/board/drv_uart.h b/bsp/frdm-k64f/board/drv_uart.h index d28e69f052b..361e8c736df 100644 --- a/bsp/frdm-k64f/board/drv_uart.h +++ b/bsp/frdm-k64f/board/drv_uart.h @@ -17,7 +17,7 @@ #include -#include +#include void rt_hw_uart_init(void); diff --git a/bsp/ft2004/drivers/drv_qspi_flash.c b/bsp/ft2004/drivers/drv_qspi_flash.c index 102cd5fc5b5..668daf2f22a 100644 --- a/bsp/ft2004/drivers/drv_qspi_flash.c +++ b/bsp/ft2004/drivers/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USE_QSPI -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #define _QSPI_DEVICE_NAME "qspiflash" static int diff --git a/bsp/ft2004/drivers/drv_sdctrl.c b/bsp/ft2004/drivers/drv_sdctrl.c index 790a38aba06..1faf8e63c24 100644 --- a/bsp/ft2004/drivers/drv_sdctrl.c +++ b/bsp/ft2004/drivers/drv_sdctrl.c @@ -14,7 +14,7 @@ #include "ft_debug.h" #include "ft_types.h" #include "ft_generic_timer.h" -#include +#include #include "interrupt.h" #include "rtconfig.h" #include "ft_cache.h" diff --git a/bsp/ft2004/drivers/drv_spi_flash.c b/bsp/ft2004/drivers/drv_spi_flash.c index 26d8b447122..c27a7283886 100644 --- a/bsp/ft2004/drivers/drv_spi_flash.c +++ b/bsp/ft2004/drivers/drv_spi_flash.c @@ -21,8 +21,8 @@ #ifdef BSP_USE_SPI -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" static int rt_hw_spi_flash_init(void) { diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_spi_flash.c b/bsp/gd32/arm/libraries/gd32_drivers/drv_spi_flash.c index 1fdaf3a715f..f844bd2ddc0 100644 --- a/bsp/gd32/arm/libraries/gd32_drivers/drv_spi_flash.c +++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_spi_flash.c @@ -10,10 +10,10 @@ */ #include #include "drv_spi.h" -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #endif #include diff --git a/bsp/hc32/ev_hc32f448_lqfp80/board/ports/drv_spi_flash.c b/bsp/hc32/ev_hc32f448_lqfp80/board/ports/drv_spi_flash.c index 5e69545c7b8..15d4e15ab84 100644 --- a/bsp/hc32/ev_hc32f448_lqfp80/board/ports/drv_spi_flash.c +++ b/bsp/hc32/ev_hc32f448_lqfp80/board/ports/drv_spi_flash.c @@ -19,9 +19,9 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD - #include "spi_flash_sfud.h" + #include "dev_spi_flash_sfud.h" #endif #define SPI_BUS_NAME "spi1" diff --git a/bsp/hc32/ev_hc32f448_lqfp80/board/ports/fal/fal_flash_sfud_port.c b/bsp/hc32/ev_hc32f448_lqfp80/board/ports/fal/fal_flash_sfud_port.c index c1b78513093..be3f1b5c071 100644 --- a/bsp/hc32/ev_hc32f448_lqfp80/board/ports/fal/fal_flash_sfud_port.c +++ b/bsp/hc32/ev_hc32f448_lqfp80/board/ports/fal/fal_flash_sfud_port.c @@ -13,7 +13,7 @@ #include #ifdef RT_USING_SFUD - #include + #include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/drv_spi_flash.c b/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/drv_spi_flash.c index cf6d37026b4..f4b73c4db82 100644 --- a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/drv_spi_flash.c +++ b/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/drv_spi_flash.c @@ -18,9 +18,9 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD - #include "spi_flash_sfud.h" + #include "dev_spi_flash_sfud.h" #endif #define SPI_BUS_NAME "spi3" diff --git a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/fal/fal_flash_sfud_port.c b/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/fal/fal_flash_sfud_port.c index b52d72de00e..6348797e684 100644 --- a/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/fal/fal_flash_sfud_port.c +++ b/bsp/hc32/ev_hc32f460_lqfp100_v2/board/ports/fal/fal_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD - #include + #include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/drv_spi_flash.c b/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/drv_spi_flash.c index 107e98f4417..7f394c8f20e 100644 --- a/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/drv_spi_flash.c +++ b/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/drv_spi_flash.c @@ -18,9 +18,9 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD - #include "spi_flash_sfud.h" + #include "dev_spi_flash_sfud.h" #endif #define SPI_BUS_NAME "spi1" diff --git a/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/fal/fal_flash_sfud_port.c b/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/fal/fal_flash_sfud_port.c index b52d72de00e..6348797e684 100644 --- a/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/fal/fal_flash_sfud_port.c +++ b/bsp/hc32/ev_hc32f4a0_lqfp176/board/ports/fal/fal_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD - #include + #include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/drv_spi_flash.c b/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/drv_spi_flash.c index f1db0fff56a..afc14643cb9 100644 --- a/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/drv_spi_flash.c +++ b/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/drv_spi_flash.c @@ -18,9 +18,9 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD - #include "spi_flash_sfud.h" + #include "dev_spi_flash_sfud.h" #endif #define SPI_BUS_NAME "spi1" diff --git a/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/fal/fal_flash_sfud_port.c b/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/fal/fal_flash_sfud_port.c index b52d72de00e..6348797e684 100644 --- a/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/fal/fal_flash_sfud_port.c +++ b/bsp/hc32/lckfb-hc32f4a0-lqfp100/board/ports/fal/fal_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD - #include + #include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/bsp/hc32/platform/fal/fal_flash_sfud_nor.c b/bsp/hc32/platform/fal/fal_flash_sfud_nor.c index fc003e559d8..e469f7180f6 100644 --- a/bsp/hc32/platform/fal/fal_flash_sfud_nor.c +++ b/bsp/hc32/platform/fal/fal_flash_sfud_nor.c @@ -11,7 +11,7 @@ #include #include #ifdef RT_USING_SFUD - #include + #include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/bsp/hc32/platform/sfud/drv_spi_flash.c b/bsp/hc32/platform/sfud/drv_spi_flash.c index 531e543833b..931de2a91d5 100644 --- a/bsp/hc32/platform/sfud/drv_spi_flash.c +++ b/bsp/hc32/platform/sfud/drv_spi_flash.c @@ -18,9 +18,9 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" +#include "dev_spi_flash.h" #ifdef RT_USING_SFUD - #include "spi_flash_sfud.h" + #include "dev_spi_flash_sfud.h" #endif #if defined(HC32F4A0) || defined(HC32F448) diff --git a/bsp/hk32/libraries/rt_drivers/drv_spi.h b/bsp/hk32/libraries/rt_drivers/drv_spi.h index 2ac963b0a7e..67c243c6512 100644 --- a/bsp/hk32/libraries/rt_drivers/drv_spi.h +++ b/bsp/hk32/libraries/rt_drivers/drv_spi.h @@ -12,7 +12,7 @@ #define __DRV_SPI__ #include -#include +#include "drivers/dev_spi.h" #include struct hk32_spi_config diff --git a/bsp/k210/applications/mnt.c b/bsp/k210/applications/mnt.c index e5d00d450a4..4d5ca6acc1b 100644 --- a/bsp/k210/applications/mnt.c +++ b/bsp/k210/applications/mnt.c @@ -9,7 +9,7 @@ #include #if defined(RT_USING_SPI_MSD) && defined(RT_USING_DFS_ELMFAT) -#include +#include #include int mnt_init(void) { diff --git a/bsp/k210/drivers/drv_lcd.c b/bsp/k210/drivers/drv_lcd.c index c5da45a6acd..948a1d88569 100644 --- a/bsp/k210/drivers/drv_lcd.c +++ b/bsp/k210/drivers/drv_lcd.c @@ -17,6 +17,7 @@ #include "drv_lcd.h" #include #include +#include #include #include #include diff --git a/bsp/k210/drivers/drv_spi.c b/bsp/k210/drivers/drv_spi.c index accf8ed3c53..62330eac257 100644 --- a/bsp/k210/drivers/drv_spi.c +++ b/bsp/k210/drivers/drv_spi.c @@ -10,11 +10,12 @@ #include #include +#include #ifdef RT_USING_SPI #include "drv_spi.h" #include -#include +#include #include "dmalock.h" #include #include diff --git a/bsp/loongson/ls1cdev/drivers/drv_spi.c b/bsp/loongson/ls1cdev/drivers/drv_spi.c index 25b30e07ca1..c9b6a294e95 100644 --- a/bsp/loongson/ls1cdev/drivers/drv_spi.c +++ b/bsp/loongson/ls1cdev/drivers/drv_spi.c @@ -10,11 +10,11 @@ */ #include -#include +#include "drivers/dev_spi.h" #include #include "drv_spi.h" #include "ls1c_public.h" -#include "spi_msd.h" +#include "dev_spi_msd.h" #include "dfs_fs.h" #include "../libraries/ls1c_pin.h" diff --git a/bsp/loongson/ls1cdev/drivers/drv_wdt.c b/bsp/loongson/ls1cdev/drivers/drv_wdt.c index a40a95c79bb..d4f0c518017 100644 --- a/bsp/loongson/ls1cdev/drivers/drv_wdt.c +++ b/bsp/loongson/ls1cdev/drivers/drv_wdt.c @@ -13,7 +13,7 @@ #ifdef RT_USING_WDT -#include +#include "drivers/dev_watchdog.h" #include "drv_wdt.h" #include "ls1c_wdog.h" diff --git a/bsp/loongson/ls1cdev/drivers/touch.c b/bsp/loongson/ls1cdev/drivers/touch.c index b5be15c9628..1a3baf32cfe 100644 --- a/bsp/loongson/ls1cdev/drivers/touch.c +++ b/bsp/loongson/ls1cdev/drivers/touch.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include "drivers/dev_spi.h" #include "ls1c.h" #include "ls1c_gpio.h" #include "ls1c_spi.h" diff --git a/bsp/loongson/ls2kdev/drivers/drv_spi.c b/bsp/loongson/ls2kdev/drivers/drv_spi.c index b29f7b9bc3c..13fe66ee9aa 100644 --- a/bsp/loongson/ls2kdev/drivers/drv_spi.c +++ b/bsp/loongson/ls2kdev/drivers/drv_spi.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include "drivers/dev_spi.h" #include "drv_spi.h" #ifdef RT_USING_SPI diff --git a/bsp/microblaze/board.c b/bsp/microblaze/board.c index 1de91711513..f46f431492a 100755 --- a/bsp/microblaze/board.c +++ b/bsp/microblaze/board.c @@ -30,7 +30,7 @@ #include "xintc_l.h" #ifdef RT_USING_UART1 -#include "serial.h" +#include "drivers/dev_serial.h" #endif #define TIMER_CNTR_0 0 @@ -143,8 +143,8 @@ static void rt_hw_console_init() rt_uint32_t status; /* - * Initialize the UartLite driver so that it is ready to use. - */ + * Initialize the UartLite driver so that it is ready to use. + */ status = XUartLite_Initialize(&uart_lite, RS232_DEVICE_ID); if (status != XST_SUCCESS) { diff --git a/bsp/mini2440/drivers/s3cmci.c b/bsp/mini2440/drivers/s3cmci.c index b5b6f58414c..e85d4bc6cef 100644 --- a/bsp/mini2440/drivers/s3cmci.c +++ b/bsp/mini2440/drivers/s3cmci.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #define S3C_PCLK 50000000 diff --git a/bsp/mini4020/applications/startup.c b/bsp/mini4020/applications/startup.c index d866ed91db6..d9da7652305 100644 --- a/bsp/mini4020/applications/startup.c +++ b/bsp/mini4020/applications/startup.c @@ -12,7 +12,7 @@ #include #include -#include +#include #ifdef RT_USING_FINSH #include #endif diff --git a/bsp/mini4020/drivers/board.c b/bsp/mini4020/drivers/board.c index 0aaf40237cc..97b64ac9b97 100644 --- a/bsp/mini4020/drivers/board.c +++ b/bsp/mini4020/drivers/board.c @@ -17,7 +17,7 @@ #include #include -#include +#include void rt_hw_serial_putc(const char c); diff --git a/bsp/n32g452xx/Libraries/rt_drivers/drv_wdt.c b/bsp/n32g452xx/Libraries/rt_drivers/drv_wdt.c index 7312357e471..f8c02b33aac 100644 --- a/bsp/n32g452xx/Libraries/rt_drivers/drv_wdt.c +++ b/bsp/n32g452xx/Libraries/rt_drivers/drv_wdt.c @@ -10,7 +10,7 @@ */ #include -#include +#include "drivers/dev_watchdog.h" #ifdef RT_USING_WDT #ifdef BSP_USING_WDT diff --git a/bsp/nuvoton/libraries/m2354/rtt_port/drv_sdio.c b/bsp/nuvoton/libraries/m2354/rtt_port/drv_sdio.c index 3e982bea4f2..359b96dc89a 100644 --- a/bsp/nuvoton/libraries/m2354/rtt_port/drv_sdio.c +++ b/bsp/nuvoton/libraries/m2354/rtt_port/drv_sdio.c @@ -15,8 +15,8 @@ #if defined(BSP_USING_SDH) #include -#include -#include +#include +#include #include "NuMicro.h" diff --git a/bsp/nuvoton/libraries/m460/rtt_port/drv_sdio.c b/bsp/nuvoton/libraries/m460/rtt_port/drv_sdio.c index 3e982bea4f2..359b96dc89a 100644 --- a/bsp/nuvoton/libraries/m460/rtt_port/drv_sdio.c +++ b/bsp/nuvoton/libraries/m460/rtt_port/drv_sdio.c @@ -15,8 +15,8 @@ #if defined(BSP_USING_SDH) #include -#include -#include +#include +#include #include "NuMicro.h" diff --git a/bsp/nuvoton/libraries/m480/rtt_port/drv_sdio.c b/bsp/nuvoton/libraries/m480/rtt_port/drv_sdio.c index 3e982bea4f2..359b96dc89a 100644 --- a/bsp/nuvoton/libraries/m480/rtt_port/drv_sdio.c +++ b/bsp/nuvoton/libraries/m480/rtt_port/drv_sdio.c @@ -15,8 +15,8 @@ #if defined(BSP_USING_SDH) #include -#include -#include +#include +#include #include "NuMicro.h" diff --git a/bsp/nuvoton/libraries/ma35/rtt_port/drv_sdio.c b/bsp/nuvoton/libraries/ma35/rtt_port/drv_sdio.c index 3a584338393..1ea3be57403 100644 --- a/bsp/nuvoton/libraries/ma35/rtt_port/drv_sdio.c +++ b/bsp/nuvoton/libraries/ma35/rtt_port/drv_sdio.c @@ -15,8 +15,8 @@ #if defined(BSP_USING_SDH) #include -#include -#include +#include +#include #include "NuMicro.h" #include "drv_common.h" diff --git a/bsp/nuvoton/nk-980iot/board/board_dev.c b/bsp/nuvoton/nk-980iot/board/board_dev.c index 66d511d8f59..0d632231535 100644 --- a/bsp/nuvoton/nk-980iot/board/board_dev.c +++ b/bsp/nuvoton/nk-980iot/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/nk-n9h30/board/board_dev.c b/bsp/nuvoton/nk-n9h30/board/board_dev.c index d48432affac..2757e7b54d1 100644 --- a/bsp/nuvoton/nk-n9h30/board/board_dev.c +++ b/bsp/nuvoton/nk-n9h30/board/board_dev.c @@ -16,8 +16,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/nk-rtu980/board/board_dev.c b/bsp/nuvoton/nk-rtu980/board/board_dev.c index 0086fe4595f..4483591c5b5 100644 --- a/bsp/nuvoton/nk-rtu980/board/board_dev.c +++ b/bsp/nuvoton/nk-rtu980/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/board/board_dev.c b/bsp/nuvoton/numaker-hmi-ma35d1/board/board_dev.c index a4756635910..721f3d5d472 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/board/board_dev.c +++ b/bsp/nuvoton/numaker-hmi-ma35d1/board/board_dev.c @@ -21,8 +21,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-iot-m467/board/board_dev.c b/bsp/nuvoton/numaker-iot-m467/board/board_dev.c index 4056784edd1..87b43cd5505 100644 --- a/bsp/nuvoton/numaker-iot-m467/board/board_dev.c +++ b/bsp/nuvoton/numaker-iot-m467/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-iot-m487/board/board_dev.c b/bsp/nuvoton/numaker-iot-m487/board/board_dev.c index 1f9488d07b8..2e2d328cbb5 100644 --- a/bsp/nuvoton/numaker-iot-m487/board/board_dev.c +++ b/bsp/nuvoton/numaker-iot-m487/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-iot-ma35d1/board/board_dev.c b/bsp/nuvoton/numaker-iot-ma35d1/board/board_dev.c index 89a03d8355f..63d452500d8 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/board/board_dev.c +++ b/bsp/nuvoton/numaker-iot-ma35d1/board/board_dev.c @@ -21,8 +21,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-m032ki/board/board_dev.c b/bsp/nuvoton/numaker-m032ki/board/board_dev.c index cd1bf5167c4..184acda1979 100644 --- a/bsp/nuvoton/numaker-m032ki/board/board_dev.c +++ b/bsp/nuvoton/numaker-m032ki/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-m467hj/board/board_dev.c b/bsp/nuvoton/numaker-m467hj/board/board_dev.c index f7ae130f728..3d65d2ee855 100644 --- a/bsp/nuvoton/numaker-m467hj/board/board_dev.c +++ b/bsp/nuvoton/numaker-m467hj/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c b/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c index 5db43eca5ce..671af6e6f91 100644 --- a/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c +++ b/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c @@ -15,8 +15,8 @@ #if defined(BOARD_USING_STORAGE_SPIFLASH) #if defined(RT_USING_SFUD) - #include "spi_flash.h" - #include "spi_flash_sfud.h" + #include "dev_spi_flash.h" + #include "dev_spi_flash_sfud.h" #endif #include "drv_qspi.h" diff --git a/bsp/nxp/imx/imx6ull-smart/drivers/drv_sdio.c b/bsp/nxp/imx/imx6ull-smart/drivers/drv_sdio.c index 8ece4418c51..4531e2550fb 100644 --- a/bsp/nxp/imx/imx6ull-smart/drivers/drv_sdio.c +++ b/bsp/nxp/imx/imx6ull-smart/drivers/drv_sdio.c @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include diff --git a/bsp/nxp/imx/imxrt/imxrt1052-atk-commander/board/ports/spi_flash_init.c b/bsp/nxp/imx/imxrt/imxrt1052-atk-commander/board/ports/spi_flash_init.c index 8137c00f5e7..02d38236cee 100644 --- a/bsp/nxp/imx/imxrt/imxrt1052-atk-commander/board/ports/spi_flash_init.c +++ b/bsp/nxp/imx/imxrt/imxrt1052-atk-commander/board/ports/spi_flash_init.c @@ -12,8 +12,8 @@ #if defined(BSP_USING_SPI_FLASH) -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #include "drv_gpio.h" diff --git a/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c b/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c index 2a900f3892f..229b3c3aef3 100644 --- a/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c +++ b/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/bsp/nxp/lpc/lpc54114-lite/drivers/drv_sdcard.c b/bsp/nxp/lpc/lpc54114-lite/drivers/drv_sdcard.c index 7ca47a19321..61eec0f5b14 100644 --- a/bsp/nxp/lpc/lpc54114-lite/drivers/drv_sdcard.c +++ b/bsp/nxp/lpc/lpc54114-lite/drivers/drv_sdcard.c @@ -6,7 +6,7 @@ #include "drv_sdcard.h" #include "drv_spi.h" -#include "spi_msd.h" +#include "dev_spi_msd.h" #define RT_SDCARD_CS_PIN (3) diff --git a/bsp/nxp/lpc/lpc54114-lite/drivers/drv_spi_flash.c b/bsp/nxp/lpc/lpc54114-lite/drivers/drv_spi_flash.c index 18da6dfe62e..35adfcfcee4 100644 --- a/bsp/nxp/lpc/lpc54114-lite/drivers/drv_spi_flash.c +++ b/bsp/nxp/lpc/lpc54114-lite/drivers/drv_spi_flash.c @@ -9,8 +9,8 @@ #include "rtthread.h" #include "rtdevice.h" -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #define RT_SPI_FLASH_CS_PIN (2) diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_soft_spi.h b/bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_soft_spi.h index 590da0fa0f1..1a05c9bd782 100644 --- a/bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_soft_spi.h +++ b/bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_soft_spi.h @@ -12,7 +12,7 @@ #define DRV_SOFT_SPI_H_ #include -#include +#include /* lpc soft spi config */ struct lpc_soft_spi_config diff --git a/bsp/nxp/lpc/lpc55sxx/lpc55s69_nxp_evk/board/ports/soft_spi_flash_init.c b/bsp/nxp/lpc/lpc55sxx/lpc55s69_nxp_evk/board/ports/soft_spi_flash_init.c index e74f9dc3aa3..367eb555c88 100644 --- a/bsp/nxp/lpc/lpc55sxx/lpc55s69_nxp_evk/board/ports/soft_spi_flash_init.c +++ b/bsp/nxp/lpc/lpc55sxx/lpc55s69_nxp_evk/board/ports/soft_spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_soft_spi.h" #include "drv_pin.h" diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn236/board/ports/drv_filesystem_spi_flash.c b/bsp/nxp/mcx/mcxn/frdm-mcxn236/board/ports/drv_filesystem_spi_flash.c index 56dbc786e6e..9a8eb38266a 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn236/board/ports/drv_filesystem_spi_flash.c +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn236/board/ports/drv_filesystem_spi_flash.c @@ -13,7 +13,7 @@ #if defined(BSP_USING_SPI7) && defined(RT_USING_SFUD) && defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) #include -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #include "dfs_fs.h" #include "dfs.h" #include "dfs_file.h" diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/drv_filesystem_spi_flash.c b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/drv_filesystem_spi_flash.c index cac5b830f30..36b01d3d91b 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/drv_filesystem_spi_flash.c +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/ports/drv_filesystem_spi_flash.c @@ -13,7 +13,7 @@ #if defined(BSP_USING_SPI7) && defined(RT_USING_SFUD) && defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) #include -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" #include "dfs_fs.h" #include "dfs.h" #include "dfs_file.h" diff --git a/bsp/phytium/libraries/drivers/drv_sdif.c b/bsp/phytium/libraries/drivers/drv_sdif.c index 75c622f3ba5..cec38adce2b 100644 --- a/bsp/phytium/libraries/drivers/drv_sdif.c +++ b/bsp/phytium/libraries/drivers/drv_sdif.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #ifdef RT_USING_SMART #include "ioremap.h" diff --git a/bsp/qemu-vexpress-a9/drivers/drv_sdio.c b/bsp/qemu-vexpress-a9/drivers/drv_sdio.c index b9af11592f8..d80173bac27 100644 --- a/bsp/qemu-vexpress-a9/drivers/drv_sdio.c +++ b/bsp/qemu-vexpress-a9/drivers/drv_sdio.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/bsp/raspberry-pi/raspi3-32/driver/drv_sdio.h b/bsp/raspberry-pi/raspi3-32/driver/drv_sdio.h index 917c002dafd..726cf51cf5c 100644 --- a/bsp/raspberry-pi/raspi3-32/driver/drv_sdio.h +++ b/bsp/raspberry-pi/raspi3-32/driver/drv_sdio.h @@ -14,7 +14,7 @@ #include #include -#include +#include #include "board.h" diff --git a/bsp/raspberry-pi/raspi3-32/driver/drv_spi.h b/bsp/raspberry-pi/raspi3-32/driver/drv_spi.h index 58ede93ef44..219afab8e72 100644 --- a/bsp/raspberry-pi/raspi3-32/driver/drv_spi.h +++ b/bsp/raspberry-pi/raspi3-32/driver/drv_spi.h @@ -14,7 +14,7 @@ #include #include -//#include +//#include "drivers/dev_spi.h" #include "board.h" #define SPI0_BASE_ADDR (PER_BASE + BCM283X_SPI0_BASE) diff --git a/bsp/raspberry-pi/raspi3-64/driver/drv_sdio.h b/bsp/raspberry-pi/raspi3-64/driver/drv_sdio.h index 917c002dafd..726cf51cf5c 100644 --- a/bsp/raspberry-pi/raspi3-64/driver/drv_sdio.h +++ b/bsp/raspberry-pi/raspi3-64/driver/drv_sdio.h @@ -14,7 +14,7 @@ #include #include -#include +#include #include "board.h" diff --git a/bsp/raspberry-pi/raspi3-64/driver/drv_spi.h b/bsp/raspberry-pi/raspi3-64/driver/drv_spi.h index 58ede93ef44..219afab8e72 100644 --- a/bsp/raspberry-pi/raspi3-64/driver/drv_spi.h +++ b/bsp/raspberry-pi/raspi3-64/driver/drv_spi.h @@ -14,7 +14,7 @@ #include #include -//#include +//#include "drivers/dev_spi.h" #include "board.h" #define SPI0_BASE_ADDR (PER_BASE + BCM283X_SPI0_BASE) diff --git a/bsp/raspberry-pi/raspi4-32/driver/drv_sdio.h b/bsp/raspberry-pi/raspi4-32/driver/drv_sdio.h index 0481a82e6d1..3a3ee949bee 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/drv_sdio.h +++ b/bsp/raspberry-pi/raspi4-32/driver/drv_sdio.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include "board.h" #include "raspi4.h" diff --git a/bsp/raspberry-pi/raspi4-64/drivers/drv_dsi_touch.c b/bsp/raspberry-pi/raspi4-64/drivers/drv_dsi_touch.c index 33ec901f630..2628ea5404d 100644 --- a/bsp/raspberry-pi/raspi4-64/drivers/drv_dsi_touch.c +++ b/bsp/raspberry-pi/raspi4-64/drivers/drv_dsi_touch.c @@ -9,7 +9,7 @@ */ #include #include -#include +#include "drivers/dev_touch.h" #include #include diff --git a/bsp/raspberry-pi/raspi4-64/drivers/drv_sdio.h b/bsp/raspberry-pi/raspi4-64/drivers/drv_sdio.h index 30d9d8d343a..6dc566fcac3 100644 --- a/bsp/raspberry-pi/raspi4-64/drivers/drv_sdio.h +++ b/bsp/raspberry-pi/raspi4-64/drivers/drv_sdio.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include "board.h" #include "raspi4.h" diff --git a/bsp/raspberry-pico/drivers/drv_soft_spi.h b/bsp/raspberry-pico/drivers/drv_soft_spi.h index 1d19bb13820..c6711dce373 100644 --- a/bsp/raspberry-pico/drivers/drv_soft_spi.h +++ b/bsp/raspberry-pico/drivers/drv_soft_spi.h @@ -12,7 +12,7 @@ #ifdef BSP_USING_SOFT_SPI #include -#include +#include /* pico soft spi config */ struct pico_soft_spi_config diff --git a/bsp/renesas/libraries/HAL_Drivers/drv_soft_spi.h b/bsp/renesas/libraries/HAL_Drivers/drv_soft_spi.h index 5f45f1fca0f..c096e6954cb 100644 --- a/bsp/renesas/libraries/HAL_Drivers/drv_soft_spi.h +++ b/bsp/renesas/libraries/HAL_Drivers/drv_soft_spi.h @@ -13,7 +13,7 @@ #include #include -#include +#include /* ra soft spi config */ struct ra_soft_spi_config diff --git a/bsp/renesas/ra4m2-eco/board/ports/mnt.c b/bsp/renesas/ra4m2-eco/board/ports/mnt.c index b22e84d34be..0a6e6bc38bb 100644 --- a/bsp/renesas/ra4m2-eco/board/ports/mnt.c +++ b/bsp/renesas/ra4m2-eco/board/ports/mnt.c @@ -5,7 +5,7 @@ #include -#include +#include #include "drv_sci.h" #define DBG_TAG "app.filesystem" diff --git a/bsp/renesas/ra6m3-hmi-board/board/ports/mnt.c b/bsp/renesas/ra6m3-hmi-board/board/ports/mnt.c index 16705622913..9b1fb93749d 100644 --- a/bsp/renesas/ra6m3-hmi-board/board/ports/mnt.c +++ b/bsp/renesas/ra6m3-hmi-board/board/ports/mnt.c @@ -102,7 +102,7 @@ static void sd_mount(void) } #else -#include +#include #include "drv_sci.h" int sd_mount(void) { diff --git a/bsp/renesas/ra8d1-vision-board/board/ports/mnt.c b/bsp/renesas/ra8d1-vision-board/board/ports/mnt.c index 230208c4406..c2284157027 100644 --- a/bsp/renesas/ra8d1-vision-board/board/ports/mnt.c +++ b/bsp/renesas/ra8d1-vision-board/board/ports/mnt.c @@ -137,7 +137,7 @@ static void sd_mount(void) } #else -#include +#include #include "drv_sci.h" int sd_mount(void) { diff --git a/bsp/renesas/ra8m1-ek/board/ports/mnt.c b/bsp/renesas/ra8m1-ek/board/ports/mnt.c index 16705622913..9b1fb93749d 100644 --- a/bsp/renesas/ra8m1-ek/board/ports/mnt.c +++ b/bsp/renesas/ra8m1-ek/board/ports/mnt.c @@ -102,7 +102,7 @@ static void sd_mount(void) } #else -#include +#include #include "drv_sci.h" int sd_mount(void) { diff --git a/bsp/samd21/sam_d2x_asflib/common/utils/stdio/stdio_serial/stdio_serial.h b/bsp/samd21/sam_d2x_asflib/common/utils/stdio/stdio_serial/stdio_serial.h index 4315d3fcdc1..b014bd89fbf 100644 --- a/bsp/samd21/sam_d2x_asflib/common/utils/stdio/stdio_serial/stdio_serial.h +++ b/bsp/samd21/sam_d2x_asflib/common/utils/stdio/stdio_serial/stdio_serial.h @@ -67,7 +67,7 @@ #ifndef SAMD20 # include "sysclk.h" #endif -#include "serial.h" +#include "drivers/dev_serial.h" #if (XMEGA || MEGA_RF) && defined(__GNUC__) extern int _write (char c, int *f); diff --git a/bsp/samd21/sam_d2x_asflib/common2/services/gfx_mono/gfx_mono_screen_dump.h b/bsp/samd21/sam_d2x_asflib/common2/services/gfx_mono/gfx_mono_screen_dump.h index 87ed5840784..677fb2a8fa6 100644 --- a/bsp/samd21/sam_d2x_asflib/common2/services/gfx_mono/gfx_mono_screen_dump.h +++ b/bsp/samd21/sam_d2x_asflib/common2/services/gfx_mono/gfx_mono_screen_dump.h @@ -46,7 +46,7 @@ #ifndef GFX_MONO_SCREEN_DUMP_H_INCLUDED #define GFX_MONO_SCREEN_DUMP_H_INCLUDED -#include +#include #include #ifdef __cplusplus diff --git a/bsp/samd21/sam_d2x_asflib/sam0/utils/stdio/stdio_serial/stdio_serial.h b/bsp/samd21/sam_d2x_asflib/sam0/utils/stdio/stdio_serial/stdio_serial.h index bf8c4f5eee5..24ae1dae33a 100644 --- a/bsp/samd21/sam_d2x_asflib/sam0/utils/stdio/stdio_serial/stdio_serial.h +++ b/bsp/samd21/sam_d2x_asflib/sam0/utils/stdio/stdio_serial/stdio_serial.h @@ -66,7 +66,7 @@ extern "C" { * @{ */ -#include +#include #include #include diff --git a/bsp/sep6200/application/startup.c b/bsp/sep6200/application/startup.c index d724bc99dde..fad0f6cf024 100644 --- a/bsp/sep6200/application/startup.c +++ b/bsp/sep6200/application/startup.c @@ -12,7 +12,7 @@ #include #include -#include +#include #ifdef RT_USING_FINSH #include #endif diff --git a/bsp/sep6200/drivers/board.c b/bsp/sep6200/drivers/board.c index 3a1ade27521..7f0c3d92b58 100644 --- a/bsp/sep6200/drivers/board.c +++ b/bsp/sep6200/drivers/board.c @@ -16,7 +16,7 @@ #include #include -#include +#include #include diff --git a/bsp/simulator/drivers/sst25vfxx_mtd.h b/bsp/simulator/drivers/sst25vfxx_mtd.h index 202c6884a35..1fc767d03c1 100644 --- a/bsp/simulator/drivers/sst25vfxx_mtd.h +++ b/bsp/simulator/drivers/sst25vfxx_mtd.h @@ -13,7 +13,7 @@ #define SST25VFXX_MTD_H #include -#include +#include "drivers/dev_spi.h" rt_err_t sst25vfxx_mtd_init(const char *spi_device_name, rt_uint32_t block_start, rt_uint32_t block_end); diff --git a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdio.h b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdio.h index 9a122e4ef44..ebd0ff8ca20 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdio.h +++ b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdio.h @@ -17,8 +17,8 @@ #include #include "drv_dma.h" #include -#include -#include +#include +#include #if defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F2) || defined(SOC_SERIES_STM32F4) #define SDCARD_INSTANCE_TYPE SDIO_TypeDef diff --git a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdmmc.h b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdmmc.h index 6b388d4fb5a..3e5631ca649 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdmmc.h +++ b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_sdmmc.h @@ -18,8 +18,8 @@ #include #include #include -#include -#include +#include +#include #define SDIO_BUFF_SIZE 4096 #define SDIO_ALIGN_LEN 32 diff --git a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_soft_spi.h b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_soft_spi.h index d6415875e83..2b1a5c6907e 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_soft_spi.h +++ b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_soft_spi.h @@ -13,7 +13,7 @@ #include #include -#include +#include /* stm32 soft spi config */ struct stm32_soft_spi_config diff --git a/bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c b/bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c index 2ac12abb734..168e3b9d448 100644 --- a/bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f103-atk-nano/board/ports/spi_flash_init.c b/bsp/stm32/stm32f103-atk-nano/board/ports/spi_flash_init.c index 4c9ea041fde..26b0e10c4e6 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f103-atk-nano/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/ports/drv_sdcard.c b/bsp/stm32/stm32f103-dofly-M3S/board/ports/drv_sdcard.c index 122b3babbd4..464ed712ac3 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/ports/drv_sdcard.c +++ b/bsp/stm32/stm32f103-dofly-M3S/board/ports/drv_sdcard.c @@ -66,7 +66,7 @@ INIT_APP_EXPORT(stm32_sdcard_mount); #ifdef BSP_USING_SPI_SDCARD #include "drv_spi.h" -#include "spi_msd.h" +#include "dev_spi_msd.h" static int rt_hw_spi2_tfcard(void) { __HAL_RCC_GPIOC_CLK_ENABLE(); diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/ports/spi_flash_init.c b/bsp/stm32/stm32f103-dofly-M3S/board/ports/spi_flash_init.c index ac67789c197..f23e1d2d265 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f103-dofly-M3S/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/ports/spi_flash_init.c b/bsp/stm32/stm32f103-fire-arbitrary/board/ports/spi_flash_init.c index e3e04bf6192..d192c49e3b4 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f407-armfly-v5/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-armfly-v5/board/ports/spi_flash_init.c index 56a0cdc45fe..1f038b839b5 100644 --- a/bsp/stm32/stm32f407-armfly-v5/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f407-armfly-v5/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/ports/fal/fal_spi_flash_sfud_port.c b/bsp/stm32/stm32f407-atk-explorer/board/ports/fal/fal_spi_flash_sfud_port.c index 96da95b4c44..9d3a44e44d3 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/ports/fal/fal_spi_flash_sfud_port.c +++ b/bsp/stm32/stm32f407-atk-explorer/board/ports/fal/fal_spi_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD -#include +#include #endif static int init(void); diff --git a/bsp/stm32/stm32f407-atk-explorer/board/ports/soft_spi_flash_init.c b/bsp/stm32/stm32f407-atk-explorer/board/ports/soft_spi_flash_init.c index 93a8e082992..c0ee45dab90 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/ports/soft_spi_flash_init.c +++ b/bsp/stm32/stm32f407-atk-explorer/board/ports/soft_spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #include "drv_soft_spi.h" diff --git a/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c index d467ba3181b..bbe544c1aa5 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f407-atk-explorer/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/fal/fal_spi_flash_sfud_port.c b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/fal/fal_spi_flash_sfud_port.c index 96da95b4c44..9d3a44e44d3 100644 --- a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/fal/fal_spi_flash_sfud_port.c +++ b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/fal/fal_spi_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD -#include +#include #endif static int init(void); diff --git a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/soft_spi_flash_init.c b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/soft_spi_flash_init.c index f1372de85ae..d12f6564c60 100644 --- a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/soft_spi_flash_init.c +++ b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/soft_spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/spi_flash_init.c index b4ae6a3df14..af299ea7016 100644 --- a/bsp/stm32/stm32f407-lckfb-skystar/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f407-lckfb-skystar/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/fal/fal_spi_flash_sfud_port.c b/bsp/stm32/stm32f407-rt-spark/board/ports/fal/fal_spi_flash_sfud_port.c index 760fbfe5be4..977430f6331 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/ports/fal/fal_spi_flash_sfud_port.c +++ b/bsp/stm32/stm32f407-rt-spark/board/ports/fal/fal_spi_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #ifdef RT_USING_SFUD -#include +#include #endif static int init(void); diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/soft_spi_flash_init.c b/bsp/stm32/stm32f407-rt-spark/board/ports/soft_spi_flash_init.c index f1372de85ae..d12f6564c60 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/ports/soft_spi_flash_init.c +++ b/bsp/stm32/stm32f407-rt-spark/board/ports/soft_spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c index 4b1f0f5f505..56f40fae419 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include #include diff --git a/bsp/stm32/stm32f411-atk-nano/board/ports/spi_flash_init.c b/bsp/stm32/stm32f411-atk-nano/board/ports/spi_flash_init.c index 4c9ea041fde..26b0e10c4e6 100644 --- a/bsp/stm32/stm32f411-atk-nano/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f411-atk-nano/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f429-armfly-v6/board/ports/spi_flash_init.c b/bsp/stm32/stm32f429-armfly-v6/board/ports/spi_flash_init.c index 9e4397ba79a..1afb26256a1 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f429-armfly-v6/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c b/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c index f4d81dc74ab..795a40efeb0 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f429-atk-apollo/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f429-fire-challenger/board/ports/spi_flash_init.c b/bsp/stm32/stm32f429-fire-challenger/board/ports/spi_flash_init.c index 68347cb78b4..072fdeb6513 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/ports/spi_flash_init.c +++ b/bsp/stm32/stm32f429-fire-challenger/board/ports/spi_flash_init.c @@ -9,8 +9,8 @@ */ #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #include "drv_spi.h" #if defined(BSP_USING_SPI_FLASH) diff --git a/bsp/stm32/stm32f469-st-disco/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32f469-st-disco/board/ports/drv_qspi_flash.c index fe963373e27..d7d24f0c0f4 100644 --- a/bsp/stm32/stm32f469-st-disco/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32f469-st-disco/board/ports/drv_qspi_flash.c @@ -17,8 +17,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char n25qxxa_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32f746-st-disco/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32f746-st-disco/board/ports/drv_qspi_flash.c index 795f8a06a1c..ed7386c057c 100644 --- a/bsp/stm32/stm32f746-st-disco/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32f746-st-disco/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char n25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32f767-atk-apollo/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32f767-atk-apollo/board/ports/drv_qspi_flash.c index da7ed4fc362..08d736f179c 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32f767-atk-apollo/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char w25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32f767-fire-challenger-v1/board/ports/drv_qspi_flash.c index 21c015dc894..947e92c2f7a 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char w25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32h563-st-nucleo/board/ports/drv_spi_flash.c b/bsp/stm32/stm32h563-st-nucleo/board/ports/drv_spi_flash.c index d2566f7d821..2ca11eeec00 100644 --- a/bsp/stm32/stm32h563-st-nucleo/board/ports/drv_spi_flash.c +++ b/bsp/stm32/stm32h563-st-nucleo/board/ports/drv_spi_flash.c @@ -17,8 +17,8 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" static int rt_hw_spi_flash_init(void) { diff --git a/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_qspi_flash.c index da7ed4fc362..08d736f179c 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char w25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_sdio.h b/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_sdio.h index 276064ddada..92f6509a3c4 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_sdio.h +++ b/bsp/stm32/stm32h743-atk-apollo/board/ports/drv_sdio.h @@ -16,8 +16,8 @@ #include #include #include -#include -#include +#include +#include #define SDIO_BUFF_SIZE 4096 #define SDIO_ALIGN_LEN 32 diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_qspi_flash.c index 2b5bf844490..282b991d607 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_qspi_flash.c @@ -19,8 +19,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char w25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_sdio.h b/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_sdio.h index fb4f531e3bc..7755dd76b95 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_sdio.h +++ b/bsp/stm32/stm32h743-openmv-h7plus/board/ports/drv_sdio.h @@ -16,8 +16,8 @@ #include #include #include -#include -#include +#include +#include #define SDIO_BUFF_SIZE 4096 #define SDIO_ALIGN_LEN 32 diff --git a/bsp/stm32/stm32h750-artpi/board/port/drv_qspi_flash.c b/bsp/stm32/stm32h750-artpi/board/port/drv_qspi_flash.c index 5fc97b214ed..3698c49884c 100644 --- a/bsp/stm32/stm32h750-artpi/board/port/drv_qspi_flash.c +++ b/bsp/stm32/stm32h750-artpi/board/port/drv_qspi_flash.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #ifdef BSP_USING_QSPI_FLASH diff --git a/bsp/stm32/stm32h750-artpi/board/port/drv_sdio.h b/bsp/stm32/stm32h750-artpi/board/port/drv_sdio.h index 53ded93d593..976997204bd 100644 --- a/bsp/stm32/stm32h750-artpi/board/port/drv_sdio.h +++ b/bsp/stm32/stm32h750-artpi/board/port/drv_sdio.h @@ -17,8 +17,8 @@ #include #include #include -#include -#include +#include +#include #define SDIO_BUFF_SIZE 4096 #define SDIO_ALIGN_LEN 32 diff --git a/bsp/stm32/stm32h750-artpi/board/port/drv_wlan.c b/bsp/stm32/stm32h750-artpi/board/port/drv_wlan.c index 06b9d47eb00..3522be9a0bd 100644 --- a/bsp/stm32/stm32h750-artpi/board/port/drv_wlan.c +++ b/bsp/stm32/stm32h750-artpi/board/port/drv_wlan.c @@ -14,9 +14,9 @@ #ifdef RT_USING_WIFI #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/bsp/stm32/stm32h750-artpi/board/port/spi_flash_init.c b/bsp/stm32/stm32h750-artpi/board/port/spi_flash_init.c index 92a6367e2fb..408f36d8a96 100644 --- a/bsp/stm32/stm32h750-artpi/board/port/spi_flash_init.c +++ b/bsp/stm32/stm32h750-artpi/board/port/spi_flash_init.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include static int rt_flash_init(void) diff --git a/bsp/stm32/stm32h750-artpi/board/port/wifi_config.c b/bsp/stm32/stm32h750-artpi/board/port/wifi_config.c index 256739de07c..83b0ab19007 100644 --- a/bsp/stm32/stm32h750-artpi/board/port/wifi_config.c +++ b/bsp/stm32/stm32h750-artpi/board/port/wifi_config.c @@ -27,9 +27,9 @@ #ifdef BSP_USING_WIFI -#include -#include -#include +#include +#include +#include #include #include diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_qspi_flash.c b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_qspi_flash.c index 9390301b78e..42b59d72aff 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_qspi_flash.c +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_qspi_flash.c @@ -20,8 +20,8 @@ #include #include "dfs_fs.h" #include "drv_spi.h" -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" //#define DRV_DEBUG #define LOG_TAG "drv.qspiflash" diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_spi_flash.c b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_spi_flash.c index 21135d2d1c1..f276576aa90 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_spi_flash.c +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/drv_spi_flash.c @@ -10,8 +10,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c index 8b7720c189b..e3378fb1ef8 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_filesystem.c @@ -29,7 +29,7 @@ #ifdef BSP_USING_SDCARD_FATFS #include -#include +#include static int rt_hw_spi1_tfcard(void) { __HAL_RCC_GPIOC_CLK_ENABLE(); diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_qspi_flash.c index 417f0880e24..6dac69cce75 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" char w25qxx_read_status_register2(struct rt_qspi_device *device) { diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_sdio_adapter.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_sdio_adapter.c index c7f561e0b71..0c78e75d3e9 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_sdio_adapter.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/drv_sdio_adapter.c @@ -9,8 +9,8 @@ #include #include -#include -#include +#include +#include #include "stm32l4xx.h" diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/fal_flash_sfud_port.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/fal_flash_sfud_port.c index fc9a1c7adae..0483fe5102f 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/fal_flash_sfud_port.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/fal_flash_sfud_port.c @@ -12,7 +12,7 @@ #include #include -#include +#include sfud_flash sfud_norflash0; diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/wifi/wifi_config.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/wifi/wifi_config.c index 7f0986e0d7e..dc02b0364bb 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/wifi/wifi_config.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/wifi/wifi_config.c @@ -13,9 +13,9 @@ #ifdef BSP_USING_WIFI -#include -#include -#include +#include +#include +#include #include #include diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/wlan/drv_wlan.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/wlan/drv_wlan.c index 25d45fff4c1..a086f192169 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/wlan/drv_wlan.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/wlan/drv_wlan.c @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include "drv_wlan.h" diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h index 9383e812e4c..976d4cf4a17 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h +++ b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h @@ -16,8 +16,8 @@ #include #include #include -#include -#include +#include +#include #ifndef SDIO1_BASE_ADDRESS #define SDIO1_BASE_ADDRESS (SDMMC1) diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.h b/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.h index 7f3e8c1dc88..8d909ab3529 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.h +++ b/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.h @@ -16,8 +16,8 @@ #include #include #include -#include -#include +#include +#include #define SDIO_BUFF_SIZE 4096 diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_qspi_flash.c b/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_qspi_flash.c index 9834669aa11..390e0228053 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_qspi_flash.c +++ b/bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_qspi_flash.c @@ -16,8 +16,8 @@ #ifdef BSP_USING_QSPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" /** * @brief QSPI MSP Initialization diff --git a/bsp/stm32/stm32u575-st-nucleo/board/ports/drv_spi_flash.c b/bsp/stm32/stm32u575-st-nucleo/board/ports/drv_spi_flash.c index d2566f7d821..2ca11eeec00 100644 --- a/bsp/stm32/stm32u575-st-nucleo/board/ports/drv_spi_flash.c +++ b/bsp/stm32/stm32u575-st-nucleo/board/ports/drv_spi_flash.c @@ -17,8 +17,8 @@ #ifdef BSP_USING_SPI_FLASH -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" static int rt_hw_spi_flash_init(void) { diff --git a/bsp/synopsys/boards/drivers/rt_board.c b/bsp/synopsys/boards/drivers/rt_board.c index 10d958fa005..1e4e7f3b10b 100644 --- a/bsp/synopsys/boards/drivers/rt_board.c +++ b/bsp/synopsys/boards/drivers/rt_board.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include "rt_board.h" #include "arc/arc_timer.h" diff --git a/bsp/synwit/swm320-mini/applications/main.c b/bsp/synwit/swm320-mini/applications/main.c index 8c58c6a208b..ee150569ff7 100644 --- a/bsp/synwit/swm320-mini/applications/main.c +++ b/bsp/synwit/swm320-mini/applications/main.c @@ -261,7 +261,7 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample); #include "drv_spi.h" #ifdef RT_USING_SFUD -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" static int rt_hw_spi_flash_init(void) { @@ -388,7 +388,7 @@ MSH_CMD_EXPORT(spi_flash_elmfat_sample, spi flash elmfat sample); #define SDCARD_NAME "sd0" #include "drv_spi.h" -#include "spi_msd.h" +#include "dev_spi_msd.h" #include #include diff --git a/bsp/synwit/swm341-mini/applications/main.c b/bsp/synwit/swm341-mini/applications/main.c index 9d84b0ea24c..f46e4395cd5 100644 --- a/bsp/synwit/swm341-mini/applications/main.c +++ b/bsp/synwit/swm341-mini/applications/main.c @@ -428,7 +428,7 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample); #include "drv_spi.h" #ifdef RT_USING_SFUD -#include "spi_flash_sfud.h" +#include "dev_spi_flash_sfud.h" static int rt_hw_spi_flash_init(void) { @@ -551,7 +551,7 @@ MSH_CMD_EXPORT(elmfat_sample, elmfat sample); #define SDCARD_NAME "sd0" #include "drv_spi.h" -#include "spi_msd.h" +#include "dev_spi_msd.h" #include #include static int rt_hw_spi0_tfcard(void) diff --git a/bsp/tm4c123bsp/libraries/Drivers/drv_spi.h b/bsp/tm4c123bsp/libraries/Drivers/drv_spi.h index f657f304b69..c58a71381c4 100644 --- a/bsp/tm4c123bsp/libraries/Drivers/drv_spi.h +++ b/bsp/tm4c123bsp/libraries/Drivers/drv_spi.h @@ -14,7 +14,7 @@ #include #include #include -#include "drivers/spi.h" +#include "drivers/dev_spi.h" rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, uint32_t portindex, uint32_t cs_gpiobase, uint32_t cs_gpio_pin); diff --git a/bsp/w60x/drivers/drv_wifi.c b/bsp/w60x/drivers/drv_wifi.c index 4d618958cd7..63bfe2ae448 100644 --- a/bsp/w60x/drivers/drv_wifi.c +++ b/bsp/w60x/drivers/drv_wifi.c @@ -9,7 +9,7 @@ */ #include -#include +#include #include "wm_type_def.h" #include "wm_wifi.h" #include "drv_wifi.h" diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c index 537676591a3..35d9c9eb50b 100644 --- a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c +++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f10x.c @@ -10,7 +10,7 @@ #include #include -#include +#include "drivers/dev_spi.h" #include "board.h" #include "drv_spi.h" #include "ch32f10x_spi.h" diff --git a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c index 5db7b82a652..306a15f518d 100644 --- a/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c +++ b/bsp/wch/arm/Libraries/ch32_drivers/drv_spi_ch32f20x.c @@ -10,7 +10,7 @@ #include #include -#include +#include "drivers/dev_spi.h" #include "board.h" #include "drv_spi.h" #include "ch32f20x_spi.h" diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.h b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.h index 4451952dfc6..9833ca36353 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.h +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.h @@ -12,7 +12,7 @@ #include #include -#include +#include /* ch32 soft spi config */ struct ch32_soft_spi_config diff --git a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c index a57952d98c7..43ea1d4be80 100644 --- a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c +++ b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c @@ -8,7 +8,7 @@ * 2022-07-30 Emuzit first version */ #include -#include +#include "drivers/dev_spi.h" #include #include "ch56x_spi.h" #include "ch56x_sys.h" diff --git a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c index 918b50c7bca..436401ecdb0 100644 --- a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c +++ b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c @@ -11,9 +11,9 @@ #include #include #ifdef RT_USING_SERIAL_V2 - #include + #include #else - #include + #include #endif #include #include "ch56x_sys.h" diff --git a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_wdt.c b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_wdt.c index f04ab23fc9b..2327bf3dcdd 100644 --- a/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_wdt.c +++ b/bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_wdt.c @@ -8,7 +8,7 @@ * 2022-07-20 Emuzit first version */ #include -#include +#include "drivers/dev_watchdog.h" #include "ch56x_sys.h" #define WDOG_HICOUNT_MAX 0xfff // enough to hold (4095 * 120M/524288) >> 8 diff --git a/bsp/wch/risc-v/ch569w-evt/applications/test.c b/bsp/wch/risc-v/ch569w-evt/applications/test.c index e6e6cd5c177..f29811f8cac 100644 --- a/bsp/wch/risc-v/ch569w-evt/applications/test.c +++ b/bsp/wch/risc-v/ch569w-evt/applications/test.c @@ -13,9 +13,9 @@ */ #include #include -#include +#include "drivers/dev_watchdog.h" #include -#include +#include "drivers/dev_spi.h" #include #include "board.h" diff --git a/bsp/zynqmp-r5-axu4ev/drivers/drv_sdcard.c b/bsp/zynqmp-r5-axu4ev/drivers/drv_sdcard.c index 3ce161b0d46..b1f700971b0 100644 --- a/bsp/zynqmp-r5-axu4ev/drivers/drv_sdcard.c +++ b/bsp/zynqmp-r5-axu4ev/drivers/drv_sdcard.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/components/drivers/include/drivers/gpt.h b/components/drivers/include/drivers/dev_gpt.h similarity index 98% rename from components/drivers/include/drivers/gpt.h rename to components/drivers/include/drivers/dev_gpt.h index b88784764b1..269208e82cf 100644 --- a/components/drivers/include/drivers/gpt.h +++ b/components/drivers/include/drivers/dev_gpt.h @@ -7,8 +7,8 @@ * Date Author Notes * 2022-05-05 linzhenxing first version */ -#ifndef __GPT_H -#define __GPT_H +#ifndef __DEV_GPT_H__ +#define __DEV_GPT_H__ #include #include @@ -129,4 +129,4 @@ typedef struct _legacy_mbr int check_gpt(struct rt_mmcsd_card *card); int gpt_get_partition_param(struct rt_mmcsd_card *card, struct dfs_partition *part, uint32_t pindex); void gpt_free(void); -#endif /*__GPT_H*/ +#endif /*__DEV_GPT_H__*/ diff --git a/components/drivers/include/drivers/mmc.h b/components/drivers/include/drivers/dev_mmc.h similarity index 99% rename from components/drivers/include/drivers/mmc.h rename to components/drivers/include/drivers/dev_mmc.h index 88ee7400504..a5372878b8f 100644 --- a/components/drivers/include/drivers/mmc.h +++ b/components/drivers/include/drivers/dev_mmc.h @@ -9,8 +9,8 @@ * 2024-05-25 HPMicro add strobe support */ -#ifndef __MMC_H__ -#define __MMC_H__ +#ifndef __DEV_MMC_H__ +#define __DEV_MMC_H__ #include #include diff --git a/components/drivers/include/drivers/mmcsd_core.h b/components/drivers/include/drivers/dev_mmcsd_core.h similarity index 99% rename from components/drivers/include/drivers/mmcsd_core.h rename to components/drivers/include/drivers/dev_mmcsd_core.h index 3a6ac13aa9f..b6bb1edcc58 100644 --- a/components/drivers/include/drivers/mmcsd_core.h +++ b/components/drivers/include/drivers/dev_mmcsd_core.h @@ -8,8 +8,8 @@ * 2011-07-25 weety first version */ -#ifndef __CORE_H__ -#define __CORE_H__ +#ifndef __DEV_MMCSD_CORE_H__ +#define __DEV_MMCSD_CORE_H__ #include #include diff --git a/components/drivers/include/drivers/sd.h b/components/drivers/include/drivers/dev_sd.h similarity index 96% rename from components/drivers/include/drivers/sd.h rename to components/drivers/include/drivers/dev_sd.h index 4b7b093600d..ca8bb0cb475 100644 --- a/components/drivers/include/drivers/sd.h +++ b/components/drivers/include/drivers/dev_sd.h @@ -9,8 +9,8 @@ * 2024-05-26 HPMicro Add UHS-I support */ -#ifndef __SD_H__ -#define __SD_H__ +#ifndef __DEV_SD_H__ +#define __DEV_SD_H__ #include #include diff --git a/components/drivers/include/drivers/sdio.h b/components/drivers/include/drivers/dev_sdio.h similarity index 99% rename from components/drivers/include/drivers/sdio.h rename to components/drivers/include/drivers/dev_sdio.h index b145ffd280d..a8d30fd76ba 100644 --- a/components/drivers/include/drivers/sdio.h +++ b/components/drivers/include/drivers/dev_sdio.h @@ -8,8 +8,8 @@ * 2012-01-15 weety first version */ -#ifndef __SDIO_H__ -#define __SDIO_H__ +#ifndef __DEV_SDIO_H__ +#define __DEV_SDIO_H__ #include #include diff --git a/components/drivers/include/drivers/serial.h b/components/drivers/include/drivers/dev_serial.h similarity index 99% rename from components/drivers/include/drivers/serial.h rename to components/drivers/include/drivers/dev_serial.h index d90b90607c7..418c25fa1d9 100644 --- a/components/drivers/include/drivers/serial.h +++ b/components/drivers/include/drivers/dev_serial.h @@ -11,8 +11,8 @@ * the size of ring buffer. */ -#ifndef __SERIAL_H__ -#define __SERIAL_H__ +#ifndef __DEV_SERIAL_H__ +#define __DEV_SERIAL_H__ #include diff --git a/components/drivers/include/drivers/serial_v2.h b/components/drivers/include/drivers/dev_serial_v2.h similarity index 99% rename from components/drivers/include/drivers/serial_v2.h rename to components/drivers/include/drivers/dev_serial_v2.h index d0dcf378139..0c3d095ab31 100644 --- a/components/drivers/include/drivers/serial_v2.h +++ b/components/drivers/include/drivers/dev_serial_v2.h @@ -8,8 +8,8 @@ * 2021-06-01 KyleChan first version */ -#ifndef __SERIAL_V2_H__ -#define __SERIAL_V2_H__ +#ifndef __DEV_SERIAL_V2_H__ +#define __DEV_SERIAL_V2_H__ #include diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/dev_spi.h similarity index 99% rename from components/drivers/include/drivers/spi.h rename to components/drivers/include/drivers/dev_spi.h index 8c0bf0bbe9c..d7eda39599b 100644 --- a/components/drivers/include/drivers/spi.h +++ b/components/drivers/include/drivers/dev_spi.h @@ -10,8 +10,8 @@ * 2022-09-01 liYony fix api rt_spi_sendrecv16 about MSB and LSB bug */ -#ifndef __SPI_H__ -#define __SPI_H__ +#ifndef __DEV_SPI_H__ +#define __DEV_SPI_H__ #include #include diff --git a/components/drivers/include/drivers/touch.h b/components/drivers/include/drivers/dev_touch.h similarity index 98% rename from components/drivers/include/drivers/touch.h rename to components/drivers/include/drivers/dev_touch.h index edaf0ad2307..d5cd08fc1cb 100644 --- a/components/drivers/include/drivers/touch.h +++ b/components/drivers/include/drivers/dev_touch.h @@ -8,8 +8,8 @@ * 2019-05-20 tyustli the first version */ -#ifndef __TOUCH_H__ -#define __TOUCH_H__ +#ifndef __DEV_TOUCH_H__ +#define __DEV_TOUCH_H__ #include #include "dev_pin.h" @@ -110,4 +110,4 @@ void rt_hw_touch_isr(rt_touch_t touch); } #endif -#endif /* __TOUCH_H__ */ +#endif /* __DEV_TOUCH_H__ */ diff --git a/components/drivers/include/drivers/watchdog.h b/components/drivers/include/drivers/dev_watchdog.h similarity index 94% rename from components/drivers/include/drivers/watchdog.h rename to components/drivers/include/drivers/dev_watchdog.h index e08d35d87e8..4b5614fc87e 100644 --- a/components/drivers/include/drivers/watchdog.h +++ b/components/drivers/include/drivers/dev_watchdog.h @@ -8,8 +8,8 @@ * 2012-09-12 heyuanjie87 first version. */ -#ifndef __WATCHDOG_H__ -#define __WATCHDOG_H__ +#ifndef __DEV_WATCHDOG_H__ +#define __DEV_WATCHDOG_H__ #include @@ -39,4 +39,4 @@ rt_err_t rt_hw_watchdog_register(rt_watchdog_t *wdt, rt_uint32_t flag, void *data); -#endif /* __WATCHDOG_H__ */ +#endif /* __DEV_WATCHDOG_H__ */ diff --git a/components/drivers/include/drivers/wlan.h b/components/drivers/include/drivers/wlan.h index 946851808a1..4a1ab5b26c6 100644 --- a/components/drivers/include/drivers/wlan.h +++ b/components/drivers/include/drivers/wlan.h @@ -12,10 +12,10 @@ #define __WLAN_H__ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #endif diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index caff5284e59..c8ed3c04899 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -66,7 +66,7 @@ extern "C" { #endif /* RT_USING_RTC */ #ifdef RT_USING_SPI -#include "drivers/spi.h" +#include "drivers/dev_spi.h" #endif /* RT_USING_SPI */ #ifdef RT_USING_MTD_NOR @@ -87,9 +87,9 @@ extern "C" { #ifdef RT_USING_SERIAL #ifdef RT_USING_SERIAL_V2 -#include "drivers/serial_v2.h" +#include "drivers/dev_serial_v2.h" #else -#include "drivers/serial.h" +#include "drivers/dev_serial.h" #endif #endif /* RT_USING_SERIAL */ @@ -111,14 +111,14 @@ extern "C" { #endif /* RT_USING_PHY */ #ifdef RT_USING_SDIO -#include "drivers/mmcsd_core.h" -#include "drivers/sd.h" -#include "drivers/sdio.h" +#include "drivers/dev_mmcsd_core.h" +#include "drivers/dev_sd.h" +#include "drivers/dev_sdio.h" #endif /* RT_USING_SDIO */ #ifdef RT_USING_WDT -#include "drivers/watchdog.h" +#include "drivers/dev_watchdog.h" #endif /* RT_USING_WDT */ #ifdef RT_USING_PIN @@ -190,7 +190,7 @@ extern "C" { #endif /* RT_USING_INPUT_CAPTURE */ #ifdef RT_USING_TOUCH -#include "drivers/touch.h" +#include "drivers/dev_touch.h" #endif #ifdef RT_USING_DEV_BUS diff --git a/components/drivers/sdio/SConscript b/components/drivers/sdio/SConscript index d5b6eb1cb9b..57f05875331 100644 --- a/components/drivers/sdio/SConscript +++ b/components/drivers/sdio/SConscript @@ -3,12 +3,12 @@ from building import * cwd = GetCurrentDir() src = Split(""" -block_dev.c -mmcsd_core.c -sd.c -sdio.c -gpt.c -mmc.c +dev_block.c +dev_mmcsd_core.c +dev_sd.c +dev_sdio.c +dev_gpt.c +dev_mmc.c """) # The set of source files associated with this SConscript file. diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/dev_block.c similarity index 99% rename from components/drivers/sdio/block_dev.c rename to components/drivers/sdio/dev_block.c index fcef99f1701..e4097bc329a 100644 --- a/components/drivers/sdio/block_dev.c +++ b/components/drivers/sdio/dev_block.c @@ -12,8 +12,8 @@ #include #include -#include -#include +#include +#include #define DBG_TAG "SDIO" #ifdef RT_SDIO_DEBUG diff --git a/components/drivers/sdio/gpt.c b/components/drivers/sdio/dev_gpt.c similarity index 99% rename from components/drivers/sdio/gpt.c rename to components/drivers/sdio/dev_gpt.c index 53b686e9f61..047c6544fe8 100644 --- a/components/drivers/sdio/gpt.c +++ b/components/drivers/sdio/dev_gpt.c @@ -9,8 +9,8 @@ */ #include #include -#include -#include +#include +#include #define DBG_TAG "GPT" #ifdef RT_SDIO_DEBUG diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/dev_mmc.c similarity index 99% rename from components/drivers/sdio/mmc.c rename to components/drivers/sdio/dev_mmc.c index 3723d9db768..6e1cdced0ab 100644 --- a/components/drivers/sdio/mmc.c +++ b/components/drivers/sdio/dev_mmc.c @@ -9,8 +9,8 @@ * 2024-05-25 HPMicro add HS400 support */ -#include -#include +#include +#include #define DBG_TAG "SDIO" #ifdef RT_SDIO_DEBUG diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/dev_mmcsd_core.c similarity index 99% rename from components/drivers/sdio/mmcsd_core.c rename to components/drivers/sdio/dev_mmcsd_core.c index 77570268c19..33072c10dd8 100644 --- a/components/drivers/sdio/mmcsd_core.c +++ b/components/drivers/sdio/dev_mmcsd_core.c @@ -9,10 +9,10 @@ */ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #define DBG_TAG "SDIO" diff --git a/components/drivers/sdio/sd.c b/components/drivers/sdio/dev_sd.c similarity index 99% rename from components/drivers/sdio/sd.c rename to components/drivers/sdio/dev_sd.c index a6f4dda93a1..22725dbe1d9 100644 --- a/components/drivers/sdio/sd.c +++ b/components/drivers/sdio/dev_sd.c @@ -9,8 +9,8 @@ * 2024-05-26 HPMicro add UHS-I support */ -#include -#include +#include +#include #define DBG_TAG "SDIO" #ifdef RT_SDIO_DEBUG diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/dev_sdio.c similarity index 99% rename from components/drivers/sdio/sdio.c rename to components/drivers/sdio/dev_sdio.c index 9fa3f539cd4..013753a9570 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/dev_sdio.c @@ -10,9 +10,9 @@ * 2024-07-05 Evlers fix a bug that read members in non-existent functions */ -#include -#include -#include +#include +#include +#include #define DBG_TAG "SDIO" #ifdef RT_SDIO_DEBUG diff --git a/components/drivers/serial/SConscript b/components/drivers/serial/SConscript index 7ee41a43318..ce9d2216431 100644 --- a/components/drivers/serial/SConscript +++ b/components/drivers/serial/SConscript @@ -12,9 +12,9 @@ if GetDepend(['RT_USING_SMART']): src += Glob('serial_tty.c') if GetDepend(['RT_USING_SERIAL_V2']): - src += ['serial_v2.c'] + src += ['dev_serial_v2.c'] else: - src += ['serial.c'] + src += ['dev_serial.c'] if GetDepend(['RT_USING_DM']): src += ['serial_dm.c'] diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/dev_serial.c similarity index 100% rename from components/drivers/serial/serial.c rename to components/drivers/serial/dev_serial.c diff --git a/components/drivers/serial/serial_v2.c b/components/drivers/serial/dev_serial_v2.c similarity index 100% rename from components/drivers/serial/serial_v2.c rename to components/drivers/serial/dev_serial_v2.c diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index cea447fab45..874db5b7e91 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -3,29 +3,29 @@ from gcc import * import rtconfig cwd = GetCurrentDir() -src = ['spi_core.c', 'spi_dev.c'] +src = ['dev_spi_core.c', 'dev_spi.c'] CPPPATH = [cwd, cwd + '/../include'] LOCAL_CFLAGS = '' if GetDepend('RT_USING_SPI_BITOPS'): - src += ['spi-bit-ops.c'] + src += ['dev_spi_bit_ops.c'] if GetDepend('RT_USING_QSPI'): - src += ['qspi_core.c'] + src += ['dev_qspi_core.c'] src_device = [] if GetDepend('RT_USING_SPI_WIFI'): - src_device += ['spi_wifi_rw009.c'] + src_device += ['dev_spi_wifi_rw009.c'] if GetDepend('RT_USING_ENC28J60'): src_device += ['enc28j60.c'] if GetDepend('RT_USING_SPI_MSD'): - src_device += ['spi_msd.c'] + src_device += ['dev_spi_msd.c'] if GetDepend('RT_USING_SFUD'): - src_device += ['spi_flash_sfud.c', 'sfud/src/sfud.c'] + src_device += ['dev_spi_flash_sfud.c', 'sfud/src/sfud.c'] CPPPATH += [cwd + '/sfud/inc'] if GetDepend('RT_SFUD_USING_SFDP'): src_device += ['sfud/src/sfud_sfdp.c'] diff --git a/components/drivers/spi/qspi_core.c b/components/drivers/spi/dev_qspi_core.c similarity index 99% rename from components/drivers/spi/qspi_core.c rename to components/drivers/spi/dev_qspi_core.c index cd40c516461..e56fd947d01 100644 --- a/components/drivers/spi/qspi_core.c +++ b/components/drivers/spi/dev_qspi_core.c @@ -8,7 +8,7 @@ * 2018-11-16 zylx first version. */ -#include +#include "drivers/dev_spi.h" rt_err_t rt_qspi_configure(struct rt_qspi_device *device, struct rt_qspi_configuration *cfg) { diff --git a/components/drivers/spi/spi_dev.c b/components/drivers/spi/dev_spi.c similarity index 99% rename from components/drivers/spi/spi_dev.c rename to components/drivers/spi/dev_spi.c index 963b70c23bf..b40ffd90dbc 100644 --- a/components/drivers/spi/spi_dev.c +++ b/components/drivers/spi/dev_spi.c @@ -8,7 +8,7 @@ */ #include -#include +#include "drivers/dev_spi.h" /* SPI bus device interface, compatible with RT-Thread 0.3.x/1.0.x */ static rt_ssize_t _spi_bus_device_read(rt_device_t dev, diff --git a/components/drivers/spi/spi-bit-ops.c b/components/drivers/spi/dev_spi_bit_ops.c similarity index 99% rename from components/drivers/spi/spi-bit-ops.c rename to components/drivers/spi/dev_spi_bit_ops.c index 679ee44f0cb..d2a26a766dc 100644 --- a/components/drivers/spi/spi-bit-ops.c +++ b/components/drivers/spi/dev_spi_bit_ops.c @@ -8,7 +8,7 @@ * 2021-10-11 kyle first version */ -#include +#include #include #define DBG_TAG "SPI" diff --git a/components/drivers/spi/spi-bit-ops.h b/components/drivers/spi/dev_spi_bit_ops.h similarity index 95% rename from components/drivers/spi/spi-bit-ops.h rename to components/drivers/spi/dev_spi_bit_ops.h index d1e83cdeddf..cf2335efe69 100644 --- a/components/drivers/spi/spi-bit-ops.h +++ b/components/drivers/spi/dev_spi_bit_ops.h @@ -9,8 +9,8 @@ * 2022-6-14 solar Remove the const attribute of private data in ops */ -#ifndef __SPI_BIT_OPS_H__ -#define __SPI_BIT_OPS_H__ +#ifndef __DEV_SPI_BIT_OPS_H__ +#define __DEV_SPI_BIT_OPS_H__ #include diff --git a/components/drivers/spi/spi_core.c b/components/drivers/spi/dev_spi_core.c similarity index 99% rename from components/drivers/spi/spi_core.c rename to components/drivers/spi/dev_spi_core.c index d9d4221d49f..9733a01a5eb 100644 --- a/components/drivers/spi/spi_core.c +++ b/components/drivers/spi/dev_spi_core.c @@ -13,7 +13,7 @@ * 2012-09-28 aozima fixed rt_spi_release_bus assert error. */ -#include +#include "drivers/dev_spi.h" #define DBG_TAG "spi.core" #define DBG_LVL DBG_INFO diff --git a/components/drivers/spi/spi_flash.h b/components/drivers/spi/dev_spi_flash.h similarity index 93% rename from components/drivers/spi/spi_flash.h rename to components/drivers/spi/dev_spi_flash.h index 2651c76fa47..5ae54c4e2ab 100644 --- a/components/drivers/spi/spi_flash.h +++ b/components/drivers/spi/dev_spi_flash.h @@ -9,8 +9,8 @@ * 2020/1/7 redoc add include */ -#ifndef SPI_FLASH_H__ -#define SPI_FLASH_H__ +#ifndef __DEV_SPI_FLASH_H__ +#define __DEV_SPI_FLASH_H__ #include diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/dev_spi_flash_sfud.c similarity index 99% rename from components/drivers/spi/spi_flash_sfud.c rename to components/drivers/spi/dev_spi_flash_sfud.c index 761c9ccc0de..e1c90db9e61 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/dev_spi_flash_sfud.c @@ -11,8 +11,8 @@ #include #include #include -#include "spi_flash.h" -#include "spi_flash_sfud.h" +#include "dev_spi_flash.h" +#include "dev_spi_flash_sfud.h" #ifdef RT_USING_SFUD diff --git a/components/drivers/spi/spi_flash_sfud.h b/components/drivers/spi/dev_spi_flash_sfud.h similarity index 93% rename from components/drivers/spi/spi_flash_sfud.h rename to components/drivers/spi/dev_spi_flash_sfud.h index 6099c9823b7..7769ddc808d 100644 --- a/components/drivers/spi/spi_flash_sfud.h +++ b/components/drivers/spi/dev_spi_flash_sfud.h @@ -8,13 +8,13 @@ * 2016-09-28 armink first version. */ -#ifndef _SPI_FLASH_SFUD_H_ -#define _SPI_FLASH_SFUD_H_ +#ifndef __DEV_SPI_FLASH_SFUD_H__ +#define __DEV_SPI_FLASH_SFUD_H__ #include #include #include "./sfud/inc/sfud.h" -#include "spi_flash.h" +#include "dev_spi_flash.h" /** * Probe SPI flash by SFUD(Serial Flash Universal Driver) driver library and though SPI device. @@ -66,4 +66,4 @@ sfud_flash_t rt_sfud_flash_find(const char *spi_dev_name); */ sfud_flash_t rt_sfud_flash_find_by_dev_name(const char *flash_dev_name); -#endif /* _SPI_FLASH_SFUD_H_ */ +#endif /* __DEV_SPI_FLASH_SFUD_H__ */ diff --git a/components/drivers/spi/spi_msd.c b/components/drivers/spi/dev_spi_msd.c similarity index 99% rename from components/drivers/spi/spi_msd.c rename to components/drivers/spi/dev_spi_msd.c index 0ca1bdfbb59..8d81e348af5 100644 --- a/components/drivers/spi/spi_msd.c +++ b/components/drivers/spi/dev_spi_msd.c @@ -14,7 +14,7 @@ */ #include -#include "spi_msd.h" +#include "dev_spi_msd.h" //#define MSD_TRACE diff --git a/components/drivers/spi/spi_msd.h b/components/drivers/spi/dev_spi_msd.h similarity index 97% rename from components/drivers/spi/spi_msd.h rename to components/drivers/spi/dev_spi_msd.h index 2b66be7d67c..7304b138538 100644 --- a/components/drivers/spi/spi_msd.h +++ b/components/drivers/spi/dev_spi_msd.h @@ -8,12 +8,12 @@ * 2009-04-17 Bernard first version. */ -#ifndef SPI_MSD_H_INCLUDED -#define SPI_MSD_H_INCLUDED +#ifndef __DEV_SPI_MSD_H_INCLUDED__ +#define __DEV_SPI_MSD_H_INCLUDED__ #include #include -#include +#include "drivers/dev_spi.h" /* SD command (SPI mode) */ #define GO_IDLE_STATE 0 /* CMD0 R1 */ @@ -125,4 +125,4 @@ struct msd_device extern rt_err_t msd_init(const char * sd_device_name, const char * spi_device_name); -#endif // SPI_MSD_H_INCLUDED +#endif // __DEV_SPI_MSD_H_INCLUDED diff --git a/components/drivers/spi/spi_wifi_rw009.c b/components/drivers/spi/dev_spi_wifi_rw009.c similarity index 99% rename from components/drivers/spi/spi_wifi_rw009.c rename to components/drivers/spi/dev_spi_wifi_rw009.c index 44f70e2b77a..b3bd807ebd7 100644 --- a/components/drivers/spi/spi_wifi_rw009.c +++ b/components/drivers/spi/dev_spi_wifi_rw009.c @@ -11,7 +11,7 @@ */ #include -#include +#include "drivers/dev_spi.h" #include #include @@ -32,7 +32,7 @@ #endif /* #ifdef WIFI_DEBUG_ON */ /********************************* RW009 **************************************/ -#include "spi_wifi_rw009.h" +#include "dev_spi_wifi_rw009.h" /* tools */ #define node_entry(node, type, member) \ diff --git a/components/drivers/spi/spi_wifi_rw009.h b/components/drivers/spi/dev_spi_wifi_rw009.h similarity index 98% rename from components/drivers/spi/spi_wifi_rw009.h rename to components/drivers/spi/dev_spi_wifi_rw009.h index 9bba2694afe..5aecbce935c 100644 --- a/components/drivers/spi/spi_wifi_rw009.h +++ b/components/drivers/spi/dev_spi_wifi_rw009.h @@ -9,8 +9,8 @@ * 2014-09-18 aozima update command & response. */ -#ifndef SPI_WIFI_H_INCLUDED -#define SPI_WIFI_H_INCLUDED +#ifndef __DEV_SPI_WIFI_H_INCLUDED__ +#define __DEV_SPI_WIFI_H_INCLUDED__ #include @@ -209,4 +209,4 @@ extern int32_t rw009_rssi(void); extern rt_err_t rw009_join(const char * SSID, const char * passwd); extern rt_err_t rw009_softap(const char * SSID, const char * passwd,uint32_t security,uint32_t channel); -#endif // SPI_WIFI_H_INCLUDED +#endif // __DEV_SPI_WIFI_H_INCLUDED__ diff --git a/components/drivers/spi/enc28j60.h b/components/drivers/spi/enc28j60.h index 017877adcd6..013222c7c8d 100644 --- a/components/drivers/spi/enc28j60.h +++ b/components/drivers/spi/enc28j60.h @@ -6,13 +6,13 @@ * Change Logs: * Date Author Notes */ -#ifndef EN28J60_H_INCLUDED -#define EN28J60_H_INCLUDED +#ifndef __EN28J60_H_INCLUDED__ +#define __EN28J60_H_INCLUDED__ #include #include -#include +#include "drivers/dev_spi.h" #include // ENC28J60 Control Registers @@ -340,4 +340,4 @@ struct net_device extern rt_err_t enc28j60_attach(const char *spi_device_name); extern void enc28j60_isr(void); -#endif // EN28J60_H_INCLUDED +#endif // __EN28J60_H_INCLUDED__ diff --git a/components/drivers/touch/SConscript b/components/drivers/touch/SConscript index df698c7840b..ba646b0a80d 100644 --- a/components/drivers/touch/SConscript +++ b/components/drivers/touch/SConscript @@ -3,7 +3,7 @@ from building import * cwd = GetCurrentDir() -src = ['touch.c'] +src = ['dev_touch.c'] CPPPATH = [cwd, cwd + '/../include'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_TOUCH', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) diff --git a/components/drivers/touch/touch.c b/components/drivers/touch/dev_touch.c similarity index 100% rename from components/drivers/touch/touch.c rename to components/drivers/touch/dev_touch.c diff --git a/components/drivers/watchdog/watchdog.c b/components/drivers/watchdog/dev_watchdog.c similarity index 98% rename from components/drivers/watchdog/watchdog.c rename to components/drivers/watchdog/dev_watchdog.c index 6d8238b1291..9293ebd8181 100644 --- a/components/drivers/watchdog/watchdog.c +++ b/components/drivers/watchdog/dev_watchdog.c @@ -9,7 +9,7 @@ * 2014-03-04 Bernard code cleanup */ -#include +#include "drivers/dev_watchdog.h" /* RT-Thread Device Interface */ diff --git a/components/drivers/wlan/SConscript b/components/drivers/wlan/SConscript index f2a6bbdc82d..fed94782014 100644 --- a/components/drivers/wlan/SConscript +++ b/components/drivers/wlan/SConscript @@ -4,26 +4,26 @@ cwd = GetCurrentDir() CPPPATH = [cwd] src = Split(''' - wlan_dev.c + dev_wlan.c ''') if GetDepend(['RT_WLAN_MANAGE_ENABLE']): - src += ['wlan_mgnt.c'] + src += ['dev_wlan_mgnt.c'] if GetDepend(['RT_WLAN_MSH_CMD_ENABLE']): - src += ['wlan_cmd.c'] + src += ['dev_wlan_cmd.c'] if GetDepend(['RT_WLAN_PROT_ENABLE']): - src += ['wlan_prot.c'] + src += ['dev_wlan_prot.c'] if GetDepend(['RT_WLAN_PROT_LWIP_ENABLE']): - src += ['wlan_lwip.c'] + src += ['dev_wlan_lwip.c'] if GetDepend(['RT_WLAN_CFG_ENABLE']): - src += ['wlan_cfg.c'] + src += ['dev_wlan_cfg.c'] if GetDepend(['RT_WLAN_WORK_THREAD_ENABLE']): - src += ['wlan_workqueue.c'] + src += ['dev_wlan_workqueue.c'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WIFI'], CPPPATH = CPPPATH) diff --git a/components/drivers/wlan/wlan_dev.c b/components/drivers/wlan/dev_wlan.c similarity index 99% rename from components/drivers/wlan/wlan_dev.c rename to components/drivers/wlan/dev_wlan.c index da4aa57497e..a7029e62332 100644 --- a/components/drivers/wlan/wlan_dev.c +++ b/components/drivers/wlan/dev_wlan.c @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #define DBG_TAG "WLAN.dev" #ifdef RT_WLAN_DEV_DEBUG diff --git a/components/drivers/wlan/wlan_dev.h b/components/drivers/wlan/dev_wlan.h similarity index 99% rename from components/drivers/wlan/wlan_dev.h rename to components/drivers/wlan/dev_wlan.h index 0a6c9b3d0d3..d20487394eb 100644 --- a/components/drivers/wlan/wlan_dev.h +++ b/components/drivers/wlan/dev_wlan.h @@ -8,8 +8,8 @@ * 2018-08-03 tyx the first version */ -#ifndef __WLAN_DEVICE_H__ -#define __WLAN_DEVICE_H__ +#ifndef __DEV_WLAN_DEVICE_H__ +#define __DEV_WLAN_DEVICE_H__ #ifdef __cplusplus extern "C" { diff --git a/components/drivers/wlan/wlan_cfg.c b/components/drivers/wlan/dev_wlan_cfg.c similarity index 99% rename from components/drivers/wlan/wlan_cfg.c rename to components/drivers/wlan/dev_wlan_cfg.c index ac49877c8d3..e62ed9d93a9 100644 --- a/components/drivers/wlan/wlan_cfg.c +++ b/components/drivers/wlan/dev_wlan_cfg.c @@ -9,7 +9,7 @@ */ #include -#include +#include #define DBG_TAG "WLAN.cfg" #ifdef RT_WLAN_CFG_DEBUG diff --git a/components/drivers/wlan/wlan_cfg.h b/components/drivers/wlan/dev_wlan_cfg.h similarity index 94% rename from components/drivers/wlan/wlan_cfg.h rename to components/drivers/wlan/dev_wlan_cfg.h index 308850f74be..25e44ded722 100644 --- a/components/drivers/wlan/wlan_cfg.h +++ b/components/drivers/wlan/dev_wlan_cfg.h @@ -8,10 +8,10 @@ * 2018-08-06 tyx the first version */ -#ifndef __WLAN_CFG_H__ -#define __WLAN_CFG_H__ +#ifndef __DEV_WLAN_CFG_H__ +#define __DEV_WLAN_CFG_H__ -#include +#include #ifdef __cplusplus extern "C" { diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/dev_wlan_cmd.c similarity index 99% rename from components/drivers/wlan/wlan_cmd.c rename to components/drivers/wlan/dev_wlan_cmd.c index b50261d42a6..6592281dac5 100644 --- a/components/drivers/wlan/wlan_cmd.c +++ b/components/drivers/wlan/dev_wlan_cmd.c @@ -11,9 +11,9 @@ #include #include -#include -#include -#include +#include +#include +#include #define DBG_TAG "WLAN.cmd" #ifdef RT_WLAN_MGNT_DEBUG diff --git a/components/drivers/wlan/wlan_lwip.c b/components/drivers/wlan/dev_wlan_lwip.c similarity index 99% rename from components/drivers/wlan/wlan_lwip.c rename to components/drivers/wlan/dev_wlan_lwip.c index 08cf150d5f7..21f43c115b4 100644 --- a/components/drivers/wlan/wlan_lwip.c +++ b/components/drivers/wlan/dev_wlan_lwip.c @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #if defined(RT_WLAN_PROT_ENABLE) && defined(RT_WLAN_PROT_LWIP_ENABLE) diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/dev_wlan_mgnt.c similarity index 99% rename from components/drivers/wlan/wlan_mgnt.c rename to components/drivers/wlan/dev_wlan_mgnt.c index 5eccdfd101c..124496aae26 100644 --- a/components/drivers/wlan/wlan_mgnt.c +++ b/components/drivers/wlan/dev_wlan_mgnt.c @@ -11,11 +11,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include // #define RT_WLAN_MGNT_DEBUG #define DBG_TAG "WLAN.mgnt" diff --git a/components/drivers/wlan/wlan_mgnt.h b/components/drivers/wlan/dev_wlan_mgnt.h similarity index 98% rename from components/drivers/wlan/wlan_mgnt.h rename to components/drivers/wlan/dev_wlan_mgnt.h index 4e98463a3c1..dc5b17e9946 100644 --- a/components/drivers/wlan/wlan_mgnt.h +++ b/components/drivers/wlan/dev_wlan_mgnt.h @@ -8,10 +8,10 @@ * 2018-08-06 tyx the first version */ -#ifndef __WLAN_MGNT_H__ -#define __WLAN_MGNT_H__ +#ifndef __DEV_WLAN_MGNT_H__ +#define __DEV_WLAN_MGNT_H__ -#include +#include #ifdef __cplusplus extern "C" { diff --git a/components/drivers/wlan/wlan_prot.c b/components/drivers/wlan/dev_wlan_prot.c similarity index 99% rename from components/drivers/wlan/wlan_prot.c rename to components/drivers/wlan/dev_wlan_prot.c index dd9b320655e..53730338dec 100644 --- a/components/drivers/wlan/wlan_prot.c +++ b/components/drivers/wlan/dev_wlan_prot.c @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #define DBG_TAG "WLAN.prot" #ifdef RT_WLAN_PROT_DEBUG diff --git a/components/drivers/wlan/wlan_prot.h b/components/drivers/wlan/dev_wlan_prot.h similarity index 97% rename from components/drivers/wlan/wlan_prot.h rename to components/drivers/wlan/dev_wlan_prot.h index 16515d68bef..3ba1daa9fd1 100644 --- a/components/drivers/wlan/wlan_prot.h +++ b/components/drivers/wlan/dev_wlan_prot.h @@ -8,8 +8,8 @@ * 2018-08-14 tyx the first version */ -#ifndef __WLAN_PROT_H__ -#define __WLAN_PROT_H__ +#ifndef __DEV_WLAN_PROT_H__ +#define __DEV_WLAN_PROT_H__ #ifdef __cplusplus extern "C" { diff --git a/components/drivers/wlan/wlan_workqueue.c b/components/drivers/wlan/dev_wlan_workqueue.c similarity index 98% rename from components/drivers/wlan/wlan_workqueue.c rename to components/drivers/wlan/dev_wlan_workqueue.c index 4c966b11756..c663a4ed7c1 100644 --- a/components/drivers/wlan/wlan_workqueue.c +++ b/components/drivers/wlan/dev_wlan_workqueue.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #define DBG_TAG "WLAN.work" diff --git a/components/drivers/wlan/wlan_workqueue.h b/components/drivers/wlan/dev_wlan_workqueue.h similarity index 92% rename from components/drivers/wlan/wlan_workqueue.h rename to components/drivers/wlan/dev_wlan_workqueue.h index af12b1d1969..f85f8493cec 100644 --- a/components/drivers/wlan/wlan_workqueue.h +++ b/components/drivers/wlan/dev_wlan_workqueue.h @@ -8,8 +8,8 @@ * 2018-08-19 tyx the first version */ -#ifndef __WLAN_WORKQUEUE_H__ -#define __WLAN_WORKQUEUE_H__ +#ifndef __DEV_WLAN_WORKQUEUE_H__ +#define __DEV_WLAN_WORKQUEUE_H__ #include diff --git a/components/fal/samples/porting/fal_flash_sfud_port.c b/components/fal/samples/porting/fal_flash_sfud_port.c index 35bbc0f2761..87e5ed119e9 100644 --- a/components/fal/samples/porting/fal_flash_sfud_port.c +++ b/components/fal/samples/porting/fal_flash_sfud_port.c @@ -13,7 +13,7 @@ #ifdef FAL_USING_SFUD_PORT #ifdef RT_USING_SFUD -#include +#include #endif #ifndef FAL_USING_NOR_FLASH_DEV_NAME diff --git a/documentation/device/wlan/wlan.md b/documentation/device/wlan/wlan.md index cf45cca402f..cbde241ea4b 100644 --- a/documentation/device/wlan/wlan.md +++ b/documentation/device/wlan/wlan.md @@ -208,9 +208,9 @@ The following code will show a WiFi sync scan, and then print the results on the #include #include -#include -#include -#include +#include +#include +#include void wifi_scan(void) { @@ -251,9 +251,9 @@ After connecting to WIFI, wait for a while and then execute `rt_wlan_disconnect` #include #include -#include -#include -#include +#include +#include +#include #define WLAN_SSID "SSID-A" #define WLAN_PASSWORD "12345678" @@ -372,9 +372,9 @@ First enable the automatic reconnection function, use the command line to connec #include #include -#include -#include -#include +#include +#include +#include static void wifi_ready_callback(int event, struct rt_wlan_buff *buff, void *parameter)