chore: migrate project into clean repository

This commit is contained in:
yuuux
2026-08-13 16:50:52 +08:00
commit d1d25a09e7
27405 changed files with 9422808 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\data\00_Dev\05_CppUTest\cpputest\platforms\CCStudio\"
ProjectType=Library
CPUFamily=TMS320C28XX
Tool="Archiver"
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Config="Debug"
[Source Files]
Source="..\..\src\CppUTest\CommandLineArguments.cpp"
Source="..\..\src\CppUTest\CommandLineTestRunner.cpp"
Source="..\..\src\CppUTest\JUnitTestOutput.cpp"
Source="..\..\src\CppUTest\MemoryLeakDetector.cpp"
Source="..\..\src\CppUTest\MemoryLeakWarningPlugin.cpp"
Source="..\..\src\CppUTest\SimpleMutex.cpp"
Source="..\..\src\CppUTest\SimpleString.cpp"
Source="..\..\src\CppUTest\TeamCityTestOutput.cpp"
Source="..\..\src\CppUTest\TestFailure.cpp"
Source="..\..\src\CppUTest\TestFilter.cpp"
Source="..\..\src\CppUTest\TestHarness_c.cpp"
Source="..\..\src\CppUTest\TestMemoryAllocator.cpp"
Source="..\..\src\CppUTest\TestOutput.cpp"
Source="..\..\src\CppUTest\TestPlugin.cpp"
Source="..\..\src\CppUTest\TestRegistry.cpp"
Source="..\..\src\CppUTest\TestResult.cpp"
Source="..\..\src\CppUTest\TestTestingFixture.cpp"
Source="..\..\src\CppUTest\Utest.cpp"
Source="..\..\src\CppUTestExt\CodeMemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\GTest.cpp"
Source="..\..\src\CppUTestExt\MemoryReportAllocator.cpp"
Source="..\..\src\CppUTestExt\MemoryReporterPlugin.cpp"
Source="..\..\src\CppUTestExt\MemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\MockActualCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCallsList.cpp"
Source="..\..\src\CppUTestExt\MockFailure.cpp"
Source="..\..\src\CppUTestExt\MockNamedValue.cpp"
Source="..\..\src\CppUTestExt\MockSupport.cpp"
Source="..\..\src\CppUTestExt\MockSupport_c.cpp"
Source="..\..\src\CppUTestExt\MockSupportPlugin.cpp"
Source="..\..\src\CppUTestExt\OrderedTest.cpp"
Source="..\..\src\Platforms\C2000\UtestPlatform.cpp"
["Archiver" Settings: "Debug"]
Options=-r -o"..\..\lib\c2000\CppUTestd.lib"
["Compiler" Settings: "Debug"]
Options=-g -rtti -pdsw225 -pden -pds1 -fr"$(Proj_dir)\Debug" -i"$(Proj_dir)\..\..\include" -d"_DEBUG" -d"LARGE_MODEL" -d"CPPUTEST_STD_CPP_LIB_DISABLED" -d"CPPUTEST_USE_MEM_LEAK_DETECTION" -ml -v28

View File

@@ -0,0 +1,72 @@
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\data\00_Dev\05_CppUTest\cpputest\platforms\CCStudio\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Tool="Linker"
Config="Debug"
[Source Files]
Source="..\..\src\CppUTest\CommandLineArguments.cpp"
Source="..\..\src\CppUTest\CommandLineTestRunner.cpp"
Source="..\..\src\CppUTest\JUnitTestOutput.cpp"
Source="..\..\src\CppUTest\MemoryLeakDetector.cpp"
Source="..\..\src\CppUTest\MemoryLeakWarningPlugin.cpp"
Source="..\..\src\CppUTest\SimpleMutex.cpp"
Source="..\..\src\CppUTest\SimpleString.cpp"
Source="..\..\src\CppUTest\SimpleStringInternalCache.cpp"
Source="..\..\src\CppUTest\TeamCityTestOutput.cpp"
Source="..\..\src\CppUTest\TestFailure.cpp"
Source="..\..\src\CppUTest\TestFilter.cpp"
Source="..\..\src\CppUTest\TestHarness_c.cpp"
Source="..\..\src\CppUTest\TestMemoryAllocator.cpp"
Source="..\..\src\CppUTest\TestOutput.cpp"
Source="..\..\src\CppUTest\TestPlugin.cpp"
Source="..\..\src\CppUTest\TestRegistry.cpp"
Source="..\..\src\CppUTest\TestResult.cpp"
Source="..\..\src\CppUTest\TestTestingFixture.cpp"
Source="..\..\src\CppUTest\Utest.cpp"
Source="..\..\src\CppUTestExt\CodeMemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\GTest.cpp"
Source="..\..\src\CppUTestExt\MemoryReportAllocator.cpp"
Source="..\..\src\CppUTestExt\MemoryReporterPlugin.cpp"
Source="..\..\src\CppUTestExt\MemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\MockActualCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCallsList.cpp"
Source="..\..\src\CppUTestExt\MockFailure.cpp"
Source="..\..\src\CppUTestExt\MockNamedValue.cpp"
Source="..\..\src\CppUTestExt\MockSupport.cpp"
Source="..\..\src\CppUTestExt\MockSupportPlugin.cpp"
Source="..\..\src\CppUTestExt\OrderedTest.cpp"
Source="..\..\src\Platforms\C2000\UtestPlatform.cpp"
Source="..\..\tests\CppUTestExt\CodeMemoryReporterTest.cpp"
Source="..\..\tests\CppUTestExt\GMockTest.cpp"
Source="..\..\tests\CppUTestExt\GTest1Test.cpp"
Source="..\..\tests\CppUTestExt\GTest2ConvertorTest.cpp"
Source="..\..\tests\CppUTestExt\MemoryReportAllocatorTest.cpp"
Source="..\..\tests\CppUTestExt\MemoryReportFormatterTest.cpp"
Source="..\..\tests\CppUTestExt\MockActualCallTest.cpp"
Source="..\..\tests\CppUTestExt\MockCheatSheetTest.cpp"
Source="..\..\tests\CppUTestExt\MockExpectedCallTest.cpp"
Source="..\..\tests\CppUTestExt\MockFailureReporterForTest.cpp"
Source="..\..\tests\CppUTestExt\MockFailureTest.cpp"
Source="..\..\tests\CppUTestExt\MockHierarchyTest.cpp"
Source="..\..\tests\CppUTestExt\MockPluginTest.cpp"
Source="..\..\tests\CppUTestExt\MockReturnValueTest.cpp"
Source="..\..\tests\CppUTestExt\MockStrictOrderTest.cpp"
Source="..\..\tests\CppUTestExt\MockSupportTest.cpp"
Source="C:\CCStudio_v3.3\C2000\cgtools\lib\src\farmem_cpp.cpp"
Source="tests\CppUTestExt\AllTestsForTarget.cpp"
Source="sim28335.cmd"
["Compiler" Settings: "Debug"]
Options=-g -rtti -pdsw225 -pden -pds1 -fr"$(Proj_dir)\Debug" -i"$(Proj_dir)\..\..\include" -i"$(Proj_dir)\..\..\include\CppUTestExt\CppUTestGMock" -i"$(Proj_dir)\..\..\tests" -d"_DEBUG" -d"LARGE_MODEL" -d"CPPUTEST_STD_CPP_LIB_DISABLED" -d"CPPUTEST_USE_MEM_LEAK_DETECTION" -d"CPPUTEST_USE_MALLOC_MACROS" -ml -v28 --preinclude="$(Proj_dir)\..\..\include\Platforms\c2000\stdint.h"
["Linker" Settings: "Debug"]
Options=-a -c -farheap0x20000 -f0x0 -heap0x2000 -m".\Debug\CppUTestExtRunAllTests.map" -o".\Debug\CppUTestExtRunAllTests1.out" -stack0x4000 --disable_auto_rts -w -l"rts2800_ml.lib"

