Commit d244dbee authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

msp430 counter: Switch to new API

parent 39c7c52c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
		}
};