summaryrefslogtreecommitdiff
path: root/stm/systick.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm/systick.h')
-rw-r--r--stm/systick.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/stm/systick.h b/stm/systick.h
new file mode 100644
index 000000000..3f5beeccb
--- /dev/null
+++ b/stm/systick.h
@@ -0,0 +1,7 @@
+extern volatile uint32_t sys_tick_counter;
+
+void sys_tick_init();
+void SysTick_Handler();
+void sys_tick_delay_ms(uint32_t delay_ms);
+void sys_tick_wait_at_least(uint32_t stc, uint32_t delay_ms);
+bool sys_tick_has_passed(uint32_t stc, uint32_t delay_ms);