Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
3bc066cd
Commit
3bc066cd
authored
12 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Clean up the Mass Storage bootloader virtual FAT directory entry definitions.
parent
169f21fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Bootloaders/MassStorage/Lib/VirtualFAT.c
+5
-6
5 additions, 6 deletions
Bootloaders/MassStorage/Lib/VirtualFAT.c
Bootloaders/MassStorage/Lib/VirtualFAT.h
+18
-4
18 additions, 4 deletions
Bootloaders/MassStorage/Lib/VirtualFAT.h
with
23 additions
and
10 deletions
Bootloaders/MassStorage/Lib/VirtualFAT.c
+
5
−
6
View file @
3bc066cd
...
...
@@ -79,16 +79,15 @@ static FATDirectoryEntry_t FirmwareFileEntries[] =
* fields are ignored. Should be the same as the label in the boot block.
*/
{
.
MSDOS
=
.
MSDOS
_Directory
=
{
.
Filename
=
"LUFA BOO"
,
.
Extension
=
"T "
,
.
Name
=
"LUFA BOOT "
,
.
Attributes
=
FAT_FLAG_VOLUME_NAME
,
.
Reserved
=
{
0
},
.
CreationTime
=
0
,
.
CreationDate
=
0
,
.
StartingCluster
=
0
,
.
FileSizeBytes
=
0
,
.
Reserved2
=
0
,
}
},
...
...
@@ -96,7 +95,7 @@ static FATDirectoryEntry_t FirmwareFileEntries[] =
* prevent corruption of systems that are unable to detect the device
* as being a legacy MSDOS style FAT12 volume to prevent corruption. */
{
.
VFAT
=
.
VFAT
_LongFileName
=
{
.
Ordinal
=
FAT_ORDINAL_LAST_ENTRY
|
1
,
.
Attribute
=
FAT_FLAG_LONG_FILE_NAME
,
...
...
@@ -123,7 +122,7 @@ static FATDirectoryEntry_t FirmwareFileEntries[] =
/* MSDOS file entry for the virtual Firmware image. */
{
.
MSDOS
=
.
MSDOS
_File
=
{
.
Filename
=
"FIRMWARE"
,
.
Extension
=
"BIN"
,
...
...
This diff is collapsed.
Click to expand it.
Bootloaders/MassStorage/Lib/VirtualFAT.h
+
18
−
4
View file @
3bc066cd
...
...
@@ -154,11 +154,12 @@
/* uint16_t MagicSignature; */
}
FATBootBlock_t
;
/** FAT
legacy 8.3 style
directory entry structure
definition, used to
*
identify the files and folders of FAT filesystem s
tor
ed
on a disk.
/** FAT directory entry structure
, for the various kinds of File and
*
directory descrip
tor
s
on a
FAT
disk.
*/
typedef
union
{
/** FAT Long File Name directory entry. */
struct
{
uint8_t
Ordinal
;
...
...
@@ -179,8 +180,9 @@
uint16_t
Reserved2
;
uint16_t
Unicode12
;
uint16_t
Unicode13
;
}
VFAT
;
}
VFAT
_LongFileName
;
/** FAT MSDOS 8.3 legacy file entry. */
struct
{
uint8_t
Filename
[
8
];
...
...
@@ -191,7 +193,19 @@
uint16_t
CreationDate
;
uint16_t
StartingCluster
;
uint32_t
FileSizeBytes
;
}
MSDOS
;
}
MSDOS_File
;
/** FAT MSDOS (sub-)directory entry. */
struct
{
uint8_t
Name
[
11
];
uint8_t
Attributes
;
uint8_t
Reserved
[
10
];
uint16_t
CreationTime
;
uint16_t
CreationDate
;
uint16_t
StartingCluster
;
uint32_t
Reserved2
;
}
MSDOS_Directory
;
}
FATDirectoryEntry_t
;
/* Function Prototypes: */
...
...
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