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