We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075e829 commit e2e0fd5Copy full SHA for e2e0fd5
src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h
@@ -22,9 +22,7 @@
22
#define BOOTROM_VTABLE_OFFSET 0x00
23
#define BOOTROM_TABLE_LOOKUP_OFFSET 0x18
24
#else
25
-// todo remove this (or #ifdef it for A1/A2)
26
-#define BOOTROM_IS_A2() ((*(volatile uint8_t *)0x13) == 2)
27
-#define BOOTROM_WELL_KNOWN_PTR_SIZE (BOOTROM_IS_A2() ? 2 : 4)
+#define BOOTROM_WELL_KNOWN_PTR_SIZE 2
28
#if defined(__riscv)
29
#define BOOTROM_ENTRY_OFFSET 0x7dfc
30
#define BOOTROM_TABLE_LOOKUP_ENTRY_OFFSET (BOOTROM_ENTRY_OFFSET - BOOTROM_WELL_KNOWN_PTR_SIZE)
0 commit comments