summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-05-02 21:52:59 +1000
committerjacqueline <me@jacqueline.id.au>2024-05-02 21:52:59 +1000
commit26eb580043ad176bdc58d996f30d470e1073ef00 (patch)
treee499b1115108effe91c961452c1ee101d07beeac /src/drivers
parent7d7f7755d17e1e0a2348d75d797097f166b70471 (diff)
downloadtangara-fw-26eb580043ad176bdc58d996f30d470e1073ef00.tar.gz
move driver includes into a subdir as well
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/adc.cpp2
-rw-r--r--src/drivers/bluetooth.cpp10
-rw-r--r--src/drivers/display.cpp8
-rw-r--r--src/drivers/display_init.cpp2
-rw-r--r--src/drivers/gpios.cpp4
-rw-r--r--src/drivers/haptics.cpp12
-rw-r--r--src/drivers/i2c.cpp2
-rw-r--r--src/drivers/i2s_dac.cpp13
-rw-r--r--src/drivers/include/drivers/a2dp_audio_output.hpp (renamed from src/drivers/include/a2dp_audio_output.hpp)0
-rw-r--r--src/drivers/include/drivers/adc.hpp (renamed from src/drivers/include/adc.hpp)0
-rw-r--r--src/drivers/include/drivers/bluetooth.hpp (renamed from src/drivers/include/bluetooth.hpp)4
-rw-r--r--src/drivers/include/drivers/bluetooth_types.hpp (renamed from src/drivers/include/bluetooth_types.hpp)0
-rw-r--r--src/drivers/include/drivers/display.hpp (renamed from src/drivers/include/display.hpp)4
-rw-r--r--src/drivers/include/drivers/display_init.hpp (renamed from src/drivers/include/display_init.hpp)0
-rw-r--r--src/drivers/include/drivers/fatfs_audio_input.hpp (renamed from src/drivers/include/fatfs_audio_input.hpp)0
-rw-r--r--src/drivers/include/drivers/gpios.hpp (renamed from src/drivers/include/gpios.hpp)0
-rw-r--r--src/drivers/include/drivers/haptics.hpp (renamed from src/drivers/include/haptics.hpp)0
-rw-r--r--src/drivers/include/drivers/i2c.hpp (renamed from src/drivers/include/i2c.hpp)0
-rw-r--r--src/drivers/include/drivers/i2s_dac.hpp (renamed from src/drivers/include/i2s_dac.hpp)2
-rw-r--r--src/drivers/include/drivers/nvs.hpp (renamed from src/drivers/include/nvs.hpp)2
-rw-r--r--src/drivers/include/drivers/samd.hpp (renamed from src/drivers/include/samd.hpp)0
-rw-r--r--src/drivers/include/drivers/spi.hpp (renamed from src/drivers/include/spi.hpp)0
-rw-r--r--src/drivers/include/drivers/spiffs.hpp (renamed from src/drivers/include/spiffs.hpp)0
-rw-r--r--src/drivers/include/drivers/storage.hpp (renamed from src/drivers/include/storage.hpp)2
-rw-r--r--src/drivers/include/drivers/touchwheel.hpp (renamed from src/drivers/include/touchwheel.hpp)2
-rw-r--r--src/drivers/include/drivers/wm8523.hpp (renamed from src/drivers/include/wm8523.hpp)0
-rw-r--r--src/drivers/nvs.cpp22
-rw-r--r--src/drivers/samd.cpp4
-rw-r--r--src/drivers/spi.cpp2
-rw-r--r--src/drivers/spiffs.cpp2
-rw-r--r--src/drivers/storage.cpp4
-rw-r--r--src/drivers/test/test_dac.cpp4
-rw-r--r--src/drivers/test/test_gpio_expander.cpp4
-rw-r--r--src/drivers/test/test_storage.cpp8
-rw-r--r--src/drivers/touchwheel.cpp4
-rw-r--r--src/drivers/wm8523.cpp4
36 files changed, 63 insertions, 64 deletions
diff --git a/src/drivers/adc.cpp b/src/drivers/adc.cpp
index 3379a1ae..3038f7f6 100644
--- a/src/drivers/adc.cpp
+++ b/src/drivers/adc.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "adc.hpp"
+#include "drivers/adc.hpp"
#include <cstdint>
#include "esp_adc/adc_cali.h"
diff --git a/src/drivers/bluetooth.cpp b/src/drivers/bluetooth.cpp
index 40be530e..4caffae7 100644
--- a/src/drivers/bluetooth.cpp
+++ b/src/drivers/bluetooth.cpp
@@ -1,4 +1,4 @@
-#include "bluetooth.hpp"
+#include "drivers/bluetooth.hpp"
#include <stdint.h>
@@ -27,9 +27,9 @@
#include "freertos/timers.h"
#include "tinyfsm/include/tinyfsm.hpp"
-#include "bluetooth_types.hpp"
+#include "drivers/bluetooth_types.hpp"
+#include "drivers/nvs.hpp"
#include "memory_resource.hpp"
-#include "nvs.hpp"
#include "tasks.hpp"
namespace drivers {
@@ -47,8 +47,8 @@ auto gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t* param) -> void {
bluetooth::events::internal::Gap{.type = event, .param = param});
}
-auto avrcp_cb(esp_avrc_ct_cb_event_t event, esp_avrc_ct_cb_param_t* param)
- -> void {
+auto avrcp_cb(esp_avrc_ct_cb_event_t event,
+ esp_avrc_ct_cb_param_t* param) -> void {
esp_avrc_ct_cb_param_t copy = *param;
sBgWorker->Dispatch<void>([=]() {
auto lock = bluetooth::BluetoothState::lock();
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp
index 5c686811..b0a97b30 100644
--- a/src/drivers/display.cpp
+++ b/src/drivers/display.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "display.hpp"
+#include "drivers/display.hpp"
#include <stdint.h>
#include <cmath>
@@ -31,11 +31,11 @@
#include "hal/spi_types.h"
#include "lvgl/lvgl.h"
-#include "display_init.hpp"
-#include "gpios.hpp"
+#include "drivers/display_init.hpp"
+#include "drivers/gpios.hpp"
+#include "drivers/spi.hpp"
#include "misc/lv_color.h"
#include "soc/soc.h"
-#include "spi.hpp"
#include "tasks.hpp"
[[maybe_unused]] static const char* kTag = "DISPLAY";
diff --git a/src/drivers/display_init.cpp b/src/drivers/display_init.cpp
index a69826fa..edd36a8d 100644
--- a/src/drivers/display_init.cpp
+++ b/src/drivers/display_init.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "display_init.hpp"
+#include "drivers/display_init.hpp"
namespace drivers {
namespace displays {
diff --git a/src/drivers/gpios.cpp b/src/drivers/gpios.cpp
index aab932a7..64ba26a7 100644
--- a/src/drivers/gpios.cpp
+++ b/src/drivers/gpios.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
#include <cstdint>
@@ -15,7 +15,7 @@
#include "esp_intr_alloc.h"
#include "hal/gpio_types.h"
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
namespace drivers {
diff --git a/src/drivers/haptics.cpp b/src/drivers/haptics.cpp
index f7b18086..55fa9ad8 100644
--- a/src/drivers/haptics.cpp
+++ b/src/drivers/haptics.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "haptics.hpp"
+#include "drivers/haptics.hpp"
#include <stdint.h>
#include <cstdint>
@@ -21,7 +21,7 @@
#include "hal/gpio_types.h"
#include "hal/i2c_types.h"
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
namespace drivers {
@@ -54,7 +54,8 @@ Haptics::Haptics(const std::variant<ErmMotor, LraMotor>& motor) {
// Set library
// TODO(robin): try the other libraries and test response. C is marginal, D
// too much?
- WriteRegister(Register::kWaveformLibrary, static_cast<uint8_t>(kDefaultErmLibrary));
+ WriteRegister(Register::kWaveformLibrary,
+ static_cast<uint8_t>(kDefaultErmLibrary));
} else if (std::holds_alternative<LraMotor>(motor)) {
ESP_LOGI(kTag, "Setting up LRA motor...");
@@ -75,7 +76,8 @@ Haptics::Haptics(const std::variant<ErmMotor, LraMotor>& motor) {
ControlMask::kLraOpenLoop);
// Set library; only option is the LRA one for, well, LRA motors.
- WriteRegister(Register::kWaveformLibrary, static_cast<uint8_t>(Library::LRA));
+ WriteRegister(Register::kWaveformLibrary,
+ static_cast<uint8_t>(Library::LRA));
}
// Set mode (internal trigger, on writing 1 to Go register)
@@ -123,7 +125,6 @@ auto Haptics::SetWaveformEffect(Effect effect) -> void {
current_effect_ = effect;
}
-
auto Haptics::TourEffects() -> void {
TourEffects(Effect::kFirst, Effect::kLast, kDefaultErmLibrary);
}
@@ -174,7 +175,6 @@ auto Haptics::TourLibraries(Effect from, Effect to) -> void {
}
}
-
auto Haptics::PowerDown() -> void {
WriteRegister(Register::kMode, static_cast<uint8_t>(Mode::kInternalTrigger) |
ModeMask::kStandby);
diff --git a/src/drivers/i2c.cpp b/src/drivers/i2c.cpp
index 7d25717a..793ce9f9 100644
--- a/src/drivers/i2c.cpp
+++ b/src/drivers/i2c.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
#include <cstdint>
diff --git a/src/drivers/i2s_dac.cpp b/src/drivers/i2s_dac.cpp
index 7fe5547d..a271fce0 100644
--- a/src/drivers/i2s_dac.cpp
+++ b/src/drivers/i2s_dac.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "i2s_dac.hpp"
+#include "drivers/i2s_dac.hpp"
#include <cmath>
#include <cstdint>
@@ -25,11 +25,11 @@
#include "hal/gpio_types.h"
#include "hal/i2c_types.h"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
+#include "drivers/i2c.hpp"
+#include "drivers/wm8523.hpp"
#include "hal/i2s_types.h"
-#include "i2c.hpp"
#include "soc/clk_tree_defs.h"
-#include "wm8523.hpp"
namespace drivers {
@@ -142,8 +142,9 @@ auto I2SDac::SetPaused(bool paused) -> void {
static volatile bool sSwapWords = false;
-auto I2SDac::Reconfigure(Channels ch, BitsPerSample bps, SampleRate rate)
- -> void {
+auto I2SDac::Reconfigure(Channels ch,
+ BitsPerSample bps,
+ SampleRate rate) -> void {
std::lock_guard<std::mutex> lock(configure_mutex_);
if (i2s_active_) {
diff --git a/src/drivers/include/a2dp_audio_output.hpp b/src/drivers/include/drivers/a2dp_audio_output.hpp
index 010470c6..010470c6 100644
--- a/src/drivers/include/a2dp_audio_output.hpp
+++ b/src/drivers/include/drivers/a2dp_audio_output.hpp
diff --git a/src/drivers/include/adc.hpp b/src/drivers/include/drivers/adc.hpp
index 3e94a9ee..3e94a9ee 100644
--- a/src/drivers/include/adc.hpp
+++ b/src/drivers/include/drivers/adc.hpp
diff --git a/src/drivers/include/bluetooth.hpp b/src/drivers/include/drivers/bluetooth.hpp
index 8da5ce2e..5960de7e 100644
--- a/src/drivers/include/bluetooth.hpp
+++ b/src/drivers/include/drivers/bluetooth.hpp
@@ -12,11 +12,11 @@
#include <freertos/FreeRTOS.h>
#include <freertos/stream_buffer.h>
#include <stdint.h>
-#include "bluetooth_types.hpp"
+#include "drivers/bluetooth_types.hpp"
#include "esp_a2dp_api.h"
#include "esp_avrc_api.h"
#include "esp_gap_bt_api.h"
-#include "nvs.hpp"
+#include "drivers/nvs.hpp"
#include "tasks.hpp"
#include "tinyfsm.hpp"
#include "tinyfsm/include/tinyfsm.hpp"
diff --git a/src/drivers/include/bluetooth_types.hpp b/src/drivers/include/drivers/bluetooth_types.hpp
index 7cfb236f..7cfb236f 100644
--- a/src/drivers/include/bluetooth_types.hpp
+++ b/src/drivers/include/drivers/bluetooth_types.hpp
diff --git a/src/drivers/include/display.hpp b/src/drivers/include/drivers/display.hpp
index d2e18a5c..6dc78e01 100644
--- a/src/drivers/include/display.hpp
+++ b/src/drivers/include/drivers/display.hpp
@@ -15,8 +15,8 @@
#include "result.hpp"
#include "tasks.hpp"
-#include "display_init.hpp"
-#include "gpios.hpp"
+#include "drivers/display_init.hpp"
+#include "drivers/gpios.hpp"
namespace drivers {
diff --git a/src/drivers/include/display_init.hpp b/src/drivers/include/drivers/display_init.hpp
index 9bf5b3f5..9bf5b3f5 100644
--- a/src/drivers/include/display_init.hpp
+++ b/src/drivers/include/drivers/display_init.hpp
diff --git a/src/drivers/include/fatfs_audio_input.hpp b/src/drivers/include/drivers/fatfs_audio_input.hpp
index 705f6e7d..705f6e7d 100644
--- a/src/drivers/include/fatfs_audio_input.hpp
+++ b/src/drivers/include/drivers/fatfs_audio_input.hpp
diff --git a/src/drivers/include/gpios.hpp b/src/drivers/include/drivers/gpios.hpp
index e27a3ade..e27a3ade 100644
--- a/src/drivers/include/gpios.hpp
+++ b/src/drivers/include/drivers/gpios.hpp
diff --git a/src/drivers/include/haptics.hpp b/src/drivers/include/drivers/haptics.hpp
index 940c3c6d..940c3c6d 100644
--- a/src/drivers/include/haptics.hpp
+++ b/src/drivers/include/drivers/haptics.hpp
diff --git a/src/drivers/include/i2c.hpp b/src/drivers/include/drivers/i2c.hpp
index 0dc1e7c0..0dc1e7c0 100644
--- a/src/drivers/include/i2c.hpp
+++ b/src/drivers/include/drivers/i2c.hpp
diff --git a/src/drivers/include/i2s_dac.hpp b/src/drivers/include/drivers/i2s_dac.hpp
index 569f0a9a..5e81f875 100644
--- a/src/drivers/include/i2s_dac.hpp
+++ b/src/drivers/include/drivers/i2s_dac.hpp
@@ -22,7 +22,7 @@
#include "freertos/stream_buffer.h"
#include "result.hpp"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
#include "sys/_stdint.h"
namespace drivers {
diff --git a/src/drivers/include/nvs.hpp b/src/drivers/include/drivers/nvs.hpp
index ac1a1096..83bb8097 100644
--- a/src/drivers/include/nvs.hpp
+++ b/src/drivers/include/drivers/nvs.hpp
@@ -13,7 +13,7 @@
#include "esp_err.h"
#include "nvs.h"
-#include "bluetooth_types.hpp"
+#include "drivers/bluetooth_types.hpp"
#include "lru_cache.hpp"
namespace drivers {
diff --git a/src/drivers/include/samd.hpp b/src/drivers/include/drivers/samd.hpp
index 55ea513c..55ea513c 100644
--- a/src/drivers/include/samd.hpp
+++ b/src/drivers/include/drivers/samd.hpp
diff --git a/src/drivers/include/spi.hpp b/src/drivers/include/drivers/spi.hpp
index 60638f71..60638f71 100644
--- a/src/drivers/include/spi.hpp
+++ b/src/drivers/include/drivers/spi.hpp
diff --git a/src/drivers/include/spiffs.hpp b/src/drivers/include/drivers/spiffs.hpp
index 04478590..04478590 100644
--- a/src/drivers/include/spiffs.hpp
+++ b/src/drivers/include/drivers/spiffs.hpp
diff --git a/src/drivers/include/storage.hpp b/src/drivers/include/drivers/storage.hpp
index 836bbbdc..3aefff2d 100644
--- a/src/drivers/include/storage.hpp
+++ b/src/drivers/include/drivers/storage.hpp
@@ -15,7 +15,7 @@
#include "ff.h"
#include "result.hpp"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
namespace drivers {
diff --git a/src/drivers/include/touchwheel.hpp b/src/drivers/include/drivers/touchwheel.hpp
index 18ace2b4..60902087 100644
--- a/src/drivers/include/touchwheel.hpp
+++ b/src/drivers/include/drivers/touchwheel.hpp
@@ -12,7 +12,7 @@
#include "esp_err.h"
#include "result.hpp"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
namespace drivers {
diff --git a/src/drivers/include/wm8523.hpp b/src/drivers/include/drivers/wm8523.hpp
index a64f6bac..a64f6bac 100644
--- a/src/drivers/include/wm8523.hpp
+++ b/src/drivers/include/drivers/wm8523.hpp
diff --git a/src/drivers/nvs.cpp b/src/drivers/nvs.cpp
index 0aaf79f0..1389fd0d 100644
--- a/src/drivers/nvs.cpp
+++ b/src/drivers/nvs.cpp
@@ -4,19 +4,19 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "nvs.hpp"
+#include "drivers/nvs.hpp"
#include <cstdint>
#include <memory>
-#include "bluetooth.hpp"
-#include "bluetooth_types.hpp"
#include "cppbor.h"
#include "cppbor_parse.h"
+#include "drivers/bluetooth.hpp"
+#include "drivers/bluetooth_types.hpp"
+#include "drivers/wm8523.hpp"
#include "esp_log.h"
#include "nvs.h"
#include "nvs_flash.h"
-#include "wm8523.hpp"
namespace drivers {
@@ -39,8 +39,8 @@ static constexpr char kKeyDisplayRows[] = "disprows";
static constexpr char kKeyHapticMotorType[] = "hapticmtype";
static constexpr char kKeyDbAutoIndex[] = "dbautoindex";
-static auto nvs_get_string(nvs_handle_t nvs, const char* key)
- -> std::optional<std::string> {
+static auto nvs_get_string(nvs_handle_t nvs,
+ const char* key) -> std::optional<std::string> {
size_t len = 0;
if (nvs_get_blob(nvs, key, NULL, &len) != ESP_OK) {
return {};
@@ -187,8 +187,7 @@ auto NvsStorage::Read() -> void {
lock_polarity_.read(handle_);
display_cols_.read(handle_);
display_rows_.read(handle_);
- haptic_motor_type_.read(handle_),
- brightness_.read(handle_);
+ haptic_motor_type_.read(handle_), brightness_.read(handle_);
sensitivity_.read(handle_);
amp_max_vol_.read(handle_);
amp_cur_vol_.read(handle_);
@@ -205,8 +204,7 @@ auto NvsStorage::Write() -> bool {
lock_polarity_.write(handle_);
display_cols_.write(handle_);
display_rows_.write(handle_);
- haptic_motor_type_.write(handle_),
- brightness_.write(handle_);
+ haptic_motor_type_.write(handle_), brightness_.write(handle_);
sensitivity_.write(handle_);
amp_max_vol_.write(handle_);
amp_cur_vol_.write(handle_);
@@ -287,8 +285,8 @@ auto NvsStorage::BluetoothVolume(const bluetooth::mac_addr_t& mac) -> uint8_t {
return bt_volumes_.Get(mac).value_or(50);
}
-auto NvsStorage::BluetoothVolume(const bluetooth::mac_addr_t& mac, uint8_t vol)
- -> void {
+auto NvsStorage::BluetoothVolume(const bluetooth::mac_addr_t& mac,
+ uint8_t vol) -> void {
std::lock_guard<std::mutex> lock{mutex_};
bt_volumes_dirty_ = true;
bt_volumes_.Put(mac, vol);
diff --git a/src/drivers/samd.cpp b/src/drivers/samd.cpp
index e47d9cfe..c5e8c08a 100644
--- a/src/drivers/samd.cpp
+++ b/src/drivers/samd.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "samd.hpp"
+#include "drivers/samd.hpp"
#include <cstdint>
#include <optional>
@@ -15,7 +15,7 @@
#include "hal/gpio_types.h"
#include "hal/i2c_types.h"
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
enum Registers : uint8_t {
kSamdFirmwareVersion = 0,
diff --git a/src/drivers/spi.cpp b/src/drivers/spi.cpp
index ae6f83a2..f4d3ea6e 100644
--- a/src/drivers/spi.cpp
+++ b/src/drivers/spi.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "spi.hpp"
+#include "drivers/spi.hpp"
#include "driver/sdspi_host.h"
#include "driver/spi_common.h"
diff --git a/src/drivers/spiffs.cpp b/src/drivers/spiffs.cpp
index f03d2f68..30a2db33 100644
--- a/src/drivers/spiffs.cpp
+++ b/src/drivers/spiffs.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "spiffs.hpp"
+#include "drivers/spiffs.hpp"
#include "esp_err.h"
#include "esp_log.h"
diff --git a/src/drivers/storage.cpp b/src/drivers/storage.cpp
index b3588130..b2b7174e 100644
--- a/src/drivers/storage.cpp
+++ b/src/drivers/storage.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "storage.hpp"
+#include "drivers/storage.hpp"
#include <atomic>
#include <memory>
@@ -23,7 +23,7 @@
#include "hal/spi_types.h"
#include "sdmmc_cmd.h"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
#include "memory_resource.hpp"
[[maybe_unused]] static const char* kTag = "SDSTORAGE";
diff --git a/src/drivers/test/test_dac.cpp b/src/drivers/test/test_dac.cpp
index e8d8dd94..2269f280 100644
--- a/src/drivers/test/test_dac.cpp
+++ b/src/drivers/test/test_dac.cpp
@@ -10,8 +10,8 @@
#include "catch2/catch.hpp"
-#include "gpios.hpp"
-#include "i2c.hpp"
+#include "drivers/gpios.hpp"
+#include "drivers/i2c.hpp"
#include "i2c_fixture.hpp"
namespace drivers {
diff --git a/src/drivers/test/test_gpio_expander.cpp b/src/drivers/test/test_gpio_expander.cpp
index 972bcf09..7c323313 100644
--- a/src/drivers/test/test_gpio_expander.cpp
+++ b/src/drivers/test/test_gpio_expander.cpp
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
#include "catch2/catch.hpp"
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
#include "i2c_fixture.hpp"
namespace drivers {
diff --git a/src/drivers/test/test_storage.cpp b/src/drivers/test/test_storage.cpp
index 062de3af..f97a0a85 100644
--- a/src/drivers/test/test_storage.cpp
+++ b/src/drivers/test/test_storage.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "storage.hpp"
+#include "drivers/storage.hpp"
#include <dirent.h>
@@ -14,10 +14,10 @@
#include "catch2/catch.hpp"
-#include "gpios.hpp"
-#include "i2c.hpp"
+#include "drivers/gpios.hpp"
+#include "drivers/i2c.hpp"
+#include "drivers/spi.hpp"
#include "i2c_fixture.hpp"
-#include "spi.hpp"
#include "spi_fixture.hpp"
namespace drivers {
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp
index 41b9a6af..5d55c6f2 100644
--- a/src/drivers/touchwheel.cpp
+++ b/src/drivers/touchwheel.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "touchwheel.hpp"
+#include "drivers/touchwheel.hpp"
#include <stdint.h>
#include <cstdint>
@@ -18,7 +18,7 @@
#include "hal/gpio_types.h"
#include "hal/i2c_types.h"
-#include "i2c.hpp"
+#include "drivers/i2c.hpp"
namespace drivers {
diff --git a/src/drivers/wm8523.cpp b/src/drivers/wm8523.cpp
index 9fe3e001..26316387 100644
--- a/src/drivers/wm8523.cpp
+++ b/src/drivers/wm8523.cpp
@@ -3,14 +3,14 @@
*
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "wm8523.hpp"
+#include "drivers/wm8523.hpp"
#include <cstdint>
#include "esp_err.h"
+#include "drivers/i2c.hpp"
#include "hal/i2c_types.h"
-#include "i2c.hpp"
namespace drivers {
namespace wm8523 {