Skip to content

Commit 54e6396

Browse files
committed
rename stack depth variables to correct type
1 parent ed401f1 commit 54e6396

File tree

8 files changed

+47
-47
lines changed

8 files changed

+47
-47
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FreeRTOS
2-
version=10.4.4-1
2+
version=10.4.4-2
33
author=Richard Barry <[email protected]>
44
maintainer=Phillip Stevens <[email protected]>
55
sentence=<h3>FreeRTOS Real Time Operating System implemented for AVR (Uno, Nano, Leonardo, Mega).</h3>

src/History.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Changes between FreeRTOS V10.0.1 and FreeRTOS V10.1.0 released 22 August 2018
273273
the read modify write access to an internal Microblaze register.
274274
+ Fix minor niggles when the MPU is used with regards to prototype
275275
differences, static struct size differences, etc.
276-
+ The usStackHighWaterMark member of the TaskStatus_t structure now has type
276+
+ The uxStackHighWaterMark member of the TaskStatus_t structure now has type
277277
configSTACK_DEPTH_TYPE in place of uint16_t - that change should have been
278278
made when the configSTACK_DEPTH_TYPE type (which gets around the previous
279279
16-bit limit on stack size specifications) was introduced.

src/message_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#error "include Arduino_FreeRTOS.h must appear in source files before include message_buffer.h"
6868
#endif
6969

70-
/* Message buffers are built onto of stream buffers. */
70+
/* Message buffers are built on top of stream buffers. */
7171
#include "stream_buffer.h"
7272

7373
/* *INDENT-OFF* */

src/portable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
211211
void vPortStoreTaskMPUSettings( xMPU_SETTINGS * xMPUSettings,
212212
const struct xMEMORY_REGION * const xRegions,
213213
StackType_t * pxBottomOfStack,
214-
configSTACK_DEPTH_TYPE ulStackDepth ) PRIVILEGED_FUNCTION;
214+
configSTACK_DEPTH_TYPE uxStackDepth ) PRIVILEGED_FUNCTION;
215215
#endif
216216

217217
/* *INDENT-OFF* */

src/task.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ typedef struct xTASK_PARAMETERS
139139
{
140140
TaskFunction_t pvTaskCode;
141141
const char * pcName; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
142-
configSTACK_DEPTH_TYPE usStackDepth;
142+
configSTACK_DEPTH_TYPE uxStackDepth;
143143
void * pvParameters;
144144
UBaseType_t uxPriority;
145145
StackType_t * puxStackBuffer;
@@ -161,7 +161,7 @@ typedef struct xTASK_STATUS
161161
UBaseType_t uxBasePriority; /* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */
162162
uint32_t ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
163163
StackType_t * pxStackBase; /* Points to the lowest address of the task's stack area. */
164-
configSTACK_DEPTH_TYPE usStackHighWaterMark; /* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */
164+
configSTACK_DEPTH_TYPE uxStackHighWaterMark; /* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */
165165
} TaskStatus_t;
166166

