diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-06 21:44:15 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-06 21:44:15 +0100 |
commit | ba9fabf3367047a4e5db841ce8e73ef01d3f557c (patch) | |
tree | a4d57aeddd886ba50cfe294b6cb26d7836df251d /src/timer.h | |
parent | 7ee199c7ccd524bd92b1e2b3787a41e6e2b6a579 (diff) | |
download | gold-mine-run-ba9fabf3367047a4e5db841ce8e73ef01d3f557c.tar.gz gold-mine-run-ba9fabf3367047a4e5db841ce8e73ef01d3f557c.zip |
Add timer wait
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h index 22ef6d2..8ae7e60 100644 --- a/src/timer.h +++ b/src/timer.h @@ -1,9 +1,13 @@ #ifndef _TIMER_H #define _TIMER_H +/* updates 18.2 times per second */ extern volatile uint32_t ticks; void timer_init(); void timer_free(); +/* each t is 54.9254 ms */ +void timer_wait(uint8_t t); + #endif /* _TIMER_H */ |