mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 13:31:58 -04:00
Correct the name of a variable in the A2F Blinky demos from xFreeStackSpace to xFreeHeapSpace.
This commit is contained in:
parent
e8fe7aa08e
commit
6be0a39eea
|
@ -363,14 +363,14 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName
|
||||||
|
|
||||||
void vApplicationIdleHook( void )
|
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
|
/* 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
|
does nothing useful, other than report the amout of FreeRTOS heap that
|
||||||
remains unallocated. */
|
remains unallocated. */
|
||||||
xFreeStackSpace = xPortGetFreeHeapSize();
|
xFreeHeapSpace = xPortGetFreeHeapSize();
|
||||||
|
|
||||||
if( xFreeStackSpace > 100 )
|
if( xFreeHeapSpace > 100 )
|
||||||
{
|
{
|
||||||
/* By now, the kernel has allocated everything it is going to, so
|
/* By now, the kernel has allocated everything it is going to, so
|
||||||
if there is a lot of heap remaining unallocated then
|
if there is a lot of heap remaining unallocated then
|
||||||
|
|
|
@ -363,14 +363,14 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName
|
||||||
|
|
||||||
void vApplicationIdleHook( void )
|
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
|
/* 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
|
does nothing useful, other than report the amout of FreeRTOS heap that
|
||||||
remains unallocated. */
|
remains unallocated. */
|
||||||
xFreeStackSpace = xPortGetFreeHeapSize();
|
xFreeHeapSpace = xPortGetFreeHeapSize();
|
||||||
|
|
||||||
if( xFreeStackSpace > 100 )
|
if( xFreeHeapSpace > 100 )
|
||||||
{
|
{
|
||||||
/* By now, the kernel has allocated everything it is going to, so
|
/* By now, the kernel has allocated everything it is going to, so
|
||||||
if there is a lot of heap remaining unallocated then
|
if there is a lot of heap remaining unallocated then
|
||||||
|
|
Loading…
Reference in a new issue