Skip to content
Snippets Groups Projects
Commit 3431ea72 authored by Damien George's avatar Damien George
Browse files

stm32/main: Make thread and FS state static and exclude when not needed.

Without the static qualifier these objects will be kept by the linker even
if they are unused.  So this patch saves some RAM when these features are
unused by a board.
parent 5b66c7b7
Branches
Tags
No related merge requests found
...@@ -65,8 +65,13 @@ ...@@ -65,8 +65,13 @@
void SystemClock_Config(void); void SystemClock_Config(void);
pyb_thread_t pyb_thread_main; #if MICROPY_PY_THREAD
fs_user_mount_t fs_user_mount_flash; STATIC pyb_thread_t pyb_thread_main;
#endif
#if MICROPY_HW_ENABLE_STORAGE
STATIC fs_user_mount_t fs_user_mount_flash;
#endif
void flash_error(int n) { void flash_error(int n) {
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment