summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-05 15:42:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-05 15:42:41 +0100
commit32b799a03cf07de504a77b19432dc523166f472b (patch)
tree7461a1476ade1bfcd68a4236de35167dd402b0f4 /include/arch/msp430fr5994lp
parentbda22fb5f8c9267943b9653031d279fe14edcd2a (diff)
counter: rename overflowed to overflow
Diffstat (limited to 'include/arch/msp430fr5994lp')
-rw-r--r--include/arch/msp430fr5994lp/driver/counter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h
index 21c5ec5..61f0ec1 100644
--- a/include/arch/msp430fr5994lp/driver/counter.h
+++ b/include/arch/msp430fr5994lp/driver/counter.h
@@ -2,7 +2,7 @@
#include <stdint.h>
typedef uint16_t counter_value_t;
-typedef uint8_t counter_overflowed_t;
+typedef uint8_t counter_overflow_t;
class Counter {
private:
@@ -10,12 +10,12 @@ class Counter {
public:
uint16_t value;
- uint8_t overflowed;
+ uint8_t overflow;
- Counter() : overflowed(0) {}
+ Counter() : overflow(0) {}
inline void start() {
- overflowed = 0;
+ overflow = 0;
TA2CTL = TASSEL__SMCLK | ID__1 | MC__CONTINUOUS;
TA2EX0 = 0;
TA2CTL |= TACLR;