]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main.c
Prepare for V9.0.0 release:
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main.c
index 8b3fdf00b6d093da93a47529963fd10fb0c44a11..effbafd51c20e066c3b17109c0b716a2b75c68e9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V9.0.0rc1 - Copyright (C) 2016 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -154,8 +154,8 @@ void vApplicationMallocFailedHook( void );
 void vApplicationIdleHook( void );\r
 void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );\r
 void vApplicationTickHook( void );\r
-void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint16_t *pusIdleTaskStackSize );\r
-void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint16_t *pusTimerTaskStackSize );\r
+void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize );\r
+void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize );\r
 \r
 /*\r
  * Writes trace data to a disk file when the trace recording is stopped.\r
@@ -413,7 +413,7 @@ const HeapRegion_t xHeapRegions[] =
 /* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an\r
 implementation of vApplicationGetIdleTaskMemory() to provide the memory that is\r
 used by the Idle task. */\r
-void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint16_t *pusIdleTaskStackSize )\r
+void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize )\r
 {\r
 /* If the buffers to be provided to the Idle task are declared inside this\r
 function then they must be declared static - otherwise they will be allocated on\r
@@ -431,14 +431,14 @@ static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ];
        /* Pass out the size of the array pointed to by *ppxIdleTaskStackBuffer.\r
        Note that, as the array is necessarily of type StackType_t,\r
        configMINIMAL_STACK_SIZE is specified in words, not bytes. */\r
-       *pusIdleTaskStackSize = configMINIMAL_STACK_SIZE;\r
+       *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
 /* configUSE_STATIC_ALLOCATION and configUSE_TIMERS are both set to 1, so the\r
 application must provide an implementation of vApplicationGetTimerTaskMemory()\r
 to provide the memory that is used by the Timer service task. */\r
-void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint16_t *pusTimerTaskStackSize )\r
+void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize )\r
 {\r
 /* If the buffers to be provided to the Timer task are declared inside this\r
 function then they must be declared static - otherwise they will be allocated on\r
@@ -455,6 +455,6 @@ static StaticTask_t xTimerTaskTCB;
        /* Pass out the size of the array pointed to by *ppxTimerTaskStackBuffer.\r
        Note that, as the array is necessarily of type StackType_t,\r
        configMINIMAL_STACK_SIZE is specified in words, not bytes. */\r
-       *pusTimerTaskStackSize = configMINIMAL_STACK_SIZE;\r
+       *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH;\r
 }\r
 \r