X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_event.h;h=ea89da23c07cef3598c4159c5792fae4d376cbda;hb=a04830a636a71808ea8ef5ac5dfa59d6978d9f3b;hp=25c49c3574b7f0f629d9deeef7b6eaaa5c125bf1;hpb=583458772746317b98fced907ec780edff465888;p=fw%2Faltos diff --git a/src/drivers/ao_event.h b/src/drivers/ao_event.h index 25c49c35..ea89da23 100644 --- a/src/drivers/ao_event.h +++ b/src/drivers/ao_event.h @@ -26,16 +26,19 @@ struct ao_event { uint8_t type; uint8_t unit; uint16_t tick; - uint32_t value; + int32_t value; }; -uint8_t +void ao_event_get(struct ao_event *ev); +uint8_t +ao_event_get_for(struct ao_event *ev, uint16_t timeout); + void -ao_event_put_isr(uint8_t type, uint8_t unit, uint32_t value); +ao_event_put_isr(uint8_t type, uint8_t unit, int32_t value); void -ao_event_put(uint8_t type, uint8_t unit, uint32_t value); +ao_event_put(uint8_t type, uint8_t unit, int32_t value); #endif /* _AO_EVENT_H_ */