Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b9f1b32

Browse filesBrowse files
committed
QSPIFormat: use mbed namespace
1 parent ca1cd95 commit b9f1b32
Copy full SHA for b9f1b32

File tree

1 file changed

+12
-11
lines changed
Filter options

1 file changed

+12
-11
lines changed

‎libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino

Copy file name to clipboardExpand all lines: libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino
+12-11Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
#error Format QSPI flash by uploading the sketch to the M7 core instead of the M4 core.
88
#endif
99

10+
using namespace mbed;
1011

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;
1819

1920
bool waitResponse() {
2021
bool confirmation = false;
@@ -60,14 +61,14 @@ void setup() {
6061
Serial.println("Do you want to proceed? Y/[n]");
6162

6263
if (true == waitResponse()) {
63-
mbed::MBRBlockDevice::partition(root, 1, 0x0B, 0, 1024 * 1024);
64+
MBRBlockDevice::partition(root, 1, 0x0B, 0, 1024 * 1024);
6465
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);
6667
mbed::MBRBlockDevice::partition(root, 2, 0x0B, 1024 * 1024, 14 * 1024 * 1024);
6768
// use space from 15.5MB to 16 MB for another fw, memory mapped
6869
} 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);
7172
// use space from 15.5MB to 16 MB for another fw, memory mapped
7273
}
7374

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.