summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/timer.h')
-rw-r--r--stmhal/timer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/stmhal/timer.h b/stmhal/timer.h
new file mode 100644
index 0000000000..317b39b3f7
--- /dev/null
+++ b/stmhal/timer.h
@@ -0,0 +1,10 @@
+// Periodically, the state of the buffer "UserTxBuffer" is checked.
+// The period depends on USBD_CDC_POLLING_INTERVAL
+// The value is in ms. The max is 65 and the min is 1.
+#define USBD_CDC_POLLING_INTERVAL (10)
+
+extern TIM_HandleTypeDef TIM3_Handle;
+extern TIM_HandleTypeDef TIM5_Handle;
+
+void timer_tim3_init(void);
+void timer_tim5_init(void);