aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Win32-MinGW/chcore.c')
-rw-r--r--demos/Win32-MinGW/chcore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/Win32-MinGW/chcore.c b/demos/Win32-MinGW/chcore.c
index 77195c44c..4f677b929 100644
--- a/demos/Win32-MinGW/chcore.c
+++ b/demos/Win32-MinGW/chcore.c
@@ -58,7 +58,7 @@ void InitCore(void) {
printf("QueryPerformanceFrequency() error");
exit(1);
}
- printf("Core Frequency %d Hz\n", (int)slice.LowPart);
+ printf("Core Frequency %u Hz\n", (int)slice.LowPart);
slice.QuadPart /= CH_FREQUENCY;
QueryPerformanceCounter(&nextcnt);
nextcnt.QuadPart += slice.QuadPart;
@@ -92,6 +92,8 @@ static void ChkIntSources(void) {
__attribute__((fastcall)) void chSysPause(void) {
+ chThdSetPriority(IDLEPRIO);
+
while (TRUE) {
ChkIntSources();