From 8e0c765c2c6be745c655e609cd56fa9a9c55df90 Mon Sep 17 00:00:00 2001 From: cpq Date: Mon, 28 Sep 2026 16:50:50 +0100 Subject: [PATCH] Nit - LFS include path --- mongoose.h | 4 ++-- src/lfs.h | 4 ++-- tutorials/stm32/nucleo-h563zi/cubemx/CMakeLists.txt | 3 +-- tutorials/stm32/nucleo-h563zi/minimal/Makefile | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/mongoose.h b/mongoose.h index e7e93b32..e358c108 100644 --- a/mongoose.h +++ b/mongoose.h @@ -1987,7 +1987,7 @@ extern const struct mg_mem_file mg_packed_files[]; #if MG_ENABLE_LFS #include -#include +#include #ifndef DT_DIR #define DT_DIR 4 @@ -2001,7 +2001,7 @@ struct dirent { unsigned char d_type; }; -typedef struct mg_lfs_fd DIR; +typedef struct mg_lfs_fd DIR; #endif diff --git a/src/lfs.h b/src/lfs.h index 6c29b3f8..cd0b72f5 100644 --- a/src/lfs.h +++ b/src/lfs.h @@ -2,7 +2,7 @@ #if MG_ENABLE_LFS #include -#include +#include #ifndef DT_DIR #define DT_DIR 4 @@ -16,5 +16,5 @@ struct dirent { unsigned char d_type; }; -typedef struct mg_lfs_fd DIR; +typedef struct mg_lfs_fd DIR; #endif diff --git a/tutorials/stm32/nucleo-h563zi/cubemx/CMakeLists.txt b/tutorials/stm32/nucleo-h563zi/cubemx/CMakeLists.txt index fb404a65..dd6d4fc0 100644 --- a/tutorials/stm32/nucleo-h563zi/cubemx/CMakeLists.txt +++ b/tutorials/stm32/nucleo-h563zi/cubemx/CMakeLists.txt @@ -59,14 +59,13 @@ target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/littlefs/lfs.c ${CMAKE_SOURCE_DIR}/littlefs/lfs_util.c - # ${CMAKE_SOURCE_DIR}/littlefs/retarget_lfs.c ) # Add include paths target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE # Add user defined include paths ${CMAKE_SOURCE_DIR}/mongoose/ - ${CMAKE_SOURCE_DIR}/ + ${CMAKE_SOURCE_DIR}/littlefs/ ${CMAKE_SOURCE_DIR}/../../../.. ) diff --git a/tutorials/stm32/nucleo-h563zi/minimal/Makefile b/tutorials/stm32/nucleo-h563zi/minimal/Makefile index 8d543933..0637226a 100644 --- a/tutorials/stm32/nucleo-h563zi/minimal/Makefile +++ b/tutorials/stm32/nucleo-h563zi/minimal/Makefile @@ -6,7 +6,7 @@ MGDIR = ../../../.. CFLAGS = -W -Wall -Wextra -Wundef -Wshadow -Wdouble-promotion CFLAGS += -Wformat-truncation -fno-common -Wconversion -Wno-sign-conversion CFLAGS += -g3 -Os -ffunction-sections -fdata-sections -CFLAGS += -I. -I$(MGDIR) -Icmsis_core/CMSIS/Core/Include -Icmsis_h5/Include -Imongoose +CFLAGS += -I. -I$(MGDIR) -Icmsis_core/CMSIS/Core/Include -Icmsis_h5/Include -Imongoose -Ilittlefs CFLAGS += -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard $(CFLAGS_EXTRA) LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nosys.specs -lc -lgcc -Wl,--gc-sections -Wl,-Map=$@.map