-
Notifications
You must be signed in to change notification settings - Fork 123
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
API improvements #512
API improvements #512
Conversation
Thanks for taking care of this! I took a quick look and I think it looks pretty good overall, but I have a couple features I'd like to continue developing to see how they affect this. Will try to get this taken care of sooner than later and update here when able. |
65ed47c
to
7251cf6
Compare
Rebased on top of #516! But now Clippy is back at screaming that a function has too many args (8/7) :( |
515707b
to
cf5bc0a
Compare
Rebased on top of #525! Clippy is now screaming louder that a function has too many args (9/7) |
9133c08
to
4ffca64
Compare
4ffca64
to
f21dfc7
Compare
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.
Sorry for taking so long to review this, but I think it's looking pretty good. Thanks again for taking care of this.
We should still do another review of the public API before the release, but no point holding things up any longer here.
I've spent a few minuted touching the related code in probe-rs, here are my initial impressions: I find I think a builder for Also I find it somewhat weird that I have to specify a chip revision for
|
non_exhaustinve
FlashData
andFlashSettings
structs to reduce number of input arguments in the following functions:save_elf_as_image
flash_elf_image
load_elf_to_flash
get_flash_image
for all targetsFlashData
avoids duplicating code of parsing the bootloader and partition table file that was present in several places.Not completely convinced on the
FlashData
name.