File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
source/daplink/drag-n-drop Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 37
37
#include "cortex_m.h"
38
38
#include "target_board.h"
39
39
40
- // Must be bigger than 4x the flash size of the biggest supported
41
- // device. This is to accomodate for hex file programming.
42
- static const uint32_t disc_size = MB (64 );
40
+ //! @brief Size in bytes of the virtual disk.
41
+ //!
42
+ //! Must be bigger than 4x the flash size of the biggest supported
43
+ //! device. This is to accomodate for hex file programming.
44
+ #define VFS_DISK_SIZE (MB(64))
43
45
44
46
//! @brief Constants for magic action or config files.
45
47
//!
@@ -131,7 +133,7 @@ void vfs_user_build_filesystem()
131
133
uint32_t file_size ;
132
134
vfs_file_t file_handle ;
133
135
// Setup the filesystem based on target parameters
134
- vfs_init (get_daplink_drive_name (), disc_size );
136
+ vfs_init (get_daplink_drive_name (), VFS_DISK_SIZE );
135
137
// MBED.HTM
136
138
file_size = get_file_size (read_file_mbed_htm );
137
139
vfs_create_file (get_daplink_url_name (), read_file_mbed_htm , 0 , file_size );
You can’t perform that action at this time.
0 commit comments