platfoms: chibios: wait: only define the frequency (#21115)

This commit is contained in:
dexter93 2023-06-03 00:41:05 +03:00 committed by GitHub
parent ef788c68f4
commit 27120f2fb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;