Added SPI implementation based on Linux library

This commit is contained in:
dvdb97
2023-05-16 00:05:07 +02:00
parent d2806f1651
commit 9894fff86e
5 changed files with 245 additions and 2 deletions

View File

@@ -31,10 +31,18 @@ namespace sta
void setState(GpioPinState state) override;
static RaspiGpioPin DUMMY_GPIO;
private:
uint8_t pin_;
GpioMode mode_;
};
class DummyGpioPin : RaspiGpioPin {
DummyGpioPin();
void setState(GpioPinState state) override;
}
} // namespace sta
#endif // STA_RASPI_GPIO_ENABLED