From c472c08d3debcddd27e90c78a0ad967de39f2f55 Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:15:26 -0700 Subject: [PATCH] Define INCLUDE_xTaskGetCurrentTaskHandle in FreeRTOSConfig.h (#822) * Define INCLUDE_xTaskGetCurrentTaskHandle in FreeRTOSConfig.h This is needed to fix build issues in https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/507 Signed-off-by: Gaurav Aggarwal * Fix header check Signed-off-by: Gaurav Aggarwal --- FreeRTOS/Test/CMock/config/FreeRTOSConfig.h | 1 + .../Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FreeRTOS/Test/CMock/config/FreeRTOSConfig.h b/FreeRTOS/Test/CMock/config/FreeRTOSConfig.h index 2a755725a..91341c1f2 100644 --- a/FreeRTOS/Test/CMock/config/FreeRTOSConfig.h +++ b/FreeRTOS/Test/CMock/config/FreeRTOSConfig.h @@ -112,6 +112,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in #define INCLUDE_xSemaphoreGetMutexHolder 1 #define INCLUDE_xTimerPendFunctionCall 1 #define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 /* It is a good idea to define configASSERT() while developing. configASSERT() * uses the same semantics as the standard C assert() macro. */ diff --git a/FreeRTOS/Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h b/FreeRTOS/Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h index 7b89b8947..9368ae30c 100644 --- a/FreeRTOS/Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h +++ b/FreeRTOS/Test/CMock/message_buffer/size_mismatch/FreeRTOSConfig.h @@ -1,5 +1,5 @@ /* - * FreeRTOS V202111.00 + * FreeRTOS V202112.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of @@ -114,6 +114,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in #define INCLUDE_xSemaphoreGetMutexHolder 1 #define INCLUDE_xTimerPendFunctionCall 1 #define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 /* It is a good idea to define configASSERT() while developing. configASSERT() * uses the same semantics as the standard C assert() macro. */