From a1de326ac5d89cbf9555c9a0a9a662af35c6dcf7 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 15 Jun 2023 22:58:30 +0100 Subject: Implement a countdown clock in the timer Updated the HUD to show the time. --- src/timer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/timer.h') 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 */ -- cgit v1.2.3