summaryrefslogtreecommitdiff
path: root/src/drivers/ao_event.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-13 22:34:19 -0700
committerKeith Packard <keithp@keithp.com>2013-06-09 12:14:11 -0700
commit72b6c699d355fcd41addb9919d846e63105b9db7 (patch)
treee80c32df0eaa776db2b01eccc91bbba15b8d2499 /src/drivers/ao_event.h
parent47b7e1d819e48aaebf6ffda49effbee041ce8750 (diff)
altos: Add debounce helper. Use in button and quadrature drivers for TeleLCO
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_event.h')
-rw-r--r--src/drivers/ao_event.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/ao_event.h b/src/drivers/ao_event.h
index 25c49c35..ed9a7433 100644
--- a/src/drivers/ao_event.h
+++ b/src/drivers/ao_event.h
@@ -26,16 +26,16 @@ struct ao_event {
uint8_t type;
uint8_t unit;
uint16_t tick;
- uint32_t value;
+ int32_t value;
};
uint8_t
ao_event_get(struct ao_event *ev);
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_ */