From 92adc763b45ac15b39dfc3f8d9b6ff9a3344f716 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Mon, 4 Nov 2024 20:21:36 -0600 Subject: [PATCH] review commet; and fix flagrant bug --- .../boot_bootrom_headers/include/boot/bootrom_constants.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h b/src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h index 37eb0dec9..195140f6b 100644 --- a/src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h +++ b/src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h @@ -258,10 +258,13 @@ typedef int (*bootrom_api_callback_generic_t)(uint32_t r0, uint32_t r1, uint32_t #define OTP_CMD_ROW_BITS 0x0000ffffu #define OTP_CMD_ROW_LSB _u(0) #define OTP_CMD_WRITE_BITS 0x00010000u -#define OTP_CMD_WRITE_LSB _u(6) +#define OTP_CMD_WRITE_LSB _u(16) #define OTP_CMD_ECC_BITS 0x00020000u +#define OTP_CMD_ECC_LSB _u(17) #ifndef __ASSEMBLER__ +static_assert(OTP_CMD_WRITE_BITS == (1 << OTP_CMD_WRITE_LSB), ""); +static_assert(OTP_CMD_ECC_BITS == (1 << OTP_CMD_ECC_LSB), ""); typedef struct { uint32_t permissions_and_location;