switch to embedded_hal::digital::v2 gpio pin traits
Embedded-hal digital::v1 traits have been deprecated because the methods
cannot return errors. Switch to digital::v2 implementation.
spi,serial: propagate InputPin/OutputPin errors
Include errors from the underlying InputPin/OutputPin embedded-hal
implementation into spi/serial error type. Propagate all the errors
up-the-stack.
i2c: rework previous error handling implementation
Drop custom gpio bus errors and use the same new approach
as for spi and serial.
Hi @sajattack
Here is a switch to digital::v2 and related error handling update. Could you please take a look and let me know if you have any comments or concerns.
Tested with i2c for kxcj9 accelerometer and spi for display driver on stm32f101.
switch to embedded_hal::digital::v2 gpio pin traits Embedded-hal digital::v1 traits have been deprecated because the methods cannot return errors. Switch to digital::v2 implementation.
spi,serial: propagate InputPin/OutputPin errors Include errors from the underlying InputPin/OutputPin embedded-hal implementation into spi/serial error type. Propagate all the errors up-the-stack.
i2c: rework previous error handling implementation Drop custom gpio bus errors and use the same new approach as for spi and serial.
Signed-off-by: Sergey Matyukevich geomatsi@gmail.com