From 307cfe164910eccc70c086c083595d637c7fb987 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 19 Nov 2011 20:02:14 +0100 Subject: Moved driver related files to a subdirectory. --- drivers/ppmsum.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 drivers/ppmsum.h (limited to 'drivers/ppmsum.h') diff --git a/drivers/ppmsum.h b/drivers/ppmsum.h new file mode 100644 index 0000000..90bb860 --- /dev/null +++ b/drivers/ppmsum.h @@ -0,0 +1,29 @@ +#ifndef PPMSUM_H +#define PPMSUM_H + +#include +#include "interrupt.h" + +class PPMSum { + friend void interrupt(); + friend void interrupt(); + + private: + static PPMSum* self; + + uint8_t index; + + void irq(); + + public: + PPMSum() { + self = this; + } + + bool synced; + uint16_t channels[16]; + + void enable(); +}; + +#endif -- cgit v1.2.3