Skip to content

Commit 92adc76

Browse files
committed
review commet; and fix flagrant bug
1 parent dee8272 commit 92adc76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rp2_common/boot_bootrom_headers/include/boot/bootrom_constants.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,13 @@ typedef int (*bootrom_api_callback_generic_t)(uint32_t r0, uint32_t r1, uint32_t
258258
#define OTP_CMD_ROW_BITS 0x0000ffffu
259259
#define OTP_CMD_ROW_LSB _u(0)
260260
#define OTP_CMD_WRITE_BITS 0x00010000u
261-
#define OTP_CMD_WRITE_LSB _u(6)
261+
#define OTP_CMD_WRITE_LSB _u(16)
262262
#define OTP_CMD_ECC_BITS 0x00020000u
263+
#define OTP_CMD_ECC_LSB _u(17)
263264

264265
#ifndef __ASSEMBLER__
266+
static_assert(OTP_CMD_WRITE_BITS == (1 << OTP_CMD_WRITE_LSB), "");
267+
static_assert(OTP_CMD_ECC_BITS == (1 << OTP_CMD_ECC_LSB), "");
265268

266269
typedef struct {
267270
uint32_t permissions_and_location;

0 commit comments

Comments
 (0)