From 076dbd9982eb1247067ee4f6b5ff6e45cc09bb9c Mon Sep 17 00:00:00 2001 From: wangyz1997 Date: Sun, 29 Sep 2024 22:23:37 +0800 Subject: [PATCH] stm32f407_sdio: refactor project --- stm32f407_sdio/MDK-ARM/stm32f407_sdio.uvprojx | 132 ++---------------- .../{Core/Src => Third_Party/FatFS}/diskio.c | 0 .../{Core/Inc => Third_Party/FatFS}/diskio.h | 0 .../Third_Party/FatFS}/ff.c | 0 .../Third_Party/FatFS}/ff.h | 0 .../{Core/Inc => Third_Party/FatFS}/ffconf.h | 0 .../Third_Party/FatFS}/ffsystem.c | 0 .../Third_Party/FatFS}/ffunicode.c | 0 8 files changed, 15 insertions(+), 117 deletions(-) rename stm32f407_sdio/{Core/Src => Third_Party/FatFS}/diskio.c (100%) rename stm32f407_sdio/{Core/Inc => Third_Party/FatFS}/diskio.h (100%) rename {3rdparty/fatfs-0.15 => stm32f407_sdio/Third_Party/FatFS}/ff.c (100%) rename {3rdparty/fatfs-0.15 => stm32f407_sdio/Third_Party/FatFS}/ff.h (100%) rename stm32f407_sdio/{Core/Inc => Third_Party/FatFS}/ffconf.h (100%) rename {3rdparty/fatfs-0.15 => stm32f407_sdio/Third_Party/FatFS}/ffsystem.c (100%) rename {3rdparty/fatfs-0.15 => stm32f407_sdio/Third_Party/FatFS}/ffunicode.c (100%) diff --git a/stm32f407_sdio/MDK-ARM/stm32f407_sdio.uvprojx b/stm32f407_sdio/MDK-ARM/stm32f407_sdio.uvprojx index eb893e8..960fbbb 100644 --- a/stm32f407_sdio/MDK-ARM/stm32f407_sdio.uvprojx +++ b/stm32f407_sdio/MDK-ARM/stm32f407_sdio.uvprojx @@ -339,7 +339,7 @@ USE_HAL_DRIVER,STM32F407xx - ../Core/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F4xx/Include;../Drivers/CMSIS/Include;../../3rdparty/fatfs-0.15 + ../Core/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F4xx/Include;../Drivers/CMSIS/Include;../Third_Party/FatFS @@ -408,16 +408,6 @@ 1 ../Core/Src/stm32f4xx_hal_msp.c - - diskio.c - 1 - ..\Core\Src\diskio.c - - - ffconf.h - 5 - ..\Core\Inc\ffconf.h - @@ -526,124 +516,32 @@ - fatfs + Third_Party/FatFS + + diskio.c + 1 + ..\Third_Party\FatFS\diskio.c + ff.c 1 - ..\..\3rdparty\fatfs-0.15\ff.c + ..\Third_Party\FatFS\ff.c ffsystem.c 1 - ..\..\3rdparty\fatfs-0.15\ffsystem.c - - - 2 - 0 - 0 - 0 - 0 - 0 - 2 - 2 - 2 - 2 - 11 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - - - - - - - + ..\Third_Party\FatFS\ffsystem.c ffunicode.c 1 - ..\..\3rdparty\fatfs-0.15\ffunicode.c - - - 2 - 0 - 0 - 0 - 0 - 0 - 2 - 2 - 2 - 2 - 11 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - - - - - - - + ..\Third_Party\FatFS\ffunicode.c + + + ffconf.h + 5 + ..\Third_Party\FatFS\ffconf.h diff --git a/stm32f407_sdio/Core/Src/diskio.c b/stm32f407_sdio/Third_Party/FatFS/diskio.c similarity index 100% rename from stm32f407_sdio/Core/Src/diskio.c rename to stm32f407_sdio/Third_Party/FatFS/diskio.c diff --git a/stm32f407_sdio/Core/Inc/diskio.h b/stm32f407_sdio/Third_Party/FatFS/diskio.h similarity index 100% rename from stm32f407_sdio/Core/Inc/diskio.h rename to stm32f407_sdio/Third_Party/FatFS/diskio.h diff --git a/3rdparty/fatfs-0.15/ff.c b/stm32f407_sdio/Third_Party/FatFS/ff.c similarity index 100% rename from 3rdparty/fatfs-0.15/ff.c rename to stm32f407_sdio/Third_Party/FatFS/ff.c diff --git a/3rdparty/fatfs-0.15/ff.h b/stm32f407_sdio/Third_Party/FatFS/ff.h similarity index 100% rename from 3rdparty/fatfs-0.15/ff.h rename to stm32f407_sdio/Third_Party/FatFS/ff.h diff --git a/stm32f407_sdio/Core/Inc/ffconf.h b/stm32f407_sdio/Third_Party/FatFS/ffconf.h similarity index 100% rename from stm32f407_sdio/Core/Inc/ffconf.h rename to stm32f407_sdio/Third_Party/FatFS/ffconf.h diff --git a/3rdparty/fatfs-0.15/ffsystem.c b/stm32f407_sdio/Third_Party/FatFS/ffsystem.c similarity index 100% rename from 3rdparty/fatfs-0.15/ffsystem.c rename to stm32f407_sdio/Third_Party/FatFS/ffsystem.c diff --git a/3rdparty/fatfs-0.15/ffunicode.c b/stm32f407_sdio/Third_Party/FatFS/ffunicode.c similarity index 100% rename from 3rdparty/fatfs-0.15/ffunicode.c rename to stm32f407_sdio/Third_Party/FatFS/ffunicode.c