diff options
author | Keith Packard <keithp@keithp.com> | 2016-04-05 23:45:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-04-19 23:21:30 -0400 |
commit | 70e46100acf597014ce54cf3b642254ce1cba59b (patch) | |
tree | 361824076b35ac39ae3d427a2a2b0127753a238f /src/drivers/ao_event.h | |
parent | aef5049cf8311927fada922730f85f31c8ddf177 (diff) |
altos/telelcotwo: Add idle timeout
Puts TeleLCOTwo in a low power state (drawing about 80µA) after a
timeout (default two minutes) to keep from killing the battery if the
device is left turned on.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_event.h')
-rw-r--r-- | src/drivers/ao_event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/ao_event.h b/src/drivers/ao_event.h index 584a845a..ea89da23 100644 --- a/src/drivers/ao_event.h +++ b/src/drivers/ao_event.h @@ -32,6 +32,9 @@ struct ao_event { 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, int32_t value); |