jonas-schievink / spi-memory

An embedded-hal driver for various SPI Flash and EEPROM chips
BSD Zero Clause License
23 stars 22 forks source link

Adding support for the SPI stack chips #10

Open hargoniX opened 5 years ago

hargoniX commented 5 years ago

Sadly I was only able to get the API for the user to this form

    let mut flash: Flash<W25N<_, _>, W25N<_, _>, _> = Flash::init(spi, cs).unwrap();

If rust would not explicitly require me to place the two type parameters for the W25N it obviously knows already there it would look a lot more beautiful but for some reason it does that