Change disk size constant to macro in vfs_user.c.
#include "cortex_m.h"
#include "target_board.h"
-// Must be bigger than 4x the flash size of the biggest supported
-// device. This is to accomodate for hex file programming.
-static const uint32_t disc_size = MB(64);
+//! @brief Size in bytes of the virtual disk.
+//!
+//! Must be bigger than 4x the flash size of the biggest supported
+//! device. This is to accomodate for hex file programming.
+#define VFS_DISK_SIZE (MB(64))
//! @brief Constants for magic action or config files.
//!
@@ -131,7 +133,7 @@ void vfs_user_build_filesystem()
uint32_t file_size;
vfs_file_t file_handle;
// Setup the filesystem based on target parameters
- vfs_init(get_daplink_drive_name(), disc_size);
+ vfs_init(get_daplink_drive_name(), VFS_DISK_SIZE);
// MBED.HTM
file_size = get_file_size(read_file_mbed_htm);
vfs_create_file(get_daplink_url_name(), read_file_mbed_htm, 0, file_size);
