Skip to content

Commit 277f468

Browse files
committed
Remove QSPISecure from Portenta_System
Will move it inside variant
1 parent ca309f1 commit 277f468

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

libraries/STM32H747_System/src/Portenta_System.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ bool arduino::Portenta_System::enterLowPower() {
1616
/* TO DO */
1717
}
1818

19-
// 8Kbit secure OTP area (on MX25L12833F)
20-
bool arduino::Portenta_System::getSecureFlashData(void* buf, size_t size) {
21-
static SecureQSPIFBlockDevice root;
22-
root.init();
23-
auto ret = root.readSecure(buf, 0, size > 512 ? 512 : size);
24-
return ret == 0;
25-
}
26-
2719
arduino::Portenta_System Portenta;
2820

2921
#endif

libraries/STM32H747_System/src/Portenta_System.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class Portenta_System: public STM32H747
1212
Portenta_System() {};
1313
virtual bool begin();
1414
virtual bool enterLowPower();
15-
bool getSecureFlashData(void* buf, size_t size);
15+
String getBoardRevision();
16+
uint16_t getCarrierSpecs();
1617
};
1718

1819
}

libraries/STM32H747_System/src/SecureQSPI.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)