summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordexter93 <d3xter93@gmail.com>2023-06-03 00:41:05 +0300
committerGitHub <noreply@github.com>2023-06-02 14:41:05 -0700
commit27120f2fb6cc32a1a544c2d26decce8facac9740 (patch)
tree0ec4d0ed3217cda3f1ec270189ccf464fbdfe0f0
parentef788c68f4f5c40301f86d0f0c6f90d81dbb34d4 (diff)
platfoms: chibios: wait: only define the frequency (#21115)
-rw-r--r--platforms/chibios/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/wait.c b/platforms/chibios/wait.c
index 88cb5e6d54..7fe6d477b8 100644
--- a/platforms/chibios/wait.c
+++ b/platforms/chibios/wait.c
@@ -21,7 +21,7 @@
#ifdef WAIT_US_TIMER
void wait_us(uint16_t duration) {
- static const GPTConfig gpt_cfg = {1000000, NULL, 0, 0}; /* 1MHz timer, no callback */
+ static const GPTConfig gpt_cfg = {.frequency = 1000000}; /* 1MHz timer, no callback */
if (duration == 0) {
duration = 1;