From e28f953025f5908878b6f180169715ecad68ddc3 Mon Sep 17 00:00:00 2001 From: Kody Stribrny <89810515+kstribrnAmzn@users.noreply.github.com> Date: Tue, 20 Dec 2022 09:03:25 -0800 Subject: [PATCH] Update AVR_Dx Atmel Demo (#902) Updates the demo .cproj file to account for new paths since 3P restructure. Also enables the xTaskGetCurrentTaskHandle include which is needed for building. Inspired by - https://forums.freertos.org/t/avr-gcc-warning-extra-tokens-at-end-of-undef-in-porthardware-h/16365/3 --- .../RTOSDemo/FreeRTOSConfig.h | 2 +- .../AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h index 153b202414..593e4c8191 100644 --- a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h @@ -109,7 +109,7 @@ For other frequency values, update clock_config.h with your own settings */ #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 #define INCLUDE_xTaskGetSchedulerState 0 -#define INCLUDE_xTaskGetCurrentTaskHandle 0 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 #define INCLUDE_uxTaskGetStackHighWaterMark 0 #define INCLUDE_xTaskGetIdleTaskHandle 0 #define INCLUDE_eTaskGetState 0 diff --git a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj index 88d13ed603..8f20b0624b 100644 --- a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj +++ b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj @@ -115,7 +115,7 @@ ../../../../Source ../../../../Source/portable/MemMang - ../../../../Source/portable/GCC/AVR_AVRDx + ../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_AVRDx ../../../../Source/include ../../../Common/include ../../../Common/Minimal @@ -180,17 +180,17 @@ compile freeRTOS\portable\MemMang\heap_1.c - + compile - freeRTOS\portable\GCC\AVR_AVRDx\port.c + freeRTOS\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_AVRDx\port.c - + compile - freeRTOS\portable\GCC\AVR_AVRDx\portmacro.h + freeRTOS\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_AVRDx\portmacro.h - + compile - freeRTOS\portable\GCC\AVR_AVRDx\porthardware.h + freeRTOS\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_AVRDx\porthardware.h compile @@ -354,7 +354,7 @@ - +