You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove duplicated defines from bootrom.h
See #2619 for rationale
* more rationalization of constant names
* comment fix
* Apply suggestions from code review
Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
---------
Co-authored-by: graham sanderson <graham.sanderson@raspberrypi.com>
Copy file name to clipboardExpand all lines: src/rp2_common/pico_bootrom/include/pico/bootrom.h
+8-19Lines changed: 8 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -464,35 +464,35 @@ static inline int rom_set_bootrom_stack(bootrom_stack_t *stack) {
464
464
*
465
465
* The flags field contains one of the following values:
466
466
*
467
-
* REBOOT_TYPE_NORMAL - reboot into the normal boot path.
467
+
* \ref REBOOT2_FLAG_REBOOT_TYPE_NORMAL - reboot into the normal boot path.
468
468
*
469
-
* REBOOT_TYPE_BOOTSEL - reboot into BOOTSEL mode.
469
+
* \ref REBOOT2_FLAG_REBOOT_TYPE_BOOTSEL - reboot into BOOTSEL mode.
470
470
* p0 - the GPIO number to use as an activity indicator (enabled by flag in p1).
471
471
* p1 - a set of flags:
472
472
* 0x01 : DISABLE_MSD_INTERFACE - Disable the BOOTSEL USB drive (see <<section_bootrom_mass_storage>>)
473
473
* 0x02 : DISABLE_PICOBOOT_INTERFACE - Disable the {picoboot} interface (see <<section_bootrom_picoboot>>).
474
474
* 0x10 : GPIO_PIN_ACTIVE_LOW - The GPIO in p0 is active low.
475
475
* 0x20 : GPIO_PIN_ENABLED - Enable the activity indicator on the specified GPIO.
476
476
*
477
-
* REBOOT_TYPE_RAM_IMAGE - reboot into an image in RAM. The region of RAM or XIP RAM is searched for an image to run. This is the type
477
+
* \ref REBOOT2_FLAG_REBOOT_TYPE_RAM_IMAGE - reboot into an image in RAM. The region of RAM or XIP RAM is searched for an image to run. This is the type
478
478
* of reboot used when a RAM UF2 is dragged onto the BOOTSEL USB drive.
479
479
* p0 - the region start address (word-aligned).
480
480
* p1 - the region size (word-aligned).
481
481
*
482
-
* REBOOT_TYPE_FLASH_UPDATE - variant of REBOOT_TYPE_NORMAL to use when flash has been updated. This is the type
482
+
* \ref REBOOT2_FLAG_REBOOT_TYPE_FLASH_UPDATE - variant of \ref REBOOT2_FLAG_REBOOT_TYPE_NORMAL to use when flash has been updated. This is the type
483
483
* of reboot used after dragging a flash UF2 onto the BOOTSEL USB drive.
484
484
* p0 - the address of the start of the region of flash that was updated. If this address matches the start address of a partition or slot, then that
485
485
* partition or slot is treated preferentially during boot (when there is a choice). This type of boot facilitates TBYB and version downgrades.
486
486
*
487
-
* REBOOT_TYPE_PC_SP - reboot to a specific PC and SP. Note: this is not allowed in the ARM-NS variant.
487
+
* \ref REBOOT2_FLAG_REBOOT_TYPE_PC_SP - reboot to a specific PC and SP. Note: this is not allowed in the ARM-NS variant.
488
488
* p0 - the initial program counter (PC) to start executing at. This must have the lowest bit set for Arm and clear for RISC-V
489
489
* p1 - the initial stack pointer (SP).
490
490
*
491
491
* All of the above, can have optional flags ORed in:
492
492
*
493
-
* REBOOT_TO_ARM - switch both cores to the Arm architecture (rather than leaving them as is). The call will fail with BOOTROM_ERROR_INVALID_STATE if the Arm architecture is not supported.
494
-
* REBOOT_TO_RISCV - switch both cores to the RISC-V architecture (rather than leaving them as is). The call will fail with BOOTROM_ERROR_INVALID_STATE if the RISC-V architecture is not supported.
495
-
* NO_RETURN_ON_SUCCESS - the watchdog h/w is asynchronous. Setting this bit forces this method not to return if the reboot is successfully initiated.
493
+
* \ref REBOOT2_FLAG_REBOOT_TO_ARM - switch both cores to the Arm architecture (rather than leaving them as is). The call will fail with BOOTROM_ERROR_INVALID_STATE if the Arm architecture is not supported.
494
+
* \ref REBOOT2_FLAG_REBOOT_TO_RISCV - switch both cores to the RISC-V architecture (rather than leaving them as is). The call will fail with BOOTROM_ERROR_INVALID_STATE if the RISC-V architecture is not supported.
495
+
* \ref REBOOT2_FLAG_NO_RETURN_ON_SUCCESS - the watchdog h/w is asynchronous. Setting this bit forces this method not to return if the reboot is successfully initiated.
496
496
*
497
497
* \param flags the reboot flags, as detailed above
498
498
* \param delay_ms millisecond delay before the reboot occurs
0 commit comments