From 9633359db369a2da387144fc30bc9fcc14f9c8d9 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 22 Feb 2023 15:46:03 +0100 Subject: [PATCH] spi RTD Polling dummy --- dummies/RtdPollingDummy.cpp | 3 +++ dummies/RtdPollingDummy.h | 11 +++++++++++ dummies/helpers.cpp | 2 ++ fsfw | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 dummies/RtdPollingDummy.cpp create mode 100644 dummies/RtdPollingDummy.h diff --git a/dummies/RtdPollingDummy.cpp b/dummies/RtdPollingDummy.cpp new file mode 100644 index 00000000..f1cd1155 --- /dev/null +++ b/dummies/RtdPollingDummy.cpp @@ -0,0 +1,3 @@ +#include "RtdPollingDummy.h" + +RtdPollingDummy::RtdPollingDummy(object_id_t objectId): SystemObject(objectId) {} diff --git a/dummies/RtdPollingDummy.h b/dummies/RtdPollingDummy.h new file mode 100644 index 00000000..0228123b --- /dev/null +++ b/dummies/RtdPollingDummy.h @@ -0,0 +1,11 @@ +#ifndef DUMMIES_RTDPOLLINGDUMMY_H_ +#define DUMMIES_RTDPOLLINGDUMMY_H_ + +#include + +class RtdPollingDummy: public SystemObject { +public: + RtdPollingDummy(object_id_t objectId); +}; + +#endif /* DUMMIES_RTDPOLLINGDUMMY_H_ */ diff --git a/dummies/helpers.cpp b/dummies/helpers.cpp index a5b84451..e6faab32 100644 --- a/dummies/helpers.cpp +++ b/dummies/helpers.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -192,6 +193,7 @@ void dummy::createDummies(DummyCfg cfg, PowerSwitchIF& pwrSwitcher, GpioIF* gpio objects::TMP1075_HANDLER_IF_BOARD, new Tmp1075Dummy(objects::TMP1075_HANDLER_IF_BOARD, objects::DUMMY_COM_IF, comCookieDummy)); + new RtdPollingDummy(objects::SPI_RTD_COM_IF); new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER, rtdSensorDummies, tmpSensorDummies); TcsBoardAssembly* tcsBoardAssy = ObjectFactory::createTcsBoardAssy(pwrSwitcher); diff --git a/fsfw b/fsfw index 206af00c..d373c45d 160000 --- a/fsfw +++ b/fsfw @@ -1 +1 @@ -Subproject commit 206af00c8bc7edbae6ac8c12fd8c17f38b55d911 +Subproject commit d373c45d36ef1c817e1a849afd91dbd81bdb5e32