From 4e2a02323b058fef28db96866b348a32e0ec60bd Mon Sep 17 00:00:00 2001
From: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com>
Date: Thu, 24 Aug 2023 00:00:58 +0530
Subject: [PATCH] Fix ATMega port demos (#1060)
* Fix ATMEGA port demos
* Remove GCC folder from proj file
---
.../RTOSDemo/FreeRTOSConfig.h | 2 +-
.../RTOSDemo/RTOSDemo.cproj | 21 +--
.../RTOSDemo/RTOSDemo.cproj | 160 +++++++++---------
3 files changed, 93 insertions(+), 90 deletions(-)
diff --git a/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h b/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h
index 09084506b..5a52f70e5 100644
--- a/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h
+++ b/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/FreeRTOSConfig.h
@@ -111,7 +111,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_ATMega4809_Atmel_Studio/RTOSDemo/RTOSDemo.cproj b/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
index 1124bc269..bdbcec02e 100644
--- a/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
+++ b/FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
@@ -118,7 +118,7 @@
../../../../Source
../../../../Source/include
../../../../Source/portable/MemMang
- ../../../../Source/portable/GCC/AVR_Mega0
+ ../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_Mega0
../../../Common/include
@@ -187,17 +187,17 @@
compile
Source\portable\MemMang\heap_1.c
-
+
compile
- Source\portable\GCC\AVR_Mega0\port.c
+ Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\port.c
-
+
compile
- Source\portable\GCC\AVR_Mega0\portmacro.h
+ Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\portmacro.h
-
+
compile
- Source\portable\GCC\AVR_Mega0\porthardware.h
+ Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\porthardware.h
compile
@@ -357,9 +357,10 @@
-
-
-
+
+
+
+
diff --git a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
index dc745410f..9f6b20c16 100644
--- a/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
+++ b/FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
@@ -60,89 +60,89 @@
- -mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"
- True
- True
- True
- True
- False
- True
- True
-
-
- NDEBUG
-
-
-
-
- %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
-
-
- Optimize for size (-Os)
- True
- True
- True
-
-
- libm
-
-
-
-
- %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
-
-
-
+ -mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"
+ True
+ True
+ True
+ True
+ False
+ True
+ True
+
+
+ NDEBUG
+
+
+
+
+ %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
+
+
+ Optimize for size (-Os)
+ True
+ True
+ True
+
+
+ libm
+
+
+
+
+ %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
+
+
+
- -mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"
- True
- True
- True
- True
- False
- True
- True
-
-
- DEBUG
-
-
-
-
- ../../../../Source
- ../../../../Source/portable/MemMang
- ../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_AVRDx
- ../../../../Source/include
- ../../../Common/include
- ../../../Common/Minimal
- ../../../Common/Full
- ../ParTest
- ../serial
- ..
- %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
-
-
- Optimize for size (-Os)
- True
- True
- Default (-g2)
- True
-
-
- libm
-
-
-
-
- %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
-
-
- Default (-Wa,-g)
-
+ -mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"
+ True
+ True
+ True
+ True
+ False
+ True
+ True
+
+
+ DEBUG
+
+
+
+
+ ../../../../Source
+ ../../../../Source/portable/MemMang
+ ../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_AVRDx
+ ../../../../Source/include
+ ../../../Common/include
+ ../../../Common/Minimal
+ ../../../Common/Full
+ ../ParTest
+ ../serial
+ ..
+ %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
+
+
+ Optimize for size (-Os)
+ True
+ True
+ Default (-g2)
+ True
+
+
+ libm
+
+
+
+
+ %24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include
+
+
+ Default (-Wa,-g)
+
@@ -369,7 +369,9 @@
-
+
+
+