forked from FreeRTOS/FreeRTOS-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set SysTick CLKSOURCE bit before enabling SysTick
- Loading branch information
1 parent
aa987a3
commit a4070ec
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a4070ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulbartell This change really is all that is required to address the old QEMU issue. Even with tickless idle enabled. No changes are required in
vPortSuppressTicksAndSleep()
because it never clears the CLKSOURCE bit (unless the build configuration indicates the CLKSOURCE bit should be clear). If we never clear the CLKSOURCE bit, we can't run into the QEMU issue.The new code comment could use a little work though.