Skip to content

Commit 7c55234

Browse files
authored
support compile with SDK 2.1.0 and SDK 2.1.1 (#257)
1 parent 1c65fa9 commit 7c55234

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ static __forceinline int __builtin_ctz(unsigned x) {
8484
#define OTP_ROW_COUNT (OTP_PAGE_COUNT * OTP_PAGE_ROWS)
8585
#define OTP_SPECIAL_PAGES 3
8686

87+
// Support for SDK 2.1.0 & SDK 2.1.1 -----
88+
#ifndef CYW43_FIRMWARE_FAMILY_ID
89+
#define CYW43_FIRMWARE_FAMILY_ID 0xe48bff55u
90+
#endif
91+
#ifndef BOOTROM_FAMILY_ID_MIN
92+
#define BOOTROM_FAMILY_ID_MIN RP2040_FAMILY_ID
93+
#endif
94+
#ifndef BOOTROM_FAMILY_ID_MAX
95+
#define BOOTROM_FAMILY_ID_MAX RP2350_ARM_NS_FAMILY_ID
96+
#endif
97+
// ------
98+
8799
using std::string;
88100
using std::vector;
89101
using std::pair;

0 commit comments

Comments
 (0)