Skip to content

Commit cb4544d

Browse files
authored
fix reboot param comments
1 parent 92adc76 commit cb4544d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/boot_picoboot_headers/include/boot/picoboot_constants.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// note these match REBOOT_TYPE in pico/bootrom_constants.h
1313
// values 0-7 are secure/non-secure
1414
#define REBOOT2_FLAG_REBOOT_TYPE_NORMAL 0x0 // param0 = diagnostic partition
15-
#define REBOOT2_FLAG_REBOOT_TYPE_BOOTSEL 0x2 // param0 = bootsel_flags, param1 = gpio_config
16-
#define REBOOT2_FLAG_REBOOT_TYPE_RAM_IMAGE 0x3 // param0 = image_base, param1 = image_end
15+
#define REBOOT2_FLAG_REBOOT_TYPE_BOOTSEL 0x2 // param0 = gpio_pin_number, param1 = flags
16+
#define REBOOT2_FLAG_REBOOT_TYPE_RAM_IMAGE 0x3 // param0 = image_regio_base, param1 = image_region_size
1717
#define REBOOT2_FLAG_REBOOT_TYPE_FLASH_UPDATE 0x4 // param0 = update_base
1818

1919
// values 8-15 are secure only
@@ -39,4 +39,4 @@
3939
#define UF2_STATUS_ABORT_BAD_ADDRESS 0x20
4040
#define UF2_STATUS_ABORT_WRITE_ERROR 0x40
4141
#define UF2_STATUS_ABORT_REBOOT_FAILED 0x80
42-
#endif
42+
#endif

0 commit comments

Comments
 (0)