Skip to content

Commit b600894

Browse files
committed
Fix docs typos, add \see, and rename brief
1 parent 0511287 commit b600894

File tree

1 file changed

+4
-3
lines changed
  • src/rp2_common/pico_bootrom/include/pico

1 file changed

+4
-3
lines changed

src/rp2_common/pico_bootrom/include/pico/bootrom.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,11 +1071,12 @@ static inline int rom_get_last_boot_type(void) {
10711071
*/
10721072
int rom_add_flash_runtime_partition(uint32_t start_offset, uint32_t size, uint32_t permissions);
10731073

1074-
/*! \brief Pick A/B partition for a separate partition
1074+
/*! \brief Pick A/B partition with TBYB guards
10751075
* \ingroup pico_bootrom
10761076
*
10771077
* This will call `rom_pick_ab_partition` with the current `flash_update_boot_window_base`, while performing extra checks to prevent disrupting a main image TBYB.
10781078
* It requires the same minimum workarea size as `rom_pick_ab_partition`.
1079+
* \see rom_pick_ab_partition()
10791080
*
10801081
* For example, if an `explicit_buy` is pending then calling `pick_ab_partition` would normally clear the saved `flash_erase_addr` so the required erase would not
10811082
* occur when `explicit_buy` is called - this function saves and restores that address to prevent this issue, and returns `BOOTROM_ERROR_NOT_PERMITTED` if the
@@ -1086,8 +1087,8 @@ int rom_add_flash_runtime_partition(uint32_t start_offset, uint32_t size, uint32
10861087
*
10871088
* \param workarea_base base address of work area
10881089
* \param workarea_size size of work area
1089-
* @param partition_a_num the A partition of the pair
1090-
* @return >= 0 the partition number picked
1090+
* \param partition_a_num the A partition of the pair
1091+
* \return >= 0 the partition number picked
10911092
* BOOTROM_ERROR_NOT_PERMITTED if not possible to do an update correctly, eg if both main image and data image are TBYB
10921093
* BOOTROM_ERROR_NOT_FOUND if the chosen partition failed verification
10931094
*/

0 commit comments

Comments
 (0)