From 6be0a39eeab810d6727ccbc79339711d2646419a Mon Sep 17 00:00:00 2001 From: Richard Barry 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. --- 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