File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 26
26
27
27
#include "supervisor/filesystem.h"
28
28
29
+
30
+ void filesystem_background (void ) {
31
+ return ;
32
+ }
33
+
29
34
bool filesystem_init (bool create_allowed , bool force_create ) {
30
35
(void )create_allowed ;
31
36
(void )force_create ;
@@ -35,11 +40,37 @@ bool filesystem_init(bool create_allowed, bool force_create) {
35
40
void filesystem_flush (void ) {
36
41
}
37
42
43
+ void filesystem_set_internal_writable_by_usb (bool writable ) {
44
+ (void )writable ;
45
+ return ;
46
+ }
47
+
48
+ void filesystem_set_writable_by_usb (fs_user_mount_t * vfs , bool usb_writable ) {
49
+ (void )vfs ;
50
+ (void )usb_writable ;
51
+ return ;
52
+ }
53
+
38
54
bool filesystem_is_writable_by_python (fs_user_mount_t * vfs ) {
39
55
(void )vfs ;
40
56
return true;
41
57
}
42
58
59
+ bool filesystem_is_writable_by_usb (fs_user_mount_t * vfs ) {
60
+ return true;
61
+ }
62
+
63
+ void filesystem_set_internal_concurrent_write_protection (bool concurrent_write_protection ) {
64
+ (void )concurrent_write_protection ;
65
+ return ;
66
+ }
67
+
68
+ void filesystem_set_concurrent_write_protection (fs_user_mount_t * vfs , bool concurrent_write_protection ) {
69
+ (void )vfs ;
70
+ (void )concurrent_write_protection ;
71
+ return ;
72
+ }
73
+
43
74
bool filesystem_present (void ) {
44
75
return false;
45
76
}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ SRC_SUPERVISOR = \
5
5
supervisor/shared/background_callback.c \
6
6
supervisor/shared/board.c \
7
7
supervisor/shared/cpu.c \
8
- supervisor/shared/filesystem.c \
9
8
supervisor/shared/flash.c \
10
9
supervisor/shared/lock.c \
11
10
supervisor/shared/memory.c \
@@ -17,6 +16,12 @@ SRC_SUPERVISOR = \
17
16
supervisor/shared/traceback.c \
18
17
supervisor/shared/translate.c
19
18
19
+ ifeq ($(DISABLE_FILESYSTEM ) ,1)
20
+ SRC_SUPERVISOR += supervisor/stub/filesystem.c
21
+ else
22
+ SRC_SUPERVISOR += supervisor/shared/filesystem.c
23
+ endif
24
+
20
25
NO_USB ?= $(wildcard supervisor/usb.c)
21
26
22
27
INTERNAL_FLASH_FILESYSTEM ?= 0
You can’t perform that action at this time.
0 commit comments