Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
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
Show more breadcrumbs
datenwolf
firmware
Commits
36a19d2f
Verified
Commit
36a19d2f
authored
5 years ago
by
schneider
Committed by
rahix
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(fsutil): Fix function names in header-file
parent
1b48d1db
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/ff13/util/fs_util.c
+2
-2
2 additions, 2 deletions
lib/ff13/util/fs_util.c
lib/ff13/util/fs_util.h
+7
-16
7 additions, 16 deletions
lib/ff13/util/fs_util.h
with
9 additions
and
18 deletions
lib/ff13/util/fs_util.c
+
2
−
2
View file @
36a19d2f
#include
<
fs_util.h
>
#include
<
ff.h
>
#include
"
fs_util.h
"
#include
"
ff.h
"
#include
<stdint.h>
#include
<string.h>
...
...
This diff is collapsed.
Click to expand it.
lib/ff13/util/fs_util.h
+
7
−
16
View file @
36a19d2f
#ifndef _FS_UTIL_H
#define _FS_UTIL_H 1
#pragma once
#include
<ff.h>
#define FLEN 13
typedef
struct
{
DWORD
total
;
DWORD
free
;
}
FS_USAGE
;
void
fsInit
(
void
);
void
fsReInit
(
void
);
int
fsInfo
(
FATFS
*
fs
);
int
fsUsage
(
FATFS
*
fs
,
FS_USAGE
*
fs_usage
);
int
readFile
(
char
*
filename
,
void
*
data
,
int
len
);
int
readTextFile
(
char
*
filename
,
char
*
data
,
int
len
);
int
writeFile
(
char
*
filename
,
const
void
*
data
,
int
len
);
int
getFileSize
(
char
*
filename
);
const
char
*
f_get_rc_string
(
FRESULT
rc
);
#endif
/* _FS_UTIL_H */
int
fs_info
(
FATFS
*
fs
);
int
fs_usage
(
FATFS
*
fs
,
FS_USAGE
*
fs_usage
);
int
fs_read_file
(
char
*
filename
,
void
*
data
,
int
len
);
int
fs_read_text_file
(
char
*
filename
,
char
*
data
,
int
len
);
int
fs_write_file
(
char
*
filename
,
const
void
*
data
,
int
len
);
int
fs_get_file_size
(
char
*
filename
);
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