diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-06-30 20:48:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-06-30 20:48:40 +1000 |
| commit | 371f0a20cad4dfcb3237db6f72a7e35403950938 (patch) | |
| tree | 48240a9c3d2121095e0f10537228603120435dd0 /src/drivers/include/i2s_dac.hpp | |
| parent | 0347555d5b2314e1be58261ef29fa13a76c039e6 (diff) | |
| download | tangara-fw-371f0a20cad4dfcb3237db6f72a7e35403950938.tar.gz | |
Clean up gpios interface
Diffstat (limited to 'src/drivers/include/i2s_dac.hpp')
| -rw-r--r-- | src/drivers/include/i2s_dac.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/include/i2s_dac.hpp b/src/drivers/include/i2s_dac.hpp index 388d09fa..39eb9c4c 100644 --- a/src/drivers/include/i2s_dac.hpp +++ b/src/drivers/include/i2s_dac.hpp @@ -22,7 +22,7 @@ #include "result.hpp" #include "span.hpp" -#include "gpio_expander.hpp" +#include "gpios.hpp" #include "sys/_stdint.h" namespace drivers { @@ -32,9 +32,9 @@ namespace drivers { */ class I2SDac { public: - static auto create(GpioExpander* expander) -> std::optional<I2SDac*>; + static auto create(IGpios* expander) -> std::optional<I2SDac*>; - I2SDac(GpioExpander* gpio, i2s_chan_handle_t i2s_handle); + I2SDac(IGpios* gpio, i2s_chan_handle_t i2s_handle); ~I2SDac(); auto Start() -> void; @@ -70,7 +70,7 @@ class I2SDac { I2SDac& operator=(const I2SDac&) = delete; private: - GpioExpander* gpio_; + IGpios* gpio_; i2s_chan_handle_t i2s_handle_; bool i2s_active_; std::optional<uint8_t> active_page_; |
