Newer
Older
#include <msp430.h>
#include <stdint.h>
typedef uint16_t counter_value_t;
typedef uint8_t counter_overflow_t;
class Counter {
private:
Counter(const Counter ©);
public:
uint16_t value;
Counter() : overflow(0) {}
inline void start() {