diff options
-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; |