7
7
#error Format QSPI flash by uploading the sketch to the M7 core instead of the M4 core.
8
8
#endif
9
9
10
+ using namespace mbed ;
10
11
11
- mbed:: BlockDevice* root = mbed:: BlockDevice::get_default_instance();
12
- mbed:: MBRBlockDevice wifi_data (root, 1 );
13
- mbed:: MBRBlockDevice ota_data (root, 2 );
14
- mbed:: MBRBlockDevice user_data (root, 3 );
15
- mbed:: FATFileSystem wifi_data_fs (" wlan" );
16
- mbed:: FATFileSystem ota_data_fs (" fs" );
17
- mbed:: FileSystem * user_data_fs;
12
+ BlockDevice* root = BlockDevice::get_default_instance();
13
+ MBRBlockDevice wifi_data (root, 1 );
14
+ MBRBlockDevice ota_data (root, 2 );
15
+ MBRBlockDevice user_data (root, 3 );
16
+ FATFileSystem wifi_data_fs (" wlan" );
17
+ FATFileSystem ota_data_fs (" fs" );
18
+ FileSystem * user_data_fs;
18
19
19
20
bool waitResponse () {
20
21
bool confirmation = false ;
@@ -60,14 +61,14 @@ void setup() {
60
61
Serial.println (" Do you want to proceed? Y/[n]" );
61
62
62
63
if (true == waitResponse ()) {
63
- mbed:: MBRBlockDevice::partition (root, 1 , 0x0B , 0 , 1024 * 1024 );
64
+ MBRBlockDevice::partition (root, 1 , 0x0B , 0 , 1024 * 1024 );
64
65
if (default_scheme) {
65
- mbed:: MBRBlockDevice::partition (root, 3 , 0x0B , 14 * 1024 * 1024 , 14 * 1024 * 1024 );
66
+ MBRBlockDevice::partition (root, 3 , 0x0B , 14 * 1024 * 1024 , 14 * 1024 * 1024 );
66
67
mbed::MBRBlockDevice::partition (root, 2 , 0x0B , 1024 * 1024 , 14 * 1024 * 1024 );
67
68
// use space from 15.5MB to 16 MB for another fw, memory mapped
68
69
} else {
69
- mbed:: MBRBlockDevice::partition (root, 2 , 0x0B , 1024 * 1024 , 6 * 1024 * 1024 );
70
- mbed:: MBRBlockDevice::partition (root, 3 , 0x0B , 6 * 1024 * 1024 , 14 * 1024 * 1024 );
70
+ MBRBlockDevice::partition (root, 2 , 0x0B , 1024 * 1024 , 6 * 1024 * 1024 );
71
+ MBRBlockDevice::partition (root, 3 , 0x0B , 6 * 1024 * 1024 , 14 * 1024 * 1024 );
71
72
// use space from 15.5MB to 16 MB for another fw, memory mapped
72
73
}
73
74
0 commit comments