first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / drivers / ao_event.h
index d1c69d81b2761d86106200af90c63f7f31ca6b12..d3d23bd3be92aee61dad8382d000219af7660ef8 100644 (file)
 #define AO_EVENT_NONE          0
 #define AO_EVENT_QUADRATURE    1
 #define AO_EVENT_BUTTON                2
+#define AO_EVENT_KEY           3
 
 struct ao_event {
        uint8_t         type;
        uint8_t         unit;
-       uint16_t        tick;
+       AO_TICK_TYPE    tick;
        int32_t         value;
 };
 
@@ -34,7 +35,7 @@ void
 ao_event_get(struct ao_event *ev);
 
 uint8_t
-ao_event_get_for(struct ao_event *ev, uint16_t timeout);
+ao_event_get_for(struct ao_event *ev, AO_TICK_TYPE timeout);
 
 void
 ao_event_put_isr(uint8_t type, uint8_t unit, int32_t value);