mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-09-20 17:45:01 +08:00
Update the Eclipse/MingW project to account for the new Win32 simulator port layer (which has better timing).
This commit is contained in:
+257
-254
File diff suppressed because it is too large
Load Diff
@@ -73,7 +73,7 @@
|
||||
* executed from within the IDE! Once it has been executed, re-open or refresh
|
||||
* the Eclipse project and remove the #error line below.
|
||||
*/
|
||||
#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
|
||||
//#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
* Application specific definitions.
|
||||
@@ -88,7 +88,7 @@
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configUSE_IDLE_HOOK 1
|
||||
#define configUSE_TICK_HOOK 0
|
||||
#define configTICK_RATE_HZ ( 50 ) /* In this non-real time simulated environment the tick frequency has to be at least a multiple of the Win32 tick frequency, and therefore very slow. */
|
||||
#define configTICK_RATE_HZ ( 1000 ) /* Note true real time behaviour cannot be achieved in this simulated environment. */
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 20 ) /* In this simulated case, the stack only has to hold one small structure as the real stack is part of the win32 thread. */
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) 0 ) /* This parameter has no effect when heap_3.c is included in the project. */
|
||||
#define configMAX_TASK_NAME_LEN ( 12 )
|
||||
|
||||
@@ -153,7 +153,7 @@ int main( void )
|
||||
static void prvCheckTask( void *pvParameters )
|
||||
{
|
||||
portTickType xNextWakeTime;
|
||||
const portTickType xCycleFrequency = 5000 / portTICK_RATE_MS;
|
||||
const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
|
||||
char *pcStatusMessage = "OK";
|
||||
|
||||
/* Just to remove compiler warning. */
|
||||
|
||||
Reference in New Issue
Block a user