From 1aa413c9b85e6de25f78c44f3317457e9f112cd6 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 13 Oct 2021 08:26:27 +0200 Subject: [PATCH 1/2] Moving multi-threading related source files to sub-folder 'threading' --- src/Arduino_Threads.h | 6 +++--- src/{ => threading}/Shared.hpp | 0 src/{ => threading}/Sink.hpp | 0 src/{ => threading}/Source.hpp | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => threading}/Shared.hpp (100%) rename src/{ => threading}/Sink.hpp (100%) rename src/{ => threading}/Source.hpp (100%) diff --git a/src/Arduino_Threads.h b/src/Arduino_Threads.h index cb522c5..8ae8b44 100644 --- a/src/Arduino_Threads.h +++ b/src/Arduino_Threads.h @@ -26,9 +26,9 @@ #include #include -#include "Sink.hpp" -#include "Source.hpp" -#include "Shared.hpp" +#include "threading/Sink.hpp" +#include "threading/Source.hpp" +#include "threading/Shared.hpp" #include "BusDevice.h" #include "spi/SpiBusDevice.h" diff --git a/src/Shared.hpp b/src/threading/Shared.hpp similarity index 100% rename from src/Shared.hpp rename to src/threading/Shared.hpp diff --git a/src/Sink.hpp b/src/threading/Sink.hpp similarity index 100% rename from src/Sink.hpp rename to src/threading/Sink.hpp diff --git a/src/Source.hpp b/src/threading/Source.hpp similarity index 100% rename from src/Source.hpp rename to src/threading/Source.hpp From c4a5429939df48c2a83bee79c64e71618c22c6dd Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 13 Oct 2021 08:28:07 +0200 Subject: [PATCH 2/2] Moving all io related source files into sub-folder 'io' --- src/Arduino_Threads.h | 8 ++++---- src/{ => io}/BusDevice.cpp | 0 src/{ => io}/BusDevice.h | 0 src/{ => io}/IoTransaction.h | 0 src/{ => io}/serial/SerialDispatcher.cpp | 0 src/{ => io}/serial/SerialDispatcher.h | 0 src/{ => io}/spi/SpiBusDevice.cpp | 0 src/{ => io}/spi/SpiBusDevice.h | 0 src/{ => io}/spi/SpiBusDeviceConfig.h | 0 src/{ => io}/spi/SpiDispatcher.cpp | 0 src/{ => io}/spi/SpiDispatcher.h | 0 src/{ => io}/wire/WireBusDevice.cpp | 0 src/{ => io}/wire/WireBusDevice.h | 0 src/{ => io}/wire/WireBusDeviceConfig.h | 0 src/{ => io}/wire/WireDispatcher.cpp | 0 src/{ => io}/wire/WireDispatcher.h | 0 16 files changed, 4 insertions(+), 4 deletions(-) rename src/{ => io}/BusDevice.cpp (100%) rename src/{ => io}/BusDevice.h (100%) rename src/{ => io}/IoTransaction.h (100%) rename src/{ => io}/serial/SerialDispatcher.cpp (100%) rename src/{ => io}/serial/SerialDispatcher.h (100%) rename src/{ => io}/spi/SpiBusDevice.cpp (100%) rename src/{ => io}/spi/SpiBusDevice.h (100%) rename src/{ => io}/spi/SpiBusDeviceConfig.h (100%) rename src/{ => io}/spi/SpiDispatcher.cpp (100%) rename src/{ => io}/spi/SpiDispatcher.h (100%) rename src/{ => io}/wire/WireBusDevice.cpp (100%) rename src/{ => io}/wire/WireBusDevice.h (100%) rename src/{ => io}/wire/WireBusDeviceConfig.h (100%) rename src/{ => io}/wire/WireDispatcher.cpp (100%) rename src/{ => io}/wire/WireDispatcher.h (100%) diff --git a/src/Arduino_Threads.h b/src/Arduino_Threads.h index 8ae8b44..685b09c 100644 --- a/src/Arduino_Threads.h +++ b/src/Arduino_Threads.h @@ -30,10 +30,10 @@ #include "threading/Source.hpp" #include "threading/Shared.hpp" -#include "BusDevice.h" -#include "spi/SpiBusDevice.h" -#include "wire/WireBusDevice.h" -#include "serial/SerialDispatcher.h" +#include "io/BusDevice.h" +#include "io/spi/SpiBusDevice.h" +#include "io/wire/WireBusDevice.h" +#include "io/serial/SerialDispatcher.h" /************************************************************************************** * DEFINE diff --git a/src/BusDevice.cpp b/src/io/BusDevice.cpp similarity index 100% rename from src/BusDevice.cpp rename to src/io/BusDevice.cpp diff --git a/src/BusDevice.h b/src/io/BusDevice.h similarity index 100% rename from src/BusDevice.h rename to src/io/BusDevice.h diff --git a/src/IoTransaction.h b/src/io/IoTransaction.h similarity index 100% rename from src/IoTransaction.h rename to src/io/IoTransaction.h diff --git a/src/serial/SerialDispatcher.cpp b/src/io/serial/SerialDispatcher.cpp similarity index 100% rename from src/serial/SerialDispatcher.cpp rename to src/io/serial/SerialDispatcher.cpp diff --git a/src/serial/SerialDispatcher.h b/src/io/serial/SerialDispatcher.h similarity index 100% rename from src/serial/SerialDispatcher.h rename to src/io/serial/SerialDispatcher.h diff --git a/src/spi/SpiBusDevice.cpp b/src/io/spi/SpiBusDevice.cpp similarity index 100% rename from src/spi/SpiBusDevice.cpp rename to src/io/spi/SpiBusDevice.cpp diff --git a/src/spi/SpiBusDevice.h b/src/io/spi/SpiBusDevice.h similarity index 100% rename from src/spi/SpiBusDevice.h rename to src/io/spi/SpiBusDevice.h diff --git a/src/spi/SpiBusDeviceConfig.h b/src/io/spi/SpiBusDeviceConfig.h similarity index 100% rename from src/spi/SpiBusDeviceConfig.h rename to src/io/spi/SpiBusDeviceConfig.h diff --git a/src/spi/SpiDispatcher.cpp b/src/io/spi/SpiDispatcher.cpp similarity index 100% rename from src/spi/SpiDispatcher.cpp rename to src/io/spi/SpiDispatcher.cpp diff --git a/src/spi/SpiDispatcher.h b/src/io/spi/SpiDispatcher.h similarity index 100% rename from src/spi/SpiDispatcher.h rename to src/io/spi/SpiDispatcher.h diff --git a/src/wire/WireBusDevice.cpp b/src/io/wire/WireBusDevice.cpp similarity index 100% rename from src/wire/WireBusDevice.cpp rename to src/io/wire/WireBusDevice.cpp diff --git a/src/wire/WireBusDevice.h b/src/io/wire/WireBusDevice.h similarity index 100% rename from src/wire/WireBusDevice.h rename to src/io/wire/WireBusDevice.h diff --git a/src/wire/WireBusDeviceConfig.h b/src/io/wire/WireBusDeviceConfig.h similarity index 100% rename from src/wire/WireBusDeviceConfig.h rename to src/io/wire/WireBusDeviceConfig.h diff --git a/src/wire/WireDispatcher.cpp b/src/io/wire/WireDispatcher.cpp similarity index 100% rename from src/wire/WireDispatcher.cpp rename to src/io/wire/WireDispatcher.cpp diff --git a/src/wire/WireDispatcher.h b/src/io/wire/WireDispatcher.h similarity index 100% rename from src/wire/WireDispatcher.h rename to src/io/wire/WireDispatcher.h