167167
/* Possible return values for eTaskConfirmSleepModeStatus(). */
@@ -257,7 +257,7 @@ typedef enum
257257
* BaseType_t xTaskCreate(
258258
* TaskFunction_t pxTaskCode,
259259
* const char * const pcName,
260-
* const configSTACK_DEPTH_TYPE usStackDepth,
260+
* const configSTACK_DEPTH_TYPE uxStackDepth,
261261
* void *pvParameters,
262262
* UBaseType_t uxPriority,
263263
* TaskHandle_t *pxCreatedTask
@@ -291,9 +291,9 @@ typedef enum
291291
* facilitate debugging. Max length defined by configMAX_TASK_NAME_LEN - default
292292
* is 16.
293293
*
294-
* @param usStackDepth The size of the task stack specified as the number of
294+
* @param uxStackDepth The size of the task stack specified as the number of
295295
* variables the stack can hold - not the number of bytes. For example, if
296-
* the stack is 16 bits wide and usStackDepth is defined as 100, 200 bytes
296+
* the stack is 16 bits wide and uxStackDepth is defined as 100, 200 bytes
297297
* will be allocated for stack storage.
298298
*
299299
* @param pvParameters Pointer that will be used as the parameter for the task
@@ -348,7 +348,7 @@ typedef enum
348348
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
349349
BaseType_t xTaskCreate( TaskFunction_t pxTaskCode,
350350
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
351-
const configSTACK_DEPTH_TYPE usStackDepth,
351+
const configSTACK_DEPTH_TYPE uxStackDepth,
352352
void * const pvParameters,
353353
UBaseType_t uxPriority,
354354
TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION;
@@ -359,7 +359,7 @@ typedef enum
359359
* <pre>
360360
* TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode,
361361
* const char * const pcName,
362-
* const configSTACK_DEPTH_TYPE ulStackDepth,
362+
* const configSTACK_DEPTH_TYPE uxStackDepth,
363363
* void *pvParameters,
364364
* UBaseType_t uxPriority,
365365
* StackType_t *puxStackBuffer,
@@ -385,9 +385,9 @@ typedef enum
385385
* facilitate debugging. The maximum length of the string is defined by
386386
* configMAX_TASK_NAME_LEN in FreeRTOSConfig.h.
387387
*
388-
* @param ulStackDepth The size of the task stack specified as the number of
388+
* @param uxStackDepth The size of the task stack specified as the number of
389389
* variables the stack can hold - not the number of bytes. For example, if
390-
* the stack is 32-bits wide and ulStackDepth is defined as 100 then 400 bytes
390+
* the stack is 32-bits wide and uxStackDepth is defined as 100 then 400 bytes
391391
* will be allocated for stack storage.
392392
*
393393
* @param pvParameters Pointer that will be used as the parameter for the task
@@ -396,7 +396,7 @@ typedef enum
396396
* @param uxPriority The priority at which the task will run.
397397
*
398398
* @param puxStackBuffer Must point to a StackType_t array that has at least
399-
* ulStackDepth indexes - the array will then be used as the task's stack,
399+
* uxStackDepth indexes - the array will then be used as the task's stack,
400400
* removing the need for the stack to be allocated dynamically.
401401
*
402402
* @param pxTaskBuffer Must point to a variable of type StaticTask_t, which will
@@ -465,7 +465,7 @@ typedef enum
465465
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
466466
TaskHandle_t xTaskCreateStatic( TaskFunction_t pxTaskCode,
467467
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
468-
const configSTACK_DEPTH_TYPE ulStackDepth,
468+
const configSTACK_DEPTH_TYPE uxStackDepth,
469469
void * const pvParameters,
470470
UBaseType_t uxPriority,
471471
StackType_t * const puxStackBuffer,
@@ -508,7 +508,7 @@ typedef enum
508508
* {
509509
* vATask, // pvTaskCode - the function that implements the task.
510510
* "ATask", // pcName - just a text name for the task to assist debugging.
511-
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
511+
* 100, // uxStackDepth - the stack size DEFINED IN WORDS.
512512
* NULL, // pvParameters - passed into the task function as the function parameters.
513513
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
514514
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
@@ -596,7 +596,7 @@ typedef enum
596596
* {
597597
* vATask, // pvTaskCode - the function that implements the task.
598598
* "ATask", // pcName - just a text name for the task to assist debugging.
599-
* 100, // usStackDepth - the stack size DEFINED IN WORDS.
599+
* 100, // uxStackDepth - the stack size DEFINED IN WORDS.
600600
* NULL, // pvParameters - passed into the task function as the function parameters.
601601
* ( 1UL | portPRIVILEGE_BIT ),// uxPriority - task priority, set the portPRIVILEGE_BIT if the task should run in a privileged state.
602602
* cStackBuffer,// puxStackBuffer - the buffer to be used as the task stack.
@@ -1618,18 +1618,18 @@ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark( TaskHandle_t xTask ) PRIVILE
16181618
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
16191619
/**
16201620
* task.h
1621-
* <pre>void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer, StackType_t ** ppxIdleTaskStackBuffer, configSTACK_DEPTH_TYPE * pulIdleTaskStackSize ) </pre>
1621+
* <pre>void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer, StackType_t ** ppxIdleTaskStackBuffer, configSTACK_DEPTH_TYPE * puxIdleTaskStackSize ) </pre>
16221622
*
16231623
* This function is used to provide a statically allocated block of memory to FreeRTOS to hold the Idle Task TCB. This function is required when
16241624
* configSUPPORT_STATIC_ALLOCATION is set. For more information see this URI: https://www.FreeRTOS.org/a00110.html#configSUPPORT_STATIC_ALLOCATION
16251625
*
16261626
* @param ppxIdleTaskTCBBuffer A handle to a statically allocated TCB buffer
16271627
* @param ppxIdleTaskStackBuffer A handle to a statically allocated Stack buffer for the idle task
1628-
* @param pulIdleTaskStackSize A pointer to the number of elements that will fit in the allocated stack buffer
1628+
* @param puxIdleTaskStackSize A pointer to the number of elements that will fit in the allocated stack buffer
16291629
*/
16301630
void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer,
16311631
StackType_t ** ppxIdleTaskStackBuffer,
1632-
configSTACK_DEPTH_TYPE * pulIdleTaskStackSize ); /*lint !e526 Symbol not defined as it is an application callback. */
1632+
configSTACK_DEPTH_TYPE * puxIdleTaskStackSize ); /*lint !e526 Symbol not defined as it is an application callback. */
16331633
#endif
16341634

16351635
/**

0 commit comments

Comments
 (0)