View File

@@ -0,0 +1,67 @@
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\data\00_Dev\05_CppUTest\cpputest\platforms\CCStudio\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Tool="Linker"
Config="Debug"
[Source Files]
Source="..\..\src\CppUTest\CommandLineArguments.cpp"
Source="..\..\src\CppUTest\CommandLineTestRunner.cpp"
Source="..\..\src\CppUTest\JUnitTestOutput.cpp"
Source="..\..\src\CppUTest\MemoryLeakDetector.cpp"
Source="..\..\src\CppUTest\MemoryLeakWarningPlugin.cpp"
Source="..\..\src\CppUTest\SimpleMutex.cpp"
Source="..\..\src\CppUTest\SimpleString.cpp"
Source="..\..\src\CppUTest\SimpleStringInternalCache.cpp"
Source="..\..\src\CppUTest\TeamCityTestOutput.cpp"
Source="..\..\src\CppUTest\TestFailure.cpp"
Source="..\..\src\CppUTest\TestFilter.cpp"
Source="..\..\src\CppUTest\TestHarness_c.cpp"
Source="..\..\src\CppUTest\TestMemoryAllocator.cpp"
Source="..\..\src\CppUTest\TestOutput.cpp"
Source="..\..\src\CppUTest\TestPlugin.cpp"
Source="..\..\src\CppUTest\TestRegistry.cpp"
Source="..\..\src\CppUTest\TestResult.cpp"
Source="..\..\src\CppUTest\TestTestingFixture.cpp"
Source="..\..\src\CppUTest\Utest.cpp"
Source="..\..\src\CppUTestExt\CodeMemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\GTest.cpp"
Source="..\..\src\CppUTestExt\MemoryReportAllocator.cpp"
Source="..\..\src\CppUTestExt\MemoryReporterPlugin.cpp"
Source="..\..\src\CppUTestExt\MemoryReportFormatter.cpp"
Source="..\..\src\CppUTestExt\MockActualCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCall.cpp"
Source="..\..\src\CppUTestExt\MockExpectedCallsList.cpp"
Source="..\..\src\CppUTestExt\MockFailure.cpp"
Source="..\..\src\CppUTestExt\MockNamedValue.cpp"
Source="..\..\src\CppUTestExt\MockSupport.cpp"
Source="..\..\src\CppUTestExt\MockSupport_c.cpp"
Source="..\..\src\CppUTestExt\MockSupportPlugin.cpp"
Source="..\..\src\CppUTestExt\OrderedTest.cpp"
Source="..\..\src\Platforms\C2000\UtestPlatform.cpp"
Source="..\..\tests\CppUTestExt\MemoryReporterPluginTest.cpp"
Source="..\..\tests\CppUTestExt\MockCallTest.cpp"
Source="..\..\tests\CppUTestExt\MockComparatorCopierTest.cpp"
Source="..\..\tests\CppUTestExt\MockFailureReporterForTest.cpp"
Source="..\..\tests\CppUTestExt\MockNamedValueTest.cpp"
Source="..\..\tests\CppUTestExt\MockParameterTest.cpp"
Source="..\..\tests\CppUTestExt\MockSupport_cTest.cpp"
Source="..\..\tests\CppUTestExt\MockSupport_cTestCFile.c"
Source="..\..\tests\CppUTestExt\OrderedTestTest.cpp"
Source="..\..\tests\CppUTestExt\OrderedTestTest_c.c"
Source="C:\CCStudio_v3.3\C2000\cgtools\lib\src\farmem_cpp.cpp"
Source="tests\CppUTestExt\AllTestsForTarget.cpp"
Source="sim28335.cmd"
["Compiler" Settings: "Debug"]
Options=-g -rtti -pdsw225 -pden -pds1 -fr"$(Proj_dir)\Debug" -i"$(Proj_dir)\..\..\include" -i"$(Proj_dir)\..\..\include\CppUTestExt\CppUTestGMock" -i"$(Proj_dir)\..\..\tests" -d"_DEBUG" -d"LARGE_MODEL" -d"CPPUTEST_STD_CPP_LIB_DISABLED" -d"CPPUTEST_USE_MEM_LEAK_DETECTION" -d"CPPUTEST_USE_MALLOC_MACROS" -ml -v28 --preinclude="$(Proj_dir)\..\..\include\Platforms\c2000\stdint.h"
["Linker" Settings: "Debug"]
Options=-a -c -farheap0x20000 -f0x0 -heap0x2000 -m".\Debug\CppUTestExtRunAllTests.map" -o".\Debug\CppUTestExtRunAllTests2.out" -stack0x4000 --disable_auto_rts -w -l"rts2800_ml.lib"

