diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-15 22:58:30 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-15 22:58:30 +0100 |
commit | a1de326ac5d89cbf9555c9a0a9a662af35c6dcf7 (patch) | |
tree | ffe56e86be4acefcee8b89753cf31f7a8c1db20d /src/timer.h | |
parent | 07e829e591394fa182e75ecab86051f1fb850ce7 (diff) | |
download | gold-mine-run-a1de326ac5d89cbf9555c9a0a9a662af35c6dcf7.tar.gz gold-mine-run-a1de326ac5d89cbf9555c9a0a9a662af35c6dcf7.zip |
Implement a countdown clock in the timer
Updated the HUD to show the time.
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/timer.h b/src/timer.h index 8ae7e60..3f66be5 100644 --- a/src/timer.h +++ b/src/timer.h @@ -7,7 +7,10 @@ extern volatile uint32_t ticks; void timer_init(); void timer_free(); -/* each t is 54.9254 ms */ -void timer_wait(uint8_t t); +/* countdown clock */ +void timer_start(uint8_t secs, uint8_t *updated); +uint8_t timer_value(); +void timer_stop(); +void timer_resume(); #endif /* _TIMER_H */ |