tool: 0.1.3 - add backup ROM flashing

This commit is contained in:
Jeremy Soller
2020-04-06 16:39:40 -06:00
parent ff639a7836
commit a8b38d6b37
5 changed files with 86 additions and 44 deletions

View File

@ -231,6 +231,10 @@ impl<'a, T: Timeout> EcSpi<'a, T> {
}
impl<'a, T: Timeout> Spi for EcSpi<'a, T> {
fn target(&self) -> SpiTarget {
self.target
}
/// Disable SPI chip, must be done before and after a transaction
unsafe fn reset(&mut self) -> Result<(), Error> {
let flags = self.flags(false, true);