From 230721cd6271f3239b42e1d2471f8db15bebd712 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 24 Nov 2023 07:18:14 +1100 Subject: Periodically check int lines instead of relying on interrupts --- src/drivers/include/gpios.hpp | 5 +---- src/drivers/include/samd.hpp | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/drivers/include') diff --git a/src/drivers/include/gpios.hpp b/src/drivers/include/gpios.hpp index 18f71551..1755da92 100644 --- a/src/drivers/include/gpios.hpp +++ b/src/drivers/include/gpios.hpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -108,8 +109,6 @@ class Gpios : public IGpios { */ auto Read(void) -> bool; - static auto CreateReadPending() -> SemaphoreHandle_t; - // Not copyable or movable. There should usually only ever be once instance // of this class, and that instance will likely have a static lifetime. Gpios(const Gpios&) = delete; @@ -120,8 +119,6 @@ class Gpios : public IGpios { std::atomic ports_; std::atomic inputs_; - - static SemaphoreHandle_t sReadPending; }; } // namespace drivers diff --git a/src/drivers/include/samd.hpp b/src/drivers/include/samd.hpp index 2640eb8b..d9f1ca48 100644 --- a/src/drivers/include/samd.hpp +++ b/src/drivers/include/samd.hpp @@ -54,8 +54,6 @@ class Samd { auto ResetToFlashSamd() -> void; auto PowerDown() -> void; - static auto CreateReadPending() -> SemaphoreHandle_t; - // Not copyable or movable. There should usually only ever be once instance // of this class, and that instance will likely have a static lifetime. Samd(const Samd&) = delete; @@ -64,8 +62,6 @@ class Samd { private: std::optional charge_status_; UsbStatus usb_status_; - - static SemaphoreHandle_t sReadPending; }; } // namespace drivers -- cgit v1.2.3