From 4c3b37e45319c3c7239d806d60d5799f3debf04d Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 4 May 2011 20:25:18 +0000 Subject: [PATCH] Correct the name of a variable in the A2F Blinky demos from xFreeStackSpace to xFreeHeapSpace. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1409 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c | 6 +++--- Demo/CORTEX_A2F200_SoftConsole/main-blinky.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c b/Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c index cd04278b2..7cd37fca6 100644 --- a/Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c +++ b/Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c @@ -363,14 +363,14 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName void vApplicationIdleHook( void ) { -volatile size_t xFreeStackSpace; +volatile size_t xFreeHeapSpace; /* This function is called on each cycle of the idle task. In this case it does nothing useful, other than report the amout of FreeRTOS heap that remains unallocated. */ - xFreeStackSpace = xPortGetFreeHeapSize(); + xFreeHeapSpace = xPortGetFreeHeapSize(); - if( xFreeStackSpace > 100 ) + if( xFreeHeapSpace > 100 ) { /* By now, the kernel has allocated everything it is going to, so if there is a lot of heap remaining unallocated then diff --git a/Demo/CORTEX_A2F200_SoftConsole/main-blinky.c b/Demo/CORTEX_A2F200_SoftConsole/main-blinky.c index cd04278b2..7cd37fca6 100644 --- a/Demo/CORTEX_A2F200_SoftConsole/main-blinky.c +++ b/Demo/CORTEX_A2F200_SoftConsole/main-blinky.c @@ -363,14 +363,14 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName void vApplicationIdleHook( void ) { -volatile size_t xFreeStackSpace; +volatile size_t xFreeHeapSpace; /* This function is called on each cycle of the idle task. In this case it does nothing useful, other than report the amout of FreeRTOS heap that remains unallocated. */ - xFreeStackSpace = xPortGetFreeHeapSize(); + xFreeHeapSpace = xPortGetFreeHeapSize(); - if( xFreeStackSpace > 100 ) + if( xFreeHeapSpace > 100 ) { /* By now, the kernel has allocated everything it is going to, so if there is a lot of heap remaining unallocated then -- 2.39.5