View File

@@ -0,0 +1,62 @@
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\data\00_Dev\05_CppUTest\cpputest\platforms\CCStudio\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Tool="Linker"
Config="Debug"
[Source Files]
Source="..\..\src\CppUTest\CommandLineArguments.cpp"
Source="..\..\src\CppUTest\CommandLineTestRunner.cpp"
Source="..\..\src\CppUTest\JUnitTestOutput.cpp"
Source="..\..\src\CppUTest\MemoryLeakDetector.cpp"
Source="..\..\src\CppUTest\MemoryLeakWarningPlugin.cpp"
Source="..\..\src\CppUTest\SimpleMutex.cpp"
Source="..\..\src\CppUTest\SimpleString.cpp"
Source="..\..\src\CppUTest\SimpleStringInternalCache.cpp"
Source="..\..\src\CppUTest\TeamCityTestOutput.cpp"
Source="..\..\src\CppUTest\TestFailure.cpp"
Source="..\..\src\CppUTest\TestFilter.cpp"
Source="..\..\src\CppUTest\TestHarness_c.cpp"
Source="..\..\src\CppUTest\TestMemoryAllocator.cpp"
Source="..\..\src\CppUTest\TestOutput.cpp"
Source="..\..\src\CppUTest\TestPlugin.cpp"
Source="..\..\src\CppUTest\TestRegistry.cpp"
Source="..\..\src\CppUTest\TestResult.cpp"
Source="..\..\src\CppUTest\TestTestingFixture.cpp"
Source="..\..\src\CppUTest\Utest.cpp"
Source="..\..\src\Platforms\C2000\UtestPlatform.cpp"
Source="..\..\tests\AllocationInCFile.c"
Source="..\..\tests\AllocationInCppFile.cpp"
Source="..\..\tests\AllocLetTestFree.c"
Source="..\..\tests\AllocLetTestFreeTest.cpp"
Source="..\..\tests\CheatSheetTest.cpp"
Source="..\..\tests\CompatabilityTests.cpp"
Source="..\..\tests\CommandLineArgumentsTest.cpp"
Source="..\..\tests\CommandLineTestRunnerTest.cpp"
Source="..\..\tests\JUnitOutputTest.cpp"
Source="..\..\tests\MemoryLeakDetectorTest.cpp"
Source="..\..\tests\MemoryLeakWarningTest.cpp"
Source="..\..\tests\MemoryOperatorOverloadTest.cpp"
Source="..\..\tests\PluginTest.cpp"
Source="..\..\tests\PreprocessorTest.cpp"
Source="..\..\tests\SetPluginTest.cpp"
Source="..\..\tests\TeamCityOutputTest.cpp"
Source="..\..\tests\TestFailureNaNTest.cpp"
Source="..\..\tests\TestFailureTest.cpp"
Source="..\..\tests\TestUTestStringMacro.cpp"
Source="C:\CCStudio_v3.3\C2000\cgtools\lib\src\farmem_cpp.cpp"
Source="tests\CppUTest\AllTestsForTarget.cpp"
Source="sim28335.cmd"
["Compiler" Settings: "Debug"]
Options=-g -rtti -pdsw225 -pden -pds1 -fr"$(Proj_dir)\Debug" -i"$(Proj_dir)\..\..\include" -i"$(Proj_dir)\..\..\tests" -d"_DEBUG" -d"LARGE_MODEL" -d"CPPUTEST_STD_CPP_LIB_DISABLED" -d"CPPUTEST_USE_MEM_LEAK_DETECTION" -ml -v28 --preinclude="$(Proj_dir)\..\..\include\Platforms\c2000\stdint.h"
["Linker" Settings: "Debug"]
Options=-a -c -farheap0x020000 -f0x0 -heap0x2000 -m".\Debug\CppUTestRunAllTests1.map" -o".\Debug\CppUTestRunAllTests1.out" -stack0x4000 --disable_auto_rts -w -l"rts2800_ml.lib"

View File

