forked from epagris/FreeRTOS-Kernel
		
	Update the main Win32 MSVC demo to account for the changes to the Win32 port layer (more accurate timing).
This commit is contained in:
		
							parent
							
								
									aa9ec31ba9
								
							
						
					
					
						commit
						15d10ce094
					
				@ -80,11 +80,10 @@
 | 
			
		||||
 * application.  It is provided as a convenient development and demonstration
 | 
			
		||||
 * 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
 | 
			
		||||
 * execute, and Windows will not be running the FreeRTOS simulator threads
 | 
			
		||||
 * continuously, so the timing information in the FreeRTOS+Trace logs have no
 | 
			
		||||
 * meaningful units.  See the documentation page for the Windows simulator for
 | 
			
		||||
 * an explanation of the slow timing:
 | 
			
		||||
 * Windows will not be running the FreeRTOS simulator threads continuously, so 
 | 
			
		||||
 * the timing information in the FreeRTOS+Trace logs have no meaningful units.  
 | 
			
		||||
 * See the documentation page for the Windows simulator for an explanation of 
 | 
			
		||||
 * the slow timing:
 | 
			
		||||
 * 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 -
 | 
			
		||||
 *******************************************************************************
 | 
			
		||||
@ -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 
 | 
			
		||||
comprehensive test and demo application is implemented and described in 
 | 
			
		||||
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.
 | 
			
		||||
 | 
			
		||||
@ -69,11 +69,10 @@
 | 
			
		||||
 * application.  It is provided as a convenient development and demonstration
 | 
			
		||||
 * 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
 | 
			
		||||
 * execute, and Windows will not be running the FreeRTOS simulator threads
 | 
			
		||||
 * continuously, so the timing information in the FreeRTOS+Trace logs have no
 | 
			
		||||
 * meaningful units.  See the documentation page for the Windows simulator for
 | 
			
		||||
 * an explanation of the slow timing:
 | 
			
		||||
 * Windows will not be running the FreeRTOS simulator threads continuously, so 
 | 
			
		||||
 * the timing information in the FreeRTOS+Trace logs have no meaningful units.  
 | 
			
		||||
 * See the documentation page for the Windows simulator for an explanation of 
 | 
			
		||||
 * the slow timing:
 | 
			
		||||
 * 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 -
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
@ -70,11 +70,10 @@
 | 
			
		||||
 * application.  It is provided as a convenient development and demonstration
 | 
			
		||||
 * 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
 | 
			
		||||
 * execute, and Windows will not be running the FreeRTOS simulator threads
 | 
			
		||||
 * continuously, so the timing information in the FreeRTOS+Trace logs have no
 | 
			
		||||
 * meaningful units.  See the documentation page for the Windows simulator for
 | 
			
		||||
 * an explanation of the slow timing:
 | 
			
		||||
 * Windows will not be running the FreeRTOS simulator threads continuously, so 
 | 
			
		||||
 * the timing information in the FreeRTOS+Trace logs have no meaningful units.  
 | 
			
		||||
 * See the documentation page for the Windows simulator for an explanation of 
 | 
			
		||||
 * the slow timing:
 | 
			
		||||
 * 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 -
 | 
			
		||||
 *
 | 
			
		||||
@ -221,7 +220,7 @@ int main_full( void )
 | 
			
		||||
static void prvCheckTask( void *pvParameters )
 | 
			
		||||
{
 | 
			
		||||
portTickType xNextWakeTime;
 | 
			
		||||
const portTickType xCycleFrequency = 1000 / portTICK_RATE_MS;
 | 
			
		||||
const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
 | 
			
		||||
 | 
			
		||||
	/* Just to remove compiler warning. */
 | 
			
		||||
	( void ) pvParameters;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user