添加qspi存储w25q128

添加littlefs文件系统
存储挂载路径/sys
This commit is contained in:
sc committed 2025-11-25 00:47:23 +08:00
1 parent c7cf944e61
commit 1f345bd81f
47 files changed
+22121 -346

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# RT-Thread building script for component
import os
import shutil
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd]
CPPDEFINES = ['LFS_CONFIG=lfs_config.h']
#delate non-used files
try:
shutil.rmtree(os.path.join(cwd,'.github'))
shutil.rmtree(os.path.join(cwd,'bd'))
shutil.rmtree(os.path.join(cwd,'scripts'))
shutil.rmtree(os.path.join(cwd,'tests'))
os.remove(os.path.join(cwd,'Makefile'))
except:
pass
group = DefineGroup('littlefs', src, depend = ['PKG_USING_LITTLEFS', 'RT_USING_DFS'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')