4 errors

Dependencies:   KS0108_PCF8574 mbed

Committer:
GuiTwo
Date:
Tue Sep 11 10:21:10 2012 +0000
Revision:
3:ec80bb6ff5da
Parent:
0:936f1c020120
4 errors on vector .cc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GuiTwo 0:936f1c020120 1 #ifndef _MENBEDBUTTONHANDLER_H_
GuiTwo 0:936f1c020120 2 #define _MENBEDBUTTONHANDLER_H_
GuiTwo 0:936f1c020120 3
GuiTwo 0:936f1c020120 4 #include "mbed.h"
GuiTwo 0:936f1c020120 5 #include "menbedNavigator.h"
GuiTwo 0:936f1c020120 6 #include "menbedButtonHandlerTimespec.h"
GuiTwo 0:936f1c020120 7
GuiTwo 0:936f1c020120 8 class MenbedButtonHandler {
GuiTwo 0:936f1c020120 9 public:
GuiTwo 0:936f1c020120 10 MenbedButtonHandler(PinName selectPin, PinName downPin, PinName upPin, PinName cancelPin,
GuiTwo 0:936f1c020120 11 MenbedButtonHandlerTimespec *timespec, MenbedNavigator *navigator);
GuiTwo 0:936f1c020120 12 MenbedButtonHandler(PinName selectPin, PinName downPin, PinName upPin,
GuiTwo 0:936f1c020120 13 MenbedButtonHandlerTimespec *timespec, MenbedNavigator *navigator);
GuiTwo 0:936f1c020120 14 MenbedButtonHandler(PinName selectPin, PinName downPin,
GuiTwo 0:936f1c020120 15 MenbedButtonHandlerTimespec *timespec, MenbedNavigator *navigator);
GuiTwo 0:936f1c020120 16
GuiTwo 0:936f1c020120 17 protected:
GuiTwo 0:936f1c020120 18 DigitalIn *select, *down, *up, *cancel;
GuiTwo 0:936f1c020120 19 MenbedButtonHandlerTimespec *timespec;
GuiTwo 0:936f1c020120 20 MenbedNavigator *navigator;
GuiTwo 0:936f1c020120 21
GuiTwo 0:936f1c020120 22 Ticker ticker;
GuiTwo 0:936f1c020120 23 uint32_t tickerPeriod_us;
GuiTwo 0:936f1c020120 24 uint32_t currentTime_us;
GuiTwo 0:936f1c020120 25
GuiTwo 0:936f1c020120 26 int numButtons;
GuiTwo 0:936f1c020120 27
GuiTwo 0:936f1c020120 28 uint32_t buttonPushedTime_us[4]; // Absolute time button first depressed
GuiTwo 0:936f1c020120 29 bool buttonDebounced[4]; // Keep track of which buttons are debounced
GuiTwo 0:936f1c020120 30 uint32_t buttonLastTypematicTime_us[4]; // Abs. time of last virtual push
GuiTwo 0:936f1c020120 31 bool buttonAlreadyDepressed[4]; // Keep track of state b/t calls to tick()
GuiTwo 0:936f1c020120 32
GuiTwo 0:936f1c020120 33 void init (void);
GuiTwo 0:936f1c020120 34 void tick (void);
GuiTwo 0:936f1c020120 35 bool isButtonDepressed (MenbedButtonEvent::ButtonName);
GuiTwo 0:936f1c020120 36 };
GuiTwo 0:936f1c020120 37
GuiTwo 0:936f1c020120 38 #endif /* _MENBEDBUTTONHANDLER_H_ */