Skip to content

Commit 68bcaa1

Browse files
authored
Listing 3.13: Comments corrected, as they incorrectly referred to the Idle task instead of Timer task (#89)
1 parent 800f6a0 commit 68bcaa1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ch03.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,20 +855,20 @@ void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer,
855855
StackType_t **ppxTimerTaskStackBuffer,
856856
uint32_t *pulTimerTaskStackSize )
857857
{
858-
/* If the buffers to be provided to the Idle task are declared inside this
858+
/* If the buffers to be provided to the Timer task are declared inside this
859859
function then they must be declared static - otherwise they will be allocated on
860860
the stack and hence would not exists after this function exits. */
861861
static StaticTask_t xTimerTaskTCB;
862862
static StackType_t uxTimerTaskStack[ configMINIMAL_STACK_SIZE ];
863863

864-
/* Pass out a pointer to the StaticTask_t structure in which the Idle task's
864+
/* Pass out a pointer to the StaticTask_t structure in which the Timer task's
865865
state will be stored. */
866866
*ppxTimerTaskTCBBuffer = &xTimerTaskTCB;
867867

868-
/* Pass out the array that will be used as the Idle task's stack. */
868+
/* Pass out the array that will be used as the Timer task's stack. */
869869
*ppxTimerTaskStackBuffer = uxTimerTaskStack;
870870

871-
/* Pass out the stack size of the array pointed to by *ppxIdleTaskStackBuffer.
871+
/* Pass out the stack size of the array pointed to by *ppxTimerTaskStackBuffer.
872872
Note the stack size is a count of StackType_t */
873873
*pulTimerTaskStackSize = sizeof(uxTimerTaskStack) / sizeof(*uxTimerTaskStack);
874874
}

0 commit comments

Comments
 (0)