File tree Expand file tree Collapse file tree 4 files changed +38
-90
lines changed Expand file tree Collapse file tree 4 files changed +38
-90
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -81,8 +81,46 @@ COMPILER_ASSERT(DAPLINK_RAM_SHARED_START + DAPLINK_RAM_SHARED_SIZE == DAPLINK_RA
81
81
// Macro with the name of the main application header file.
82
82
#if defined(DAPLINK_BL )
83
83
#define DAPLINK_MAIN_HEADER "main_bootloader.h"
84
+
85
+ #include "virtual_fs.h"
86
+
87
+ COMPILER_ASSERT (DAPLINK_BUILD_KEY == DAPLINK_BUILD_KEY_BL );
88
+
89
+ // daplink_mode_file_name, daplink_url_name and
90
+ // daplink_drive_name strings must be 11 characters
91
+ // excluding the null terminated character
92
+ static const char daplink_mode_file_name [11 ] = "START_IFACT" ;
93
+
94
+ __STATIC_FORCEINLINE bool daplink_is_bootloader ()
95
+ {
96
+ return true;
97
+ }
98
+
99
+ __STATIC_FORCEINLINE bool daplink_is_interface ()
100
+ {
101
+ return false;
102
+ }
103
+
84
104
#elif defined(DAPLINK_IF )
85
105
#define DAPLINK_MAIN_HEADER "main_interface.h"
106
+
107
+ #if defined(DRAG_N_DROP_SUPPORT ) && !defined(DRAG_N_DROP_DISABLE )
108
+ #include "virtual_fs.h"
109
+ COMPILER_ASSERT (DAPLINK_BUILD_KEY == DAPLINK_BUILD_KEY_IF );
110
+
111
+ static const vfs_filename_t daplink_mode_file_name = "START_BLACT" ;
112
+ #endif //DRAG_N_DROP_SUPPORT
113
+
114
+ __STATIC_FORCEINLINE bool daplink_is_bootloader ()
115
+ {
116
+ return false;
117
+ }
118
+
119
+ __STATIC_FORCEINLINE bool daplink_is_interface ()
120
+ {
121
+ return true;
122
+ }
123
+
86
124
#else
87
125
#error "Neither DAPLINK_BL nor DAPLINK_IF are defined!"
88
126
#endif
@@ -93,9 +131,6 @@ typedef struct {
93
131
uint32_t version ;
94
132
} daplink_info_t ;
95
133
96
- bool daplink_is_bootloader (void );
97
- bool daplink_is_interface (void );
98
-
99
134
#ifdef __cplusplus
100
135
}
101
136
#endif
Original file line number Diff line number Diff line change 32
32
extern "C" {
33
33
#endif
34
34
35
-
36
- extern const vfs_filename_t daplink_mode_file_name ;
37
-
38
35
/* Callable from anywhere */
39
36
40
37
// Enable or disable the virtual filesystem
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments