File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ struct TextFile {
6565
6666#define NUM_FAT_BLOCKS CFG_UF2_NUM_BLOCKS
6767
68+ #define RESERVED_SECTORS 1
69+ #define ROOT_DIR_SECTORS 4
70+ #define SECTORS_PER_FAT ((NUM_FAT_BLOCKS * 2 + 511) / 512)
71+
6872#define STR0 (x ) #x
6973#define STR (x ) STR0(x)
7074
@@ -105,10 +109,6 @@ STATIC_ASSERT(ARRAY_SIZE(indexFile) < 512);
105109#define UF2_FIRST_SECTOR (NUM_FILES + 1) // WARNING -- code presumes each non-UF2 file content fits in single sector
106110#define UF2_LAST_SECTOR (UF2_FIRST_SECTOR + UF2_SECTORS - 1)
107111
108- #define RESERVED_SECTORS 1
109- #define ROOT_DIR_SECTORS 4
110- #define SECTORS_PER_FAT ((NUM_FAT_BLOCKS * 2 + 511) / 512)
111-
112112#define START_FAT0 RESERVED_SECTORS
113113#define START_FAT1 (START_FAT0 + SECTORS_PER_FAT)
114114#define START_ROOTDIR (START_FAT1 + SECTORS_PER_FAT)
@@ -120,7 +120,6 @@ STATIC_ASSERT(ARRAY_SIZE(indexFile) < 512);
120120
121121STATIC_ASSERT (NUM_DIRENTRIES < DIRENTRIES_PER_SECTOR * ROOT_DIR_SECTORS );
122122
123-
124123static FAT_BootBlock const BootBlock = {
125124 .JumpInstruction = {0xeb , 0x3c , 0x90 },
126125 .OEMInfo = "UF2 UF2 " ,
You can’t perform that action at this time.
0 commit comments