mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
micros fix // timer bug F3 targets
This solves the twitching issues on F3 targets
This commit is contained in:
parent
3b5d31fbbb
commit
c9c073b71a
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ uint32_t micros(void)
|
|||
do {
|
||||
ms = sysTickUptime;
|
||||
cycle_cnt = SysTick->VAL;
|
||||
asm volatile("\tnop\n");
|
||||
} while (ms != sysTickUptime);
|
||||
return (ms * 1000) + (usTicks * 1000 - cycle_cnt) / usTicks;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue