-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve rom_pick_ab_update_partition docs #2577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1101,6 +1101,9 @@ int rom_add_flash_runtime_partition(uint32_t start_offset, uint32_t size, uint32 | |||
* a main image TBYB boot. It requires the same minimum workarea size as `rom_pick_ab_partition`. | |||
* \see rom_pick_ab_partition() | |||
* | |||
* This should be used instead of `rom_pick_ab_partition` when performing a Flash Update Boot before calling `explicit_buy`, and can still be used without |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting on a wider scope:
- any in progress update or TBYB boot" perhaps "any in progress Flash Update boot or TBYB boot" (note boot repeated), though a TBYB is a flash update boot, so maybe TBYB operation IDK
- I'd put this function right after rom_pick_ab_partition in the header
- we should use \ref to refer to other functions not
func
(cc @lurch) - arguably "normally" is "always" so really you could lose the word
- bit of a weird '-' in the middle of the For example sentence
- erase 2 partitions -> erase two partitions
- It also checks" It is a big dangly here (perhaps this function)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've resolved these issues, although there were no \func
invocations in the current docs, so have just added more \ref
s
Add more `\ref`s and tidy up wording
/*! \brief Pick A/B partition without disturbing any in progress Flash Update boot or TBYB boot | ||
* \ingroup pico_bootrom | ||
* | ||
* This will call \ref rom_pick_ab_partition() using the `flash_update_boot_window_base` from the current boot, while performing extra checks to prevent disrupting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we aren't copying the text from rom_pick_ab_partiton() I think we should focus on the fact that this performs the same function as rom_pick_ab_partiont(), but does a few other things. I guess this is implicit, but using "calls" just makes me think the documentation is just a precis of the function code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've replaced "call" with "perform the same function as" to make that clear
…pdate and replace "call"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we got there; thanks you!
Should be merged with raspberrypi/pico-examples#677