remove things that we don't need in boot0. Boot0 originated from
a much larger, more featureful space and needs to be whittled down
to remove attack surface and space for bugs.
Some further cleanup to do would include:
- hardening the PLL setting. Right now it's done computationally
based on the demanded frequency. But in practice, because the
target frequency is hard-coded, we could just compute the actual PLL value
results and jam them into the register and lose a whole bunch of
code.
Actually I think that's all that needs to be cleaned up off the
top of my head.
The *only* change is to make fiat-crypto a non-optional dependency.
For some reason the .cargo/config.toml only half-activates the
feature, in that in the .rs code files the feature is included
but in the Cargo.toml file the dependency is, for some reason,
not enabled.
Light-fingered changes include:
- debug UART integration for debugging things
- patching the sha2 crate to use hardware acceleration
Most changes are in Cargo.toml, with the exception of the debug.rs
module that was introduced for print-debugging.