Skip to content

Commit

Permalink
Fix ATMega port demos (FreeRTOS#1060)
Browse files Browse the repository at this point in the history
* Fix ATMEGA port demos

* Remove GCC folder from proj file
  • Loading branch information
kar-rahul-aws committed Aug 23, 2023
1 parent 20b6c13 commit 4e2a023
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 11 additions & 10 deletions FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<Value>../../../../Source</Value>
<Value>../../../../Source/include</Value>
<Value>../../../../Source/portable/MemMang</Value>
<Value>../../../../Source/portable/GCC/AVR_Mega0</Value>
<Value>../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_Mega0</Value>
<Value>../../../Common/include</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
Expand Down Expand Up @@ -187,17 +187,17 @@
<SubType>compile</SubType>
<Link>Source\portable\MemMang\heap_1.c</Link>
</Compile>
<Compile Include="..\..\..\Source\portable\GCC\AVR_Mega0\port.c">
<Compile Include="..\..\..\Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\port.c">
<SubType>compile</SubType>
<Link>Source\portable\GCC\AVR_Mega0\port.c</Link>
<Link>Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\port.c</Link>
</Compile>
<Compile Include="..\..\..\Source\portable\GCC\AVR_Mega0\portmacro.h">
<Compile Include="..\..\..\Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\portmacro.h">
<SubType>compile</SubType>
<Link>Source\portable\GCC\AVR_Mega0\portmacro.h</Link>
<Link>Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\portmacro.h</Link>
</Compile>
<Compile Include="..\..\..\Source\portable\GCC\AVR_Mega0\porthardware.h">
<Compile Include="..\..\..\Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\porthardware.h">
<SubType>compile</SubType>
<Link>Source\portable\GCC\AVR_Mega0\porthardware.h</Link>
<Link>Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\porthardware.h</Link>
</Compile>
<Compile Include="..\..\..\Source\include\atomic.h">
<SubType>compile</SubType>
Expand Down Expand Up @@ -357,9 +357,10 @@
<Folder Include="Source" />
<Folder Include="Source\include" />
<Folder Include="Source\portable" />
<Folder Include="Source\portable\GCC" />
<Folder Include="Source\portable\GCC\AVR_Mega0" />
<Folder Include="Source\portable\GCC\AVR_Mega0\" />
<Folder Include="Source\portable\ThirdParty\" />
<Folder Include="Source\portable\ThirdParty\Partner-Supported-Ports\" />
<Folder Include="Source\portable\ThirdParty\Partner-Supported-Ports\GCC\" />
<Folder Include="Source\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_Mega0\" />
<Folder Include="Source\portable\MemMang" />
<Folder Include="ParTest\" />
<Folder Include="serial\" />
Expand Down
160 changes: 81 additions & 79 deletions FreeRTOS/Demo/AVR_Dx_Atmel_Studio/RTOSDemo/RTOSDemo.cproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,89 +60,89 @@
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<ToolchainSettings>
<AvrGcc>
<avrgcc.common.Device>-mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
<avrgcc.compiler.symbols.DefSymbols>
<ListValues>
<Value>NDEBUG</Value>
</ListValues>
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
<avrgcc.linker.libraries.Libraries>
<ListValues>
<Value>libm</Value>
</ListValues>
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
</AvrGcc>
<avrgcc.common.Device>-mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
<avrgcc.compiler.symbols.DefSymbols>
<ListValues>
<Value>NDEBUG</Value>
</ListValues>
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
<avrgcc.linker.libraries.Libraries>
<ListValues>
<Value>libm</Value>
</ListValues>
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
</AvrGcc>
</ToolchainSettings>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<ToolchainSettings>
<AvrGcc>
<avrgcc.common.Device>-mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
<avrgcc.compiler.symbols.DefSymbols>
<ListValues>
<Value>DEBUG</Value>
</ListValues>
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>../../../../Source</Value>
<Value>../../../../Source/portable/MemMang</Value>
<Value>../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_AVRDx</Value>
<Value>../../../../Source/include</Value>
<Value>../../../Common/include</Value>
<Value>../../../Common/Minimal</Value>
<Value>../../../Common/Full</Value>
<Value>../ParTest</Value>
<Value>../serial</Value>
<Value>..</Value>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
<avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
<avrgcc.linker.libraries.Libraries>
<ListValues>
<Value>libm</Value>
</ListValues>
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
</AvrGcc>
<avrgcc.common.Device>-mmcu=avr128da48 -B "%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\gcc\dev\avr128da48"</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
<avrgcc.compiler.symbols.DefSymbols>
<ListValues>
<Value>DEBUG</Value>
</ListValues>
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>../../../../Source</Value>
<Value>../../../../Source/portable/MemMang</Value>
<Value>../../../../Source/portable/ThirdParty/Partner-Supported-Ports/GCC/AVR_AVRDx</Value>
<Value>../../../../Source/include</Value>
<Value>../../../Common/include</Value>
<Value>../../../Common/Minimal</Value>
<Value>../../../Common/Full</Value>
<Value>../ParTest</Value>
<Value>../serial</Value>
<Value>..</Value>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
<avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
<avrgcc.linker.libraries.Libraries>
<ListValues>
<Value>libm</Value>
</ListValues>
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>%24(PackRepoDir)\Atmel\AVR-Dx_DFP\1.2.56\include</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
</AvrGcc>
</ToolchainSettings>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -369,7 +369,9 @@
<Folder Include="freeRTOS\" />
<Folder Include="freeRTOS\include" />
<Folder Include="freeRTOS\portable" />
<Folder Include="freeRTOS\portable\GCC" />
<Folder Include="freeRTOS\portable\ThirdParty\" />
<Folder Include="freeRTOS\portable\ThirdParty\Partner-Supported-Ports\" />
<Folder Include="freeRTOS\portable\ThirdParty\Partner-Supported-Ports\GCC\" />
<Folder Include="freeRTOS\portable\ThirdParty\Partner-Supported-Ports\GCC\AVR_AVRDx" />
<Folder Include="freeRTOS\portable\MemMang" />
<Folder Include="serial" />
Expand Down

0 comments on commit 4e2a023

Please sign in to comment.