summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arch/msp430fr5969lp/driver/counter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/arch/msp430fr5969lp/driver/counter.h b/include/arch/msp430fr5969lp/driver/counter.h
index 851c32d..e7f0507 100644
--- a/include/arch/msp430fr5969lp/driver/counter.h
+++ b/include/arch/msp430fr5969lp/driver/counter.h
@@ -6,6 +6,7 @@ class Counter {
Counter(const Counter &copy);
public:
+ uint16_t value;
uint8_t overflowed;
Counter() : overflowed(0) {}
@@ -17,9 +18,9 @@ class Counter {
TA2CTL |= TACLR;
}
- inline uint16_t stop() {
+ inline void stop() {
TA2CTL = 0;
- return TA2R;
+ value = TA2R;
}
};