From 22eb827b3d71d44db3324ab273913e3940cb5ea7 Mon Sep 17 00:00:00 2001 From: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:53:52 +0530 Subject: [PATCH] Add parameter name for function type (#845) Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> --- include/croutine.h | 4 ++-- include/projdefs.h | 2 +- include/task.h | 2 +- include/timers.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/croutine.h b/include/croutine.h index 664e38b3764..40ac9765b13 100644 --- a/include/croutine.h +++ b/include/croutine.h @@ -47,8 +47,8 @@ typedef void * CoRoutineHandle_t; /* Defines the prototype to which co-routine functions must conform. */ -typedef void (* crCOROUTINE_CODE)( CoRoutineHandle_t, - UBaseType_t ); +typedef void (* crCOROUTINE_CODE)( CoRoutineHandle_t xHandle, + UBaseType_t uxIndex ); typedef struct corCoRoutineControlBlock { diff --git a/include/projdefs.h b/include/projdefs.h index 26f6e4f0cb1..370285d305c 100644 --- a/include/projdefs.h +++ b/include/projdefs.h @@ -33,7 +33,7 @@ * Defines the prototype to which task functions must conform. Defined in this * file to ensure the type is known before portable.h is included. */ -typedef void (* TaskFunction_t)( void * ); +typedef void (* TaskFunction_t)( void * arg ); /* Converts a time in milliseconds to a time in ticks. This macro can be * overridden by a macro of the same name defined in FreeRTOSConfig.h in case the diff --git a/include/task.h b/include/task.h index cb06c2370ca..26c32aa7284 100644 --- a/include/task.h +++ b/include/task.h @@ -96,7 +96,7 @@ typedef const struct tskTaskControlBlock * ConstTaskHandle_t; * Defines the prototype to which the application task hook function must * conform. */ -typedef BaseType_t (* TaskHookFunction_t)( void * ); +typedef BaseType_t (* TaskHookFunction_t)( void * arg ); /* Task states returned by eTaskGetState. */ typedef enum diff --git a/include/timers.h b/include/timers.h index 054ec097fab..894087ec2fd 100644 --- a/include/timers.h +++ b/include/timers.h @@ -88,8 +88,8 @@ typedef void (* TimerCallbackFunction_t)( TimerHandle_t xTimer ); * Defines the prototype to which functions used with the * xTimerPendFunctionCallFromISR() function must conform. */ -typedef void (* PendedFunction_t)( void *, - uint32_t ); +typedef void (* PendedFunction_t)( void * arg1, + uint32_t arg2 ); /** * TimerHandle_t xTimerCreate( const char * const pcTimerName,