summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp/driver
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-23 13:35:02 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-23 13:35:02 +0200
commitd4f38c14cd22131ba20e3ff5d30fcc43c6fc5b2f (patch)
tree4311baee825019bad488b32f97837449c31e9c85 /include/arch/msp430fr5994lp/driver
parentc03bff934c656cf0d0d986cee75f002aeab5634e (diff)
use 16bit uint for msp430fr overflow counter
Diffstat (limited to 'include/arch/msp430fr5994lp/driver')
-rw-r--r--include/arch/msp430fr5994lp/driver/counter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h
index 1d7800a..429de39 100644
--- a/include/arch/msp430fr5994lp/driver/counter.h
+++ b/include/arch/msp430fr5994lp/driver/counter.h
@@ -5,7 +5,7 @@
#include <stdint.h>
typedef uint16_t counter_value_t;
-typedef uint8_t counter_overflow_t;
+typedef uint16_t counter_overflow_t;
class Counter {
private:
@@ -13,7 +13,7 @@ class Counter {
public:
uint16_t value;
- volatile uint8_t overflow;
+ volatile uint16_t overflow;
Counter() : overflow(0) {}