Open
Description
I'm trying to write an initialisation function for a driver, but the fact that the pin initialisation functions don't give me an embedded-hal Error trait is being a bit of a pain in the behind for me.
I can't properly incorperate the errors that arise when setting up gpios in my drivers error enum.
My situation is an SPI device that has two additional gpios, a reset and an interrupt pin.
This is a very hardware specific driver so the pins and spidev are created in the driver::new() function.
The linux_embedded_hal::spi::SPIError does implement embedded_hal::spi::Error so that one is fine I think.
Is this a workable idea?
Metadata
Metadata
Assignees
Labels
No labels