joe carter
/
nitrocarproject
h_and_c_files/Counter.h
- Committer:
- joe
- Date:
- 2010-08-20
- Revision:
- 0:960b355eaa84
File content as of revision 0:960b355eaa84:
#ifndef _COUNTER__H_ #define _COUNTER__H_ #include "mbed.h" class Counter { public: Counter(PinName pin); void rising(void); int read(void); void reset(void); private: InterruptIn _interrupt; volatile int _count; }; #endif