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:
authorLisin Dmitriy <d.lisin@thirdpin.ru>2019-04-25 14:39:21 +0300
committerLisin Dmitriy <d.lisin@thirdpin.ru>2019-04-25 14:39:21 +0300
commit63536a47aabfcfe229a3855a44dd540c201d9603 (patch)
tree368055b80126bbba7b60b16274270270a2875edc
parent936c91d27fdeed2cd8aa554aef9d82e03289dd08 (diff)
Add setter/getter for systick Counter period
-rw-r--r--cm3cpp_systick.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cm3cpp_systick.h b/cm3cpp_systick.h
index 1e73523..54b06c1 100644
--- a/cm3cpp_systick.h
+++ b/cm3cpp_systick.h
@@ -56,6 +56,9 @@ class Counter
bool start();
bool stop();
+ void set_period(uint32_t const period) { _period = period; }
+ uint32_t period() const { return _period; }
+
private:
uint32_t _saved;
uint32_t _period;