diff options
author | Lisin Dmitriy <d.lisin@thirdpin.ru> | 2019-04-25 14:39:21 +0300 |
---|---|---|
committer | Lisin Dmitriy <d.lisin@thirdpin.ru> | 2019-04-25 14:39:21 +0300 |
commit | 63536a47aabfcfe229a3855a44dd540c201d9603 (patch) | |
tree | 368055b80126bbba7b60b16274270270a2875edc | |
parent | 936c91d27fdeed2cd8aa554aef9d82e03289dd08 (diff) |
Add setter/getter for systick Counter period
-rw-r--r-- | cm3cpp_systick.h | 3 |
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; |