mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-02 20:18:51 +08:00
Correct the name of a variable in the A2F Blinky demos from xFreeStackSpace to xFreeHeapSpace.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user