Update the main Win32 MSVC demo to account for the changes to the Win32 port layer (more accurate timing).

This commit is contained in:
Richard Barry 2013-10-29 11:14:54 +00:00
parent aa9ec31ba9
commit 15d10ce094
3 changed files with 14 additions and 17 deletions

View file

@ -80,11 +80,10 @@
* application. It is provided as a convenient development and demonstration * application. It is provided as a convenient development and demonstration
* test bed only. This was tested using Windows XP on a dual core laptop. * test bed only. This was tested using Windows XP on a dual core laptop.
* *
* In this example, one simulated millisecond will take approximately 40ms to * Windows will not be running the FreeRTOS simulator threads continuously, so
* execute, and Windows will not be running the FreeRTOS simulator threads * the timing information in the FreeRTOS+Trace logs have no meaningful units.
* continuously, so the timing information in the FreeRTOS+Trace logs have no * See the documentation page for the Windows simulator for an explanation of
* meaningful units. See the documentation page for the Windows simulator for * the slow timing:
* an explanation of the slow timing:
* http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html * http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html
* - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT - * - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -
******************************************************************************* *******************************************************************************
@ -106,7 +105,7 @@ mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is used to select between the two.
The simply blinky demo is implemented and described in main_blinky.c. The more The simply blinky demo is implemented and described in main_blinky.c. The more
comprehensive test and demo application is implemented and described in comprehensive test and demo application is implemented and described in
main_full.c. */ main_full.c. */
#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 1 #define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 0
/* /*
* main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1. * main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.

View file

@ -69,11 +69,10 @@
* application. It is provided as a convenient development and demonstration * application. It is provided as a convenient development and demonstration
* test bed only. This was tested using Windows XP on a dual core laptop. * test bed only. This was tested using Windows XP on a dual core laptop.
* *
* In this example, one simulated millisecond will take approximately 40ms to * Windows will not be running the FreeRTOS simulator threads continuously, so
* execute, and Windows will not be running the FreeRTOS simulator threads * the timing information in the FreeRTOS+Trace logs have no meaningful units.
* continuously, so the timing information in the FreeRTOS+Trace logs have no * See the documentation page for the Windows simulator for an explanation of
* meaningful units. See the documentation page for the Windows simulator for * the slow timing:
* an explanation of the slow timing:
* http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html * http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html
* - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT - * - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -
* *

View file

@ -70,11 +70,10 @@
* application. It is provided as a convenient development and demonstration * application. It is provided as a convenient development and demonstration
* test bed only. This was tested using Windows XP on a dual core laptop. * test bed only. This was tested using Windows XP on a dual core laptop.
* *
* In this example, one simulated millisecond will take approximately 40ms to * Windows will not be running the FreeRTOS simulator threads continuously, so
* execute, and Windows will not be running the FreeRTOS simulator threads * the timing information in the FreeRTOS+Trace logs have no meaningful units.
* continuously, so the timing information in the FreeRTOS+Trace logs have no * See the documentation page for the Windows simulator for an explanation of
* meaningful units. See the documentation page for the Windows simulator for * the slow timing:
* an explanation of the slow timing:
* http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html * http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html
* - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT - * - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -
* *
@ -221,7 +220,7 @@ int main_full( void )
static void prvCheckTask( void *pvParameters ) static void prvCheckTask( void *pvParameters )
{ {
portTickType xNextWakeTime; portTickType xNextWakeTime;
const portTickType xCycleFrequency = 1000 / portTICK_RATE_MS; const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
/* Just to remove compiler warning. */ /* Just to remove compiler warning. */
( void ) pvParameters; ( void ) pvParameters;