iqlusioninc / usbarmory.rs

Bare metal Rust support for USB armory MkII devices
Apache License 2.0
58 stars 4 forks source link

eMMC refactor #52

Closed japaric closed 4 years ago

japaric commented 4 years ago

this improves error checking (we were not fully checking all the error flags in the Card Status Register) and changes the signature of most methods to return a Result

it also changes the default clock frequency to 48 MHz (from 400 KHz)

it also fixes the read and write bounds checks by actually reading the extended Card Specific Data register to get the number of blocks in the card