Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvanOrfanidi <i.orfanidi@thirdpin.io>2019-08-30 18:18:34 +0300
committerIvanOrfanidi <i.orfanidi@thirdpin.io>2019-08-30 18:18:34 +0300
commitfa1e7245064de0ac1cff3570cb87cf8e3db2ed97 (patch)
tree0b873624899c1e6812b7ad2d4a2937483610d0c9
parent8da206bb5556d35d0c90b88b380e74801b4049fd (diff)
Added method to get Counter start status.feature/systick
-rw-r--r--cm3cpp_systick.cpp5
-rw-r--r--cm3cpp_systick.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/cm3cpp_systick.cpp b/cm3cpp_systick.cpp
index 3aca667..23b1fb1 100644
--- a/cm3cpp_systick.cpp
+++ b/cm3cpp_systick.cpp
@@ -168,6 +168,11 @@ bool Counter::stop()
return true;
}
+bool Counter::is_active() const
+{
+ return _is_active;
+}
+
} // namespace systick
} // namespace cm3cpp
diff --git a/cm3cpp_systick.h b/cm3cpp_systick.h
index 91ae5ae..8635c71 100644
--- a/cm3cpp_systick.h
+++ b/cm3cpp_systick.h
@@ -56,6 +56,7 @@ class Counter
bool timeout();
bool start();
bool stop();
+ bool is_active() const;
void set_period(uint32_t const period) { _period = period; }
uint32_t period() const { return _period; }