rp-hal-boards/rp2040-hal
Jan Niehusmann d6231bd3ec fix rom_table_lookup
It seems like the rom_table_lookup missed one level of
pointer dereferencing.

After comparing it to the working call to reset_usb_boot() in
https://github.com/jannic/rp-microcontroller-rs/blob/master/util/rp2040-panic-usb-boot/src/lib.rs,
I changed the code until it generated basically the same assembly.

With that change, I was able to successfully call rom_data::reset_to_usb_boot()

I still don't like the type RomTableLookupFn, which just returns
some generic T without any checks, and I think rom_table_lookup
should be unsafe. But as none of those are pub, it doesn't matter too
much. So I just made the changes necessary to make the code work.
2021-02-15 22:16:43 +00:00
..
src fix rom_table_lookup 2021-02-15 22:16:43 +00:00
.gitignore Initial Commit: Updated author information. 2021-01-22 09:18:12 -05:00
Cargo.toml Added skeleton for HAL and updated readme 2021-01-25 15:42:43 -05:00