11
11
#include "bootloader_settings.h"
12
12
#include "bootloader.h"
13
13
14
- // Uncomment the next line to create an additional 20 files in root.
15
- // #define CREATE_MANY_FILES
16
-
17
14
typedef struct {
18
15
uint8_t JumpInstruction [3 ];
19
16
uint8_t OEMInfo [8 ];
@@ -69,8 +66,7 @@ const char infoUf2File[] = //
69
66
"Model: " PRODUCT_NAME "\r\n"
70
67
"Board-ID: " BOARD_ID "\r\n"
71
68
"Bootloader: " BOOTLOADER_ID "\r\n"
72
- "Date: " __DATE__ "\r\n"
73
- "Time: " __TIME__ "\r\n" ;
69
+ "Date: " __DATE__ "\r\n" ;
74
70
75
71
const char indexFile [] = //
76
72
"<!doctype html>\n"
@@ -82,56 +78,11 @@ const char indexFile[] = //
82
78
"</body>"
83
79
"</html>\n" ;
84
80
85
- #ifdef CREATE_MANY_FILES
86
- const char dataFile00 [] = "This is the data for File 00\r\n" ;
87
- const char dataFile01 [] = "This is the data for File 01\r\n" ;
88
- const char dataFile02 [] = "This is the data for File 02\r\n" ;
89
- const char dataFile03 [] = "This is the data for File 03\r\n" ;
90
- const char dataFile04 [] = "This is the data for File 04\r\n" ;
91
- const char dataFile05 [] = "This is the data for File 05\r\n" ;
92
- const char dataFile06 [] = "This is the data for File 06\r\n" ;
93
- const char dataFile07 [] = "This is the data for File 07\r\n" ;
94
- const char dataFile08 [] = "This is the data for File 08\r\n" ;
95
- const char dataFile09 [] = "This is the data for File 09\r\n" ;
96
- const char dataFile10 [] = "This is the data for File 10\r\n" ;
97
- const char dataFile11 [] = "This is the data for File 11\r\n" ;
98
- const char dataFile12 [] = "This is the data for File 12\r\n" ;
99
- const char dataFile13 [] = "This is the data for File 13\r\n" ;
100
- const char dataFile14 [] = "This is the data for File 14\r\n" ;
101
- const char dataFile15 [] = "This is the data for File 15\r\n" ;
102
- const char dataFile16 [] = "This is the data for File 16\r\n" ;
103
- const char dataFile17 [] = "This is the data for File 17\r\n" ;
104
- const char dataFile18 [] = "This is the data for File 18\r\n" ;
105
- const char dataFile19 [] = "This is the data for File 19\r\n" ;
106
- #endif // CREATE_MANY_FILES
107
-
108
81
// WARNING -- code presumes only one NULL .content for .UF2 file
109
82
// and requires it be the last element of the array
110
83
static struct TextFile const info [] = {
111
84
{.name = "INFO_UF2TXT" , .content = infoUf2File },
112
85
{.name = "INDEX HTM" , .content = indexFile },
113
- #ifdef CREATE_MANY_FILES
114
- {.name = "FILE00 TXT" , .content = dataFile00 },
115
- {.name = "FILE01 TXT" , .content = dataFile01 },
116
- {.name = "FILE02 TXT" , .content = dataFile02 },
117
- {.name = "FILE03 TXT" , .content = dataFile03 },
118
- {.name = "FILE04 TXT" , .content = dataFile04 },
119
- {.name = "FILE05 TXT" , .content = dataFile05 },
120
- {.name = "FILE06 TXT" , .content = dataFile06 },
121
- {.name = "FILE07 TXT" , .content = dataFile07 },
122
- {.name = "FILE08 TXT" , .content = dataFile08 },
123
- {.name = "FILE09 TXT" , .content = dataFile09 },
124
- {.name = "FILE10 TXT" , .content = dataFile10 },
125
- {.name = "FILE11 TXT" , .content = dataFile11 },
126
- {.name = "FILE12 TXT" , .content = dataFile12 },
127
- {.name = "FILE13 TXT" , .content = dataFile13 },
128
- {.name = "FILE14 TXT" , .content = dataFile14 },
129
- {.name = "FILE15 TXT" , .content = dataFile15 },
130
- {.name = "FILE16 TXT" , .content = dataFile16 },
131
- {.name = "FILE17 TXT" , .content = dataFile17 },
132
- {.name = "FILE18 TXT" , .content = dataFile18 },
133
- {.name = "FILE19 TXT" , .content = dataFile19 },
134
- #endif
135
86
{.name = "CURRENT UF2" },
136
87
};
137
88
0 commit comments