We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ea3fa2 commit b0a4690Copy full SHA for b0a4690
1 file changed
stmhal/main.c
@@ -165,9 +165,8 @@ static const char fresh_readme_txt[] =
165
"Please visit http://micropython.org/help/ for further help.\r\n"
166
;
167
168
-// we don't make this function static because it needs a lot of stack and we
169
-// want it to be executed without using stack within main() function
170
-void init_flash_fs(uint reset_mode) {
+// avoid inlining to avoid stack usage within main()
+MP_NOINLINE STATIC void init_flash_fs(uint reset_mode) {
171
// init the vfs object
172
fs_user_mount_t *vfs = &fs_user_mount_flash;
173
vfs->str = "/flash";
0 commit comments