From 371f0a20cad4dfcb3237db6f72a7e35403950938 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 30 Jun 2023 20:48:40 +1000 Subject: Clean up gpios interface --- src/drivers/include/i2s_dac.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/include/i2s_dac.hpp') 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; + static auto create(IGpios* expander) -> std::optional; - 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 active_page_; -- cgit v1.2.3