mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-07 21:38:38 +00:00
[fix][shell] fix shell fs enable error in compile which causes no such file
This commit is contained in:
parent
789618b2d2
commit
3bb692cfa7
2 changed files with 44 additions and 44 deletions
|
@ -18,7 +18,7 @@ list(APPEND ADD_SRCS ${sources})
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
########### Add required/dependent components #########
|
########### Add required/dependent components #########
|
||||||
#list(APPEND ADD_REQUIREMENTS xxx)
|
# list(APPEND ADD_REQUIREMENTS fatfs)
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
############ Add static libs ##########################
|
############ Add static libs ##########################
|
||||||
|
@ -32,7 +32,7 @@ list(APPEND ADD_SRCS ${sources})
|
||||||
|
|
||||||
############ Add global compile option ################
|
############ Add global compile option ################
|
||||||
#add components denpend on this component
|
#add components denpend on this component
|
||||||
# list(APPEND ADD_DEFINITIONS -Dxxx)
|
list(APPEND ADD_DEFINITIONS -DSUPPORT_SHELL)
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
############ Add private compile option ################
|
############ Add private compile option ################
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
#if defined(SHELL_USING_FS)
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "ff.h"
|
#include "ff.h"
|
||||||
#include "fatfs_posix_api.h"
|
#include "fatfs_posix_api.h"
|
||||||
|
|
||||||
#if defined(SHELL_USING_FS)
|
|
||||||
/*
|
/*
|
||||||
static void *(*shell_malloc)(size_t size) = mmheap_alloc;
|
static void *(*shell_malloc)(size_t size) = mmheap_alloc;
|
||||||
static void (*shell_free)(void *ptr) = mmheap_free;
|
static void (*shell_free)(void *ptr) = mmheap_free;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue