From 00c6f5ea40f97385dce7ab7b9d20bc0cb909ad23 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 6 Oct 2007 09:53:07 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@40 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/Win32-MSVS/chcore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demos/Win32-MSVS/chcore.c') diff --git a/demos/Win32-MSVS/chcore.c b/demos/Win32-MSVS/chcore.c index bb038a4d6..80fd11424 100644 --- a/demos/Win32-MSVS/chcore.c +++ b/demos/Win32-MSVS/chcore.c @@ -35,7 +35,7 @@ void InitCore(void) { printf("QueryPerformanceFrequency() error"); exit(1); } - printf("Core Frequency %d Hz\n", slice.LowPart); + printf("Core Frequency %u Hz\n", slice.LowPart); slice.QuadPart /= CH_FREQUENCY; QueryPerformanceCounter(&nextcnt); nextcnt.QuadPart += slice.QuadPart; @@ -69,6 +69,8 @@ static void ChkIntSources(void) { void __fastcall chSysPause(void) { + chThdSetPriority(IDLEPRIO); + while (TRUE) { ChkIntSources(); -- cgit v1.2.3