From 3e890570c975f0f46b175509c42d65082a00827d Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 6 Jan 2016 05:05:08 +0800 Subject: [PATCH] [BSP] change the template setting in lpc176x; fix the compiling warning when enable DFS. --- bsp/lpc176x/applications/application.c | 4 ++++ bsp/lpc176x/rtconfig.h | 6 +++--- bsp/lpc176x/template.uvproj | 18 +++++++++++++++--- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/bsp/lpc176x/applications/application.c b/bsp/lpc176x/applications/application.c index 1fda158cb..800aa968c 100644 --- a/bsp/lpc176x/applications/application.c +++ b/bsp/lpc176x/applications/application.c @@ -27,7 +27,11 @@ extern int lwip_system_init(void); #ifdef RT_USING_DFS #include +#include #include +#ifdef RT_USING_DFS_ELMFAT +#include +#endif #endif #ifdef RT_USING_FINSH diff --git a/bsp/lpc176x/rtconfig.h b/bsp/lpc176x/rtconfig.h index db9da8ed4..2d501d094 100644 --- a/bsp/lpc176x/rtconfig.h +++ b/bsp/lpc176x/rtconfig.h @@ -99,7 +99,7 @@ //
// #define RT_USING_DFS // -// #define DFS_USING_WORKDIR +#define DFS_USING_WORKDIR // #define DFS_FILESYSTEMS_MAX 2 // @@ -110,6 +110,7 @@ // 1 // 2 // +#define RT_DFS_ELM_USE_LFN 1 // // 932 // 936 @@ -138,8 +139,7 @@ // 874 // 1 // -#define RT_DFS_ELM_CODE_PAGE 936 -#define RT_DFS_ELM_USE_LFN 1 +#define RT_DFS_ELM_CODE_PAGE 437 // #define RT_DFS_ELM_MAX_LFN 64 // diff --git a/bsp/lpc176x/template.uvproj b/bsp/lpc176x/template.uvproj index 60aa3221c..2c94c1dbd 100644 --- a/bsp/lpc176x/template.uvproj +++ b/bsp/lpc176x/template.uvproj @@ -30,6 +30,7 @@ + 0 0 @@ -43,14 +44,14 @@ 0 1 - .\obj\ + .\build\ rtthread-lpc 1 0 0 1 1 - .\obj\ + .\build\ 1 0 0 @@ -61,6 +62,8 @@ 0 0 + 0 + 0 0 @@ -95,6 +98,7 @@ 3 + 1 SARMCM3.DLL @@ -128,12 +132,13 @@ 0 1 - 0 + 1 1 1 1 0 1 + 0 0 5 @@ -162,9 +167,14 @@ 1 4099 + 1 Segger\JL2CM3.dll "" () + + + + 0 @@ -342,6 +352,7 @@ 0 0 0 + 0 @@ -357,6 +368,7 @@ 0 0 0 + 0 -- GitLab