Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
1e2cf746
Commit
1e2cf746
authored
11 years ago
by
mux
Browse files
Options
Downloads
Patches
Plain Diff
Add Configurable LFN support to FatFS
parent
2613ffde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
stm/Makefile
+1
-0
1 addition, 0 deletions
stm/Makefile
stm/fatfs/ccsbcs.c
+539
-0
539 additions, 0 deletions
stm/fatfs/ccsbcs.c
stm/fatfs/ffconf.h
+3
-3
3 additions, 3 deletions
stm/fatfs/ffconf.h
stm/mpconfigport.h
+8
-0
8 additions, 0 deletions
stm/mpconfigport.h
with
551 additions
and
3 deletions
stm/Makefile
+
1
−
0
View file @
1e2cf746
...
...
@@ -141,6 +141,7 @@ SRC_STMUSBH = $(addprefix $(STMUSBH_DIR)/,\
SRC_FATFS
=
$(
addprefix
$(
FATFS_DIR
)
/,
\
ff.c
\
diskio.c
\
ccsbcs.c
\
)
SRC_CC3K
=
$(
addprefix
$(
CC3K_DIR
)
/,
\
...
...
This diff is collapsed.
Click to expand it.
stm/fatfs/ccsbcs.c
0 → 100644
+
539
−
0
View file @
1e2cf746
This diff is collapsed.
Click to expand it.
stm/fatfs/ffconf.h
+
3
−
3
View file @
1e2cf746
...
...
@@ -9,6 +9,7 @@
#ifndef _FFCONF
#define _FFCONF 80960
/* Revision ID */
#include
"mpconfigport.h"
/*---------------------------------------------------------------------------/
/ Functions and Buffer Configurations
...
...
@@ -60,7 +61,7 @@
/ Locale and Namespace Configurations
/----------------------------------------------------------------------------*/
#define _CODE_PAGE
1
#define _CODE_PAGE
(MICROPY_LFN_CODE_PAGE)
/* The _CODE_PAGE specifies the OEM code page to be used on the target system.
/ Incorrect setting of the code page can cause a file open failure.
/
...
...
@@ -92,8 +93,7 @@
/ 1 - ASCII (Valid for only non-LFN cfg.)
*/
#define _USE_LFN 0
/* 0 to 3 */
#define _USE_LFN (MICROPY_ENABLE_LFN)
/* 0 to 3 */
#define _MAX_LFN 255
/* Maximum LFN length to handle (12 to 255) */
/* The _USE_LFN option switches the LFN feature.
/
...
...
This diff is collapsed.
Click to expand it.
stm/mpconfigport.h
+
8
−
0
View file @
1e2cf746
...
...
@@ -8,6 +8,14 @@
#define MICROPY_ENABLE_REPL_HELPERS (1)
#define MICROPY_ENABLE_FLOAT (1)
#define MICROPY_PATH_MAX (128)
/* Enable FatFS LFNs
0: Disable LFN feature.
1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
2: Enable LFN with dynamic working buffer on the STACK.
3: Enable LFN with dynamic working buffer on the HEAP.
*/
#define MICROPY_ENABLE_LFN (0)
#define MICROPY_LFN_CODE_PAGE (1)
/* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
// type definitions for the specific machine
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment