]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main.c
Kernel changes:
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main.c
index 6c10d8dde191c0d97aa283ca44bd81067c813f57..21332acc3af3c76eceb8b53f43d98210f0577f0d 100644 (file)
@@ -112,9 +112,9 @@ that make up the total heap.  This is only done to provide an example of heap_5
 being used as this demo could easily create one large heap region instead of\r
 multiple smaller heap regions - in which case heap_4.c would be the more\r
 appropriate choice. */\r
-#define mainREGION_1_SIZE      3001\r
+#define mainREGION_1_SIZE      4001\r
 #define mainREGION_2_SIZE      18105\r
-#define mainREGION_3_SIZE      1407\r
+#define mainREGION_3_SIZE      1807\r
 \r
 /*\r
  * main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
@@ -228,10 +228,10 @@ void vApplicationIdleHook( void )
        function, because it is the responsibility of the idle task to clean up\r
        memory allocated by the kernel to any task that has since been deleted. */\r
 \r
-       /* Uncomment the following code to allow the trace to be stopped with any \r
+       /* Uncomment the following code to allow the trace to be stopped with any\r
        key press.  The code is commented out by default as the kbhit() function\r
        interferes with the run time behaviour. */\r
-       /* \r
+       /*\r
                if( _kbhit() != pdFALSE )\r
                {\r
                        if( xTraceRunning == pdTRUE )\r
@@ -367,6 +367,9 @@ const HeapRegion_t xHeapRegions[] =
        array. */\r
        configASSERT( ( ulAdditionalOffset + mainREGION_1_SIZE + mainREGION_2_SIZE + mainREGION_3_SIZE ) < configTOTAL_HEAP_SIZE );\r
 \r
+       /* Prevent compiler warnings when configASSERT() is not defined. */\r
+       ( void ) ulAdditionalOffset;\r
+\r
        vPortDefineHeapRegions( xHeapRegions );\r
 }\r
 /*-----------------------------------------------------------*/\r