X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_event.h;h=d1df6eac4e59d7788721eb4a02814f093eb53dc9;hb=refs%2Fheads%2Fmaster;hp=d1c69d81b2761d86106200af90c63f7f31ca6b12;hpb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;p=fw%2Faltos diff --git a/src/drivers/ao_event.h b/src/drivers/ao_event.h index d1c69d81..d3d23bd3 100644 --- a/src/drivers/ao_event.h +++ b/src/drivers/ao_event.h @@ -22,11 +22,12 @@ #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);