@@ -0,0 +1,55 @@
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\data\00_Dev\05_CppUTest\cpputest\platforms\CCStudio\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Tool="Compiler"
Tool="CustomBuilder"
Tool="DspBiosBuilder"
Tool="Linker"
Config="Debug"
[Source Files]
Source="..\..\src\CppUTest\CommandLineArguments.cpp"
Source="..\..\src\CppUTest\CommandLineTestRunner.cpp"
Source="..\..\src\CppUTest\JUnitTestOutput.cpp"
Source="..\..\src\CppUTest\MemoryLeakDetector.cpp"
Source="..\..\src\CppUTest\MemoryLeakWarningPlugin.cpp"
Source="..\..\src\CppUTest\SimpleMutex.cpp"
Source="..\..\src\CppUTest\SimpleString.cpp"
Source="..\..\src\CppUTest\SimpleStringInternalCache.cpp"
Source="..\..\src\CppUTest\TeamCityTestOutput.cpp"
Source="..\..\src\CppUTest\TestFailure.cpp"
Source="..\..\src\CppUTest\TestFilter.cpp"
Source="..\..\src\CppUTest\TestHarness_c.cpp"
Source="..\..\src\CppUTest\TestMemoryAllocator.cpp"
Source="..\..\src\CppUTest\TestOutput.cpp"
Source="..\..\src\CppUTest\TestPlugin.cpp"
Source="..\..\src\CppUTest\TestRegistry.cpp"
Source="..\..\src\CppUTest\TestResult.cpp"
Source="..\..\src\CppUTest\TestTestingFixture.cpp"
Source="..\..\src\CppUTest\Utest.cpp"
Source="..\..\src\CppUTestExt\MockSupportPlugin.cpp"
Source="..\..\src\Platforms\C2000\UtestPlatform.cpp"
Source="..\..\tests\SimpleStringCacheTest.cpp"
Source="..\..\tests\TestFilterTest.cpp"
Source="..\..\tests\TestHarness_cTest.cpp"
Source="..\..\tests\TestHarness_cTestCFile.c"
Source="..\..\tests\TestInstallerTest.cpp"
Source="..\..\tests\TestMemoryAllocatorTest.cpp"
Source="..\..\tests\TestOutputTest.cpp"
Source="..\..\tests\TestRegistryTest.cpp"
Source="..\..\tests\TestResultTest.cpp"
Source="..\..\tests\TestUTestMacro.cpp"
Source="..\..\tests\UtestTest.cpp"
Source="C:\CCStudio_v3.3\C2000\cgtools\lib\src\farmem_cpp.cpp"
Source="tests\CppUTest\AllTestsForTarget.cpp"
Source="sim28335.cmd"
["Compiler" Settings: "Debug"]
Options=-g -rtti -pdsw225 -pden -pds1 -fr"$(Proj_dir)\Debug" -i"$(Proj_dir)\..\..\include" -i"$(Proj_dir)\..\..\tests" -d"_DEBUG" -d"LARGE_MODEL" -d"CPPUTEST_STD_CPP_LIB_DISABLED" -d"CPPUTEST_USE_MEM_LEAK_DETECTION" -ml -v28 --preinclude="$(Proj_dir)\..\..\include\Platforms\c2000\stdint.h"
["Linker" Settings: "Debug"]
Options=-a -c -farheap0x020000 -f0x0 -heap0x2000 -m".\Debug\CppUTestRunAllTests2.map" -o".\Debug\CppUTestRunAllTests2.out" -stack0x4000 --disable_auto_rts -w -l"rts2800_ml.lib"

View File

@@ -0,0 +1,43 @@
/************************************************************/
/* Linker command file for simulator only */
/************************************************************/
/* Contains only the bare necessities for running a unit test
* in the TI CCS 3.3 Simulator
*/
MEMORY
{
PAGE 0 : /* Program Memory */
/* Flash as one big segment */
FLASH : origin = 0x300000, length = 0x040000
PAGE 1 : /* Data Memory */
/* Internal SARAM */
RAM_0 : origin = 0x000000, length = 0x002000
/* 0x2000 to 0x3FFF: Not defined */
STACK : origin = 0x004000, length = 0x004000 /* stack needs own segment in low RAM */
RAM_1 : origin = 0x008000, length = 0x008000
/* External memory */
EMEM : origin = 0x100000, length = 0x030000
}
SECTIONS
{
/* segment allocation */
.cinit : > FLASH, PAGE = 0 /* initialized internal RAM-data */
.pinit : > FLASH, PAGE = 0 /* initialized constructors */
.stack : > STACK, PAGE = 1
.text : > FLASH, PAGE = 0
.bss : > RAM_0, PAGE = 1
.ebss : > RAM_1, FILL = 0x0020, PAGE = 1 /* uninitialized external RAM-data */
.econst : > FLASH, PAGE = 0
.esysmem : > EMEM, PAGE = 1 /* not used if no malloc calls in code */
.cio : > RAM_0, PAGE = 1
/* keep the linker from complaining */
.reset : > FLASH, PAGE = 0, TYPE = DSECT /* not used */
}

View File

@@ -0,0 +1,247 @@
/********************************************************************/
/* f28335.gel */
/* Version 4.00.2 */
/* */
/* This GEL file is to be used with the TMS320F28335 DSP. */
/* Changes may be required to support specific hardware designs. */
/* */
/* Code Composer Studio supports six reserved GEL functions that */
/* automatically get executed if they are defined. They are: */
/* */
/* StartUp() - Executed whenever CCS is invoked */
/* OnReset() - Executed after Debug->Reset CPU */
/* OnRestart() - Executed after Debug->Restart */
/* OnPreFileLoaded() - Executed before File->Load Program */
/* OnFileLoaded() - Executed after File->Load Program */
/* OnTargetConnect() - Executed after Debug->Connect */
/* */
/********************************************************************/
StartUp()
{
/* The next line automatically loads the .gel file that comes */
/* with the DSP2833x Peripheral Header Files download. To use, */
/* uncomment, and copy the peripheral header .gel file to */
/* same directory as device .gel file. */
// GEL_LoadGel("$(GEL_file_dir)\\DSP2833x_Peripheral.gel");
}
OnReset(int nErrorCode)
{
C28x_Mode();
XINTF_Enable();
}
OnRestart(int nErrorCode)
{
/* CCS will call OnRestart() when you do a Debug->Restart and */
/* after you load a new file. Between running interrupt based */
/* programs, this function will clear interrupts and help keep */
/* the processor from going off into invalid memory. */
C28x_Mode();
IER = 0;
IFR = 0;
}
OnPreFileLoaded()
{
C28x_Mode();
XINTF_Enable();
GEL_Reset();
}
OnFileLoaded(int nErrorCode, int bSymbolsOnly)
{
}
OnTargetConnect()
{
C28335_Memory_Map(); /* Initialize the CCS memory map */
/* Check to see if CCS has been started-up with the DSP already */
/* running in real-time mode. The user can add whatever */
/* custom initialization stuff they want to each case. */
if (GEL_IsInRealtimeMode()) /* Do real-time mode target initialization */
{
// Note: This case never executes with the simulator
}
else /* Do stop-mode target initialization */
{
// Note: This case always executes with the simulator
}
}
/********************************************************************/
/* F28335 Memory Map */
/* */
/* Note: M0M1MAP and VMAP signals tied high on F28335 core */
/* */
/* 0x000000 - 0x0003ff M0 SARAM (Prog and Data) */
/* 0x000400 - 0x0007ff M1 SARAM (Prog and Data) */
/* 0x000800 - 0x001fff Peripheral Frame0 (PF0) (Data only) */
/* 0x004000 - 0x004fff XINTF Zone 0 (Prog and Data) */
/* 0x005000 - 0x005fff Peripheral Frame3 (PF3) (Data only) */
/* 0x006000 - 0x006fff Peripheral Frame1 (PF1) (Data only) */
/* 0x007000 - 0x007fff Peripheral Frame2 (PF2) (Data only) */
/* 0x008000 - 0x008fff L0 SARAM (Prog and Data) */
/* 0x009000 - 0x009fff L1 SARAM (Prog and Data) */
/* 0x00A000 - 0x00Afff L2 SARAM (Prog and Data) */
/* 0x00B000 - 0x00Bfff L3 SARAM (Prog and Data) */
/* 0x00C000 - 0x00Cfff L4 SARAM (Prog and Data) */
/* 0x00D000 - 0x00Dfff L5 SARAM (Prog and Data) */
/* 0x00E000 - 0x00Efff L6 SARAM (Prog and Data) */
/* 0x00F000 - 0x00Ffff L7 SARAM (Prog and Data) */
/* 0x100000 - 0x1fffff XINTF Zone 6 (Prog and Data) */
/* 0x200000 - 0x2fffff XINTF Zone 7 (Prog and Data */
/* 0x300000 - 0x33ffff Flash (Prog and Data) */
/* 0x380080 - 0x380088 ADC_cal function (Prog and Data) */
/* 0x380090 - 0x380090 PARTID value (Prog and Data) */
/* 0x380400 - 0x3807ff OTP (Prog and Data) */
/* 0x3f8000 - 0x3f8fff L0 SARAM (Prog and Data) */
/* 0x3f9000 - 0x3f9fff L1 SARAM (Prog and Data) */
/* 0x3fA000 - 0x3fAfff L2 SARAM (Prog and Data) */
/* 0x3fB000 - 0x3fBfff L3 SARAM (Prog and Data) */
/* 0x3fe000 - 0x3fffff BOOT ROM (Prog and Data) */
/********************************************************************/
menuitem "Initialize Memory Map";
hotmenu Memory_Map_Off()
{
GEL_MapReset();
GEL_MapOff();
}
hotmenu C28335_Memory_Map()
{
GEL_MapReset();
GEL_MapOn();
/* Program memory map */
GEL_MapAdd(0x000,0,0x400,1,1); /* M0 SARAM */
GEL_MapAdd(0x400,0,0x400,1,1); /* M1 SARAM */
GEL_MapAdd(0x4000,0,0x1000,1,1); /* Zone 0 */
GEL_MapAdd(0x8000,0,0x1000,1,1); /* L0 SARAM */
GEL_MapAdd(0x9000,0,0x1000,1,1); /* L1 SARAM */
GEL_MapAdd(0xA000,0,0x1000,1,1); /* L2 SARAM */
GEL_MapAdd(0xB000,0,0x1000,1,1); /* L3 SARAM */
GEL_MapAdd(0xC000,0,0x1000,1,1); /* L4 SARAM */
GEL_MapAdd(0xD000,0,0x1000,1,1); /* L5 SARAM */
GEL_MapAdd(0xE000,0,0x1000,1,1); /* L6 SARAM */
GEL_MapAdd(0xF000,0,0x1000,1,1); /* L7 SARAM */
GEL_MapAdd(0x100000,0,0x100000,1,1); /* Zone 6 */
GEL_MapAdd(0x200000,0,0x100000,1,1); /* Zone 7 */
GEL_MapAdd(0x300000,0,0x40000,1,1); /* FLASH */
GEL_MapAdd(0x380080,0,0x00009,1,0); /* ADC_cal function*/
GEL_MapAdd(0x380090,0,0x00001,1,0); /* PARTID value */
GEL_MapAdd(0x380400,0,0x00400,1,0); /* OTP */
GEL_MapAdd(0x3f8000,0,0x1000,1,1); /* L0 SARAM Mirror */
GEL_MapAdd(0x3f9000,0,0x1000,1,1); /* L1 SARAM Mirror */
GEL_MapAdd(0x3fA000,0,0x1000,1,1); /* L2 SARAM Mirror */
GEL_MapAdd(0x3fb000,0,0x1000,1,1); /* L3 SARAM Mirror */
GEL_MapAdd(0x3fe000,0,0x2000,1,0); /* BOOT ROM */
/* Data memory map */
GEL_MapAdd(0x000,1,0x400,1,1); /* M0 SARAM */
GEL_MapAdd(0x400,1,0x400,1,1); /* M1 SARAM */
GEL_MapAdd(0x800,1,0x1800,1,1); /* PF0 */
GEL_MapAdd(0x4000,1,0x1000,1,1); /* Zone 0 */
GEL_MapAdd(0x5000,1,0x1000,1,1); /* PF3 */
GEL_MapAdd(0x6000,1,0x1000,1,1); /* PF1 */
GEL_MapAddStr(0x7000,1,0x1000,"R|W|AS2",0); /* PF2 */
GEL_MapAdd(0x8000,1,0x1000,1,1); /* L0 SARAM */
GEL_MapAdd(0x9000,1,0x1000,1,1); /* L1 SARAM */
GEL_MapAdd(0xA000,1,0x1000,1,1); /* L2 SARAM */
GEL_MapAdd(0xB000,1,0x1000,1,1); /* L3 SARAM */
GEL_MapAdd(0xC000,1,0x1000,1,1); /* L4 SARAM */
GEL_MapAdd(0xD000,1,0x1000,1,1); /* L5 SARAM */
GEL_MapAdd(0xE000,1,0x1000,1,1); /* L6 SARAM */
GEL_MapAdd(0xF000,1,0x1000,1,1); /* L7 SARAM */
GEL_MapAdd(0x100000,1,0x100000,1,1); /* Zone 6 */
GEL_MapAdd(0x200000,1,0x100000,1,1); /* Zone 7 */
GEL_MapAdd(0x300000,1,0x40000,1,0); /* FLASH */
GEL_MapAdd(0x380400,1,0x00400,1,0); /* OTP */
GEL_MapAdd(0x380080,1,0x00009,1,0); /* ADC_cal function*/
GEL_MapAdd(0x380090,1,0x00001,1,0); /* PARTID value */
GEL_MapAdd(0x3f8000,1,0x1000,1,1); /* L0 SARAM Mirror */
GEL_MapAdd(0x3f9000,1,0x1000,1,1); /* L1 SARAM Mirror */
GEL_MapAdd(0x3fA000,1,0x1000,1,1); /* L2 SARAM Mirror */
GEL_MapAdd(0x3fb000,1,0x1000,1,1); /* L3 SARAM Mirror */
GEL_MapAdd(0x3fe000,1,0x2000,1,0); /* BOOT ROM */
}
/********************************************************************/
menuitem "Addressing Modes";
hotmenu C28x_Mode()
{
ST1 = ST1 & (~0x0100); /* AMODE = 0 */
ST1 = ST1 | 0x0200; /* OBJMODE = 1 */
}
hotmenu C24x_Mode()
{
ST1 = ST1 | 0x0100; /* AMODE = 1 */
ST1 = ST1 | 0x0200; /* OBJMODE = 1 */
}
hotmenu C27x_Mode()
{
ST1 = ST1 & (~0x0100); /* AMODE = 0 */
ST1 = ST1 & (~0x0200); /* OBJMODE = 0 */
}
/********************************************************************/
/* Enable the XINTF and configure GPIOs for XINTF function */
/********************************************************************/
int TxtOutCtl=0;
menuitem "XINTF Enable"
hotmenu XINTF_Enable()
{
if (TxtOutCtl==0)
{
GEL_TextOut("\nNOTES:\nTo configure the XINTF automatically on reset:\n uncomment the XINTF_Enable call in the OnReset function of the GEL file.");
GEL_TextOut("\nNOTES:\nGel will enable XINTFx16 during Debug only.\nEnable XINTF in code prior to use.");
TxtOutCtl=1;
}
/* enable XINTF clock (XTIMCLK) */
*0x7020 = 0x3700;
/* GPBMUX1: XA0-XA7, XA16, XZCS0, */
/* XZCS7, XREADY, XRNW, XWE0 */
/* GPAMUX2: XA17-XA19, XZCS6 */
/* GPCMUX2: XA8-XA15 */
/* GPCMUX1: XD0-XD15 */
*(unsigned long *)0x6F96 = 0xFFFFFFC0; /* GPBMUX1 */
*(unsigned long *)0x6f88 = 0xFF000000; /* GPAMUX2 */
*(unsigned long *)0x6FA8 = 0x0000AAAA; /* GPCMUX2 */
*(unsigned long *)0x6FA6 = 0xAAAAAAAA; /* GPCMUX1 */
/* Uncomment for x32 data bus */
/* GPBMUX2: XD16-XD31 */
// *(unsigned long *)0x6F98 = 0xFFFFFFFF; /* GPBMUX2 */
/* Zone timing.
/* Each zone can be configured seperately */
/* Uncomment the x16 or the x32 timing */
/* depending on the data bus width for */
/* the zone */
/* x16 Timing */
*(unsigned long *)0x0B20 = 0x0043FFFF; /* Zone0 */
*(unsigned long *)0x0B2C = 0x0043FFFF; /* Zone6 */
*(unsigned long *)0x0B2E = 0x0043FFFF; /* Zone7 */
/* x32 Timing:
// *(unsigned long *)0x0B20 = 0x0041FFFF; /* x32 */
// *(unsigned long *)0x0B2C = 0x0041FFFF; /* x32 */
// *(unsigned long *)0x0B2E = 0x0041FFFF; /* x32 */
}
/********************************************************************/
/*** End of file ***/

View File

@@ -0,0 +1,411 @@
///////////////////////////////////////////////////////////
// Initialize default F2833x memory map as defined by //
// the MEMRSn signal. For F2833x, M0M1MAP=1 and VMAP=1. //
///////////////////////////////////////////////////////////
module F2833x_memory;
///////////////////////////////////////////////////////////
// M0 SARAM, shared prog and data space //
///////////////////////////////////////////////////////////
memory M0_prog_mem;
first 0x000000;
last 0x0003FF;
space prog;
waitstates 0;
type saram;
shared M0_data_mem;
end M0_prog_mem;
memory M0_data_mem;
first 0x000000;
last 0x0003FF;
space data;
waitstates 0;
type saram;
end M0_data_mem;
///////////////////////////////////////////////////////////
// M1 SARAM, shared prog and data space //
///////////////////////////////////////////////////////////
memory M1_prog_mem;
first 0x000400;
last 0x0007FF;
space prog;
waitstates 0;
type saram;
shared M1_data_mem;
end M1_prog_mem;
memory M1_data_mem;
first 0x000400;
last 0x0007FF;
space data;
waitstates 0;
type saram;
end M1_data_mem;
///////////////////////////////////////////////////////////
// PF0A, data space only //
///////////////////////////////////////////////////////////
memory PF0A_data_mem;
first 0x000800;
last 0x000CFF;
space data;
waitstates 1;
type saram;
end PF0A_data_mem;
///////////////////////////////////////////////////////////
// PIE Vector Table //
///////////////////////////////////////////////////////////
memory PIE_vectors;
first 0x000D00;
last 0x000DFF;
space data;
waitstates 0;
type saram;
end PIE_vectors;
///////////////////////////////////////////////////////////
// PF0B, data space only //
///////////////////////////////////////////////////////////
memory PF0B_data_mem;
first 0x000E00;
last 0x001FFF;
space data;
waitstates 1;
type saram;
end PF0B_data_mem;
///////////////////////////////////////////////////////////
// PF3, data space only //
///////////////////////////////////////////////////////////
memory PF3_data_mem;
first 0x005000;
last 0x005FFF;
space data;
waitstates 2;
type saram;
end PF3_data_mem;
//////////////////////////////////////////////////////////
// VBUS32 data space (PF1) //
// 0x6000 - 0x6FFF //
//////////////////////////////////////////////////////////
memory vbus32_data_mem;
read_waitstates 2;
write_waitstates 0;
type vbus32;
end vbus32_data_mem;
//////////////////////////////////////////////////////////
// VBUS16 data space (PF2) //
// 0x7000 - 0x7FFF //
//////////////////////////////////////////////////////////
memory vbus16_data_mem;
read_waitstates 2;
write_waitstates 0;
type vbus16;
end vbus16_data_mem;
//////////////////////////////////////////////////////////
// XINTF ZONE 0, shared prog and data space //
//////////////////////////////////////////////////////////
memory XINTF0_prog_mem;
first 0x004000;
last 0x004FFF;
space prog;
waitstates 7;
type saram;
shared XINTF0_data_mem;
end XINTF0_prog_mem;
memory XINTF0_data_mem;
first 0x004000;
last 0x004FFF;
space data;
waitstates 7;
type saram;
end XINTF0_data_mem;
//////////////////////////////////////////////////////////
// L0 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L0_prog_mem;
first 0x008000;
last 0x008FFF;
space prog;
waitstates 0;
type saram;
shared L0_data_mem;
end L0_prog_mem;
memory L0_data_mem;
first 0x008000;
last 0x008FFF;
space data;
waitstates 0;
type saram;
end L0_data_mem;
//////////////////////////////////////////////////////////
// L1 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L1_prog_mem;
first 0x009000;
last 0x009FFF;
space prog;
waitstates 0;
type saram;
shared L1_data_mem;
end L1_prog_mem;
memory L1_data_mem;
first 0x009000;
last 0x009FFF;
space data;
waitstates 0;
type saram;
end L1_data_mem;
//////////////////////////////////////////////////////////
// L2 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L2_prog_mem;
first 0x00A000;
last 0x00AFFF;
space prog;
waitstates 0;
type saram;
shared L2_data_mem;
end L2_prog_mem;
memory L2_data_mem;
first 0x00A000;
last 0x00AFFF;
space data;
waitstates 0;
type saram;
end L2_data_mem;
//////////////////////////////////////////////////////////
// L3 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L3_prog_mem;
first 0x00B000;
last 0x00BFFF;
space prog;
waitstates 0;
type saram;
shared L3_data_mem;
end L3_prog_mem;
memory L3_data_mem;
first 0x00B000;
last 0x00BFFF;
space data;
waitstates 0;
type saram;
end L3_data_mem;
//////////////////////////////////////////////////////////
// L4 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L4_prog_mem;
first 0x00C000;
last 0x00CFFF;
space prog;
waitstates 0;
type saram;
shared L4_data_mem;
end L4_prog_mem;
memory L4_data_mem;
first 0x00C000;
last 0x00CFFF;
space data;
waitstates 0;
type saram;
end L4_data_mem;
//////////////////////////////////////////////////////////
// L5 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L5_prog_mem;
first 0x00D000;
last 0x00DFFF;
space prog;
waitstates 0;
type saram;
shared L5_data_mem;
end L5_prog_mem;
memory L5_data_mem;
first 0x00D000;
last 0x00DFFF;
space data;
waitstates 0;
type saram;
end L5_data_mem;
//////////////////////////////////////////////////////////
// L6 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L6_prog_mem;
first 0x00E000;
last 0x00EFFF;
space prog;
waitstates 1;
type saram;
shared L6_data_mem;
end L6_prog_mem;
memory L6_data_mem;
first 0x00E000;
last 0x00EFFF;
space data;
waitstates 1;
type saram;
end L6_data_mem;
//////////////////////////////////////////////////////////
// L7 SARAM, shared prog and data space //
//////////////////////////////////////////////////////////
memory L7_prog_mem;
first 0x00F000;
last 0x00FFFF;
space prog;
waitstates 1;
type saram;
shared L7_data_mem;
end L7_prog_mem;
memory L7_data_mem;
first 0x00F000;
last 0x00FFFF;
space data;
waitstates 1;
type saram;
end L7_data_mem;
//////////////////////////////////////////////////////////
// XINTF ZONE 6, shared prog and data space //
//////////////////////////////////////////////////////////
memory XINTF6_prog_mem;
first 0x100000;
last 0x1FFFFF;
space prog;
waitstates 7;
type saram;
shared XINTF6_data_mem;
end XINTF6_prog_mem;
memory XINTF6_data_mem;
first 0x100000;
last 0x1FFFFF;
space data;
waitstates 7;
type saram;
end XINTF6_data_mem;
//////////////////////////////////////////////////////////
// XINTF ZONE 7, shared prog and data space //
//////////////////////////////////////////////////////////
memory XINTF7_prog_mem;
first 0x200000;
last 0x2FFFFF;
space prog;
waitstates 7;
type saram;
shared XINTF7_data_mem;
end XINTF7_prog_mem;
memory XINTF7_data_mem;
first 0x200000;
last 0x2FFFFF;
space data;
waitstates 7;
type saram;
end XINTF7_data_mem;
//////////////////////////////////////////////////////////
// FLASH, shared prog and data space //
//////////////////////////////////////////////////////////
memory FLASH_prog_mem;
first 0x300000;
last 0x33FFF7;
space prog;
waitstates 5;
type flash;
shared FLASH_data_mem;
end FLASH_prog_mem;
memory FLASH_data_mem;
first 0x300000;
last 0x33FFF7;
space data;
waitstates 5;
type flash;
end FLASH_data_mem;
//////////////////////////////////////////////////////////
// PASSWORDS, shared prog and data space //
//////////////////////////////////////////////////////////
memory PASSWORDS_prog_mem;
first 0x33FFF8;
last 0x33FFFF;
space prog;
waitstates 16;
type flash;
shared PASSWORDS_data_mem;
end PASSWORDS_prog_mem;
memory PASSWORDS_data_mem;
first 0x33FFF8;
last 0x33FFFF;
space data;
waitstates 16;
type flash;
end PASSWORDS_data_mem;
//////////////////////////////////////////////////////////
// OTP, shared prog and data space //
//////////////////////////////////////////////////////////
memory OTP_prog_mem;
first 0x380400;
last 0x3807FF;
space prog;
waitstates 8;
type flash;
shared OTP_data_mem;
end OTP_prog_mem;
memory OTP_data_mem;
first 0x380400;
last 0x3807FF;
space data;
waitstates 8;
type flash;
end OTP_data_mem;
//////////////////////////////////////////////////////////
// BOOT ROM, shared prog and data space //
//////////////////////////////////////////////////////////
memory BOOT_prog_mem;
first 0x3FE000;
last 0x3FFFFF;
space prog;
waitstates 1;
type rom;
shared BOOT_data_mem;
end BOOT_prog_mem;
memory BOOT_data_mem;
first 0x3FE000;
last 0x3FFFFF;
space data;
waitstates 1;
type rom;
end BOOT_data_mem;
end F2833x_memory;

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2013, Michael Feathers, James Grenning, Bas Vodde
* and Arnd Strube
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE EARLIER MENTIONED AUTHORS ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "CppUTest/CommandLineTestRunner.h"
int main(int ac, char** av)
{
/* Specify commandline arguments here as needed */
char* argv[] =
{
(char*) 0,
(char*) "-v",
// (char*) "-gSimpleStringBuffer",
// (char*) "-ojunit",
};
ac = sizeof(argv) / sizeof(char*);
/* These checks are here to make sure assertions outside test runs don't crash */
CHECK(true);
LONGS_EQUAL(1, 1);
return CommandLineTestRunner::RunAllTests(ac, argv);
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright (c) 2013, Michael Feathers, James Grenning, Bas Vodde
* and Arnd Strube
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE EARLIER MENTIONED AUTHORS ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "CppUTest/CommandLineTestRunner.h"
#include "CppUTest/TestRegistry.h"
#include "CppUTestExt/MemoryReporterPlugin.h"
#include "CppUTestExt/MockSupportPlugin.h"
int main(int ac, char** av)
{
/* Specify commandline arguments here as needed */
char* argv[] =
{
(char*) 0,
(char*) "-v",
// (char*) "-gSimpleStringBuffer",
// (char*) "-ojunit",
};
ac = sizeof(argv) / sizeof(char*);
MemoryReporterPlugin plugin;
MockSupportPlugin mockPlugin;
TestRegistry::getCurrentRegistry()->installPlugin(&plugin);
TestRegistry::getCurrentRegistry()->installPlugin(&mockPlugin);
return CommandLineTestRunner::RunAllTests(ac, argv);
}