From a771c64c714bf885dadbbd6c072b694ec9930c84 Mon Sep 17 00:00:00 2001 From: Matthew Colvin Date: Fri, 11 Aug 2023 12:26:01 -0500 Subject: [PATCH] rename interface folder to HardwareInterfaces rename HardwareInterface file to hardware abstract. update ini to reflect new file structure --- .../{Interface/HardwareInterface.cpp => HardwareAbstract.cpp} | 2 +- .../{Interface/HardwareInterface.h => HardwareAbstract.hpp} | 0 .../HAL/{Interface => HardwareInterfaces}/BatteryInterface.h | 0 .../HAL/{Interface => HardwareInterfaces}/DisplayInterface.h | 0 .../{Interface => HardwareInterfaces}/wifiHandlerInterface.h | 0 Platformio/HAL/Targets/ESP32/HardwareRevX.hpp | 2 +- Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp | 2 +- Platformio/OmoteUI/OmoteUI.hpp | 2 +- Platformio/platformio.ini | 4 ++-- 9 files changed, 6 insertions(+), 6 deletions(-) rename Platformio/HAL/{Interface/HardwareInterface.cpp => HardwareAbstract.cpp} (93%) rename Platformio/HAL/{Interface/HardwareInterface.h => HardwareAbstract.hpp} (100%) rename Platformio/HAL/{Interface => HardwareInterfaces}/BatteryInterface.h (100%) rename Platformio/HAL/{Interface => HardwareInterfaces}/DisplayInterface.h (100%) rename Platformio/HAL/{Interface => HardwareInterfaces}/wifiHandlerInterface.h (100%) diff --git a/Platformio/HAL/Interface/HardwareInterface.cpp b/Platformio/HAL/HardwareAbstract.cpp similarity index 93% rename from Platformio/HAL/Interface/HardwareInterface.cpp rename to Platformio/HAL/HardwareAbstract.cpp index 9283e92..9e29e64 100644 --- a/Platformio/HAL/Interface/HardwareInterface.cpp +++ b/Platformio/HAL/HardwareAbstract.cpp @@ -1,4 +1,4 @@ -#include "HardwareInterface.h" +#include "HardwareAbstract.hpp" HardwareAbstract::HardwareAbstract(std::shared_ptr aBattery) : mBattery(std::move(aBattery)){ diff --git a/Platformio/HAL/Interface/HardwareInterface.h b/Platformio/HAL/HardwareAbstract.hpp similarity index 100% rename from Platformio/HAL/Interface/HardwareInterface.h rename to Platformio/HAL/HardwareAbstract.hpp diff --git a/Platformio/HAL/Interface/BatteryInterface.h b/Platformio/HAL/HardwareInterfaces/BatteryInterface.h similarity index 100% rename from Platformio/HAL/Interface/BatteryInterface.h rename to Platformio/HAL/HardwareInterfaces/BatteryInterface.h diff --git a/Platformio/HAL/Interface/DisplayInterface.h b/Platformio/HAL/HardwareInterfaces/DisplayInterface.h similarity index 100% rename from Platformio/HAL/Interface/DisplayInterface.h rename to Platformio/HAL/HardwareInterfaces/DisplayInterface.h diff --git a/Platformio/HAL/Interface/wifiHandlerInterface.h b/Platformio/HAL/HardwareInterfaces/wifiHandlerInterface.h similarity index 100% rename from Platformio/HAL/Interface/wifiHandlerInterface.h rename to Platformio/HAL/HardwareInterfaces/wifiHandlerInterface.h diff --git a/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp b/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp index a8d9003..2667f6c 100644 --- a/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp +++ b/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp @@ -1,7 +1,7 @@ #pragma once #include "SparkFunLIS3DH.h" -#include "HardwareInterface.h" +#include "HardwareAbstract.hpp" #include #include "Wire.h" #include "lvgl.h" diff --git a/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp b/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp index 55747fe..ecc73dd 100644 --- a/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp +++ b/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp @@ -1,5 +1,5 @@ #pragma once -#include "HardwareInterface.h" +#include "HardwareAbstract.hpp" #include #include diff --git a/Platformio/OmoteUI/OmoteUI.hpp b/Platformio/OmoteUI/OmoteUI.hpp index 9e8be0d..1e5f300 100644 --- a/Platformio/OmoteUI/OmoteUI.hpp +++ b/Platformio/OmoteUI/OmoteUI.hpp @@ -2,7 +2,7 @@ // 2023 Matthew Colvin #pragma once -#include "HardwareInterface.h" +#include "HardwareAbstract.hpp" #include "Images.hpp" #include "lvgl.h" #include diff --git a/Platformio/platformio.ini b/Platformio/platformio.ini index 8064ff5..fdd19ea 100644 --- a/Platformio/platformio.ini +++ b/Platformio/platformio.ini @@ -40,14 +40,14 @@ build_flags = ; ------------- Includes ------------------------------------ -I OmoteUI -I HAL - -I HAL/Interface + -I HAL/HardwareInterfaces lib_deps = lvgl/lvgl@^8.3.9 lib_archive = false build_src_filter = +<../OmoteUI/*> - +<../HAL/Interface/*> + +<../HAL/HardwareAbstract.cpp>