Skip to content

Commit

Permalink
platfoms: chibios: wait: only define the frequency (qmk#21115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 authored and thismarvin committed Sep 27, 2023
1 parent 58e98fa commit d013d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/chibios/wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d013d8f

Please sign in to comment.