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);
}

View File

@@ -0,0 +1 @@
platform.mk

View File

@@ -0,0 +1,16 @@
REM Run all tests on Windows systems
@echo off
set log=%~n0.LOG & shift & set args=%*
if exist %log% del %log%
echo.>exit
for %%a in (*.EXE) do call :run %%a
echo. & type %log%
echo. & echo Done.
exit/b
:run
echo Running %1 inside DOSBox...
echo *** %1 (%~z1 bytes) *********************>>%log%
DOSBox.exe -conf ..\platforms\Dos\dosbox-0.74.conf exit ^
-c "%1 %args%>>%log%" -noconsole -exit
exit/b

View File

@@ -0,0 +1,68 @@
CXX := wcl
CC := wcl
AR := wlib
LINK := wlink
LOG := ALLTESTS.LOG
NULL :=
space := $(NULL) #
comma := ,
path_separator := /
drive = $(subst $(CYGDRIVE),$(lastword $(subst /, ,$(CYGDRIVE))):/,$(1))
convert_paths = $(if $(CYGDRIVE),$(subst /,$(path_separator),$(call drive,$(1))),$(1))
export CPPUTEST_HOME ?= .
-include $(CPPUTEST_HOME)/platforms/Dos/platform.mk
include $(CPPUTEST_HOME)/platforms/Dos/sources.mk
COMMONFLAGS := \
-q -c -os -oc -d0 -we -w=3 -ml -zm \
-dCPPUTEST_MEM_LEAK_DETECTION_DISABLED=1 -dCPPUTEST_STD_CPP_LIB_DISABLED=1 \
-i$(call convert_paths,$(CPPUTEST_HOME)/include) \
-i$(call convert_paths,$(WATCOM)/h) -i$(call convert_paths,$(WATCOM)/h/nt) \
# Disable W303 unreferenced parameter - PUNUSED is GNU-specific
CFLAGS := \
$(COMMONFLAGS) \
-wcd=303
# Disable W013 unreachable code - it overreacts to CHECK_EQUAL macros
# Disable W367 conditional expression in if statement is always true - same
# Disable W368 conditional expression in if statement is always false - same
# Disable W391 assignment found in boolean expression - we don't care
CXXFLAGS := \
$(COMMONFLAGS) \
-wcd=13 \
-wcd=367 \
-wcd=368 \
-wcd=391 \
-xds
.PHONY: all clean
all: CPPU.LIB CPPUX.LIB \
CPPU1.EXE CPPU2.EXE CPPU3.EXE CPPU4.EXE CPPU5.EXE CPPU6.EXE CPPU7.EXE CPPU8.EXE \
CPPUX1.EXE CPPUX2.EXE CPPUX3.EXE CPPUX4.EXE CPPUX5.EXE CPPUX6.EXE CPPUX7.EXE CPPUX8.EXE CPPUX9.EXE
clean:
rm -rf ../src/CppUTest/*.o ../src/CppUTestExt/*.o \
../src/Platforms/dos/*.o ../tests/*.o ../tests/CppUTestExt/*.o \
*.o *.map *.LOG *.EXE *.err *.LIB *.LST
%.o: %.cpp
$(CXX) $(CXXFLAGS) -fo=$(call convert_paths,$@) $(call convert_paths,$<)
%.o: %.c
$(CC) $(CFLAGS) -fo=$(call convert_paths,$@) $(call convert_paths,$<)
.SECONDEXPANSION:
%.LIB: $$($$*_OBJECTS)
$(AR) -q -lCPPU.LST $@ $(addprefix +,$(call convert_paths,$?))
%.EXE: $$($$*_OBJECTS) | CPPU.LIB CPPUX.LIB
$(LINK) opt q,map,st=50k sys dos lib CPPU.LIB,CPPUX.LIB \
file $(subst $(space),$(comma),$(call convert_paths,$?)) name $@
.PHONY:
test:
$(CPPUTEST_HOME)/platforms/Dos/alltests.sh

View File

@@ -0,0 +1,25 @@
To compile on your Windows PC (or other platform), please create
a file called "platform.mk" in this directory.
### Example platform.mk for use with Cygwin on Windows XP
WATCOM := d:\\bin\\watcom
CPPUTEST_HOME := /d/dev/05_CppUTest/cpputest
DOSBOX := DOSBox
CYGDRIVE:= /d/
path_separator := \\
### Another example platform.mk for use with Cygwin on Windows 7
WATCOM := d:\watcom
CPPUTEST_HOME := /cygdrive/c/data/00_Dev/05_CppUTest/cpputest
INCLUDE := c:\data\00_Dev\05_CppUTest\cpputest\include
DOSBOX := DOSBox
CYGDRIVE:= /cygdrive/d/
path_separator := \\
### platform.mk for use with Cygwin 2.5.0 on Windows 7
WATCOM := d:\watcom
CPPUTEST_HOME := c:\\data\\00_Dev\\05_CppUTest\\cpputest
INCLUDE := c:\data\00_Dev\05_CppUTest\cpputest\include
DOSBOX := DOSBox
CYGDRIVE:= /cygdrive/d/
path_separator := \\

View File

@@ -0,0 +1,32 @@
#!/bin/bash
: "${CPPUTEST_HOME:=.}"
checkForCppUTestToolsEnvVariable() {
if [ -z "$CPPUTEST_HOME" ] ; then
echo "CPPUTEST_HOME not set. You must set CPPUTEST_HOME to the top level CppUTest directory"
exit 1
fi
if [ ! -d "$CPPUTEST_HOME" ] ; then
echo "CPPUTEST_HOME not set to a directory. You must set CPPUTEST_HOME to the top level CppUTest directory"
exit 2
fi
}
checkForCppUTestToolsEnvVariable
printf "" > exit # so dosbox will run 'external' command 'exit' correctly
printf "" >ALLTESTS.LOG
for test in `ls *.EXE`; do
kb=`ls -lsk ${test} | awk '{print $1}'`
printf "Running ${test} (${kb}k) inside DOSBox...\n"
dosbox -conf $CPPUTEST_HOME/platforms/Dos/dosbox-0.74.conf exit \
-c "echo *** ${test} (${kb}k) *****************************>>ALLTESTS.LOG" \
-c "${test}>>ALLTESTS.LOG" \
-noconsole -exit 1>console_output 2>dosbox_error.log || { printf "error running command!\n"; cat dosbox_error.log; exit 1; }
done
printf "\n"
[ "`cat ALLTESTS.LOG`" ] || { printf "No tests to run!\n"; exit 1; }
[ "`cat ALLTESTS.LOG|grep checks`" ] || { printf "No test output!\n"; exit 1; }
cat ALLTESTS.LOG
[ -z "`cat ALLTESTS.LOG|grep Failure`" ] || { printf "Failed tests!\n"; exit 1; }

View File

@@ -0,0 +1,240 @@
# This is the configurationfile for DOSBox 0.74. (Please use the latest version of DOSBox)
# Lines starting with a # are commentlines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.
[sdl]
# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
# fullresolution: What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
# Using your monitor's native resolution with aspect=true might give the best results.
# If you end up with small window on a large screen, try an output different from surface.
# windowresolution: Scale the window to this size IF the output device supports hardware scaling.
# (output=surface does not!)
# output: What video system to use for output.
# Possible values: surface, overlay, opengl, openglnb.
# autolock: Mouse will automatically lock, if you click on the screen. (Press CTRL-F10 to unlock)
# sensitivity: Mouse sensitivity.
# waitonerror: Wait before closing the console if dosbox has an error.
# priority: Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized.
# pause is only valid for the second entry.
# Possible values: lowest, lower, normal, higher, highest, pause.
# mapperfile: File used to load/save the key/event mappings from. Resetmapper only works with the defaul value.
# usescancodes: Avoid usage of symkeys, might not work on all operating systems.
fullscreen=false
fulldouble=false
fullresolution=1366x768
windowresulultion=900x675
output=surface
autolock=false
sensitivity=50
waitonerror=true
priority=higher,normal
mapperfile=mapper-0.74.map
usescancodes=true
[dosbox]
# language: Select another language file.
# machine: The type of machine tries to emulate.
# Possible values: hercules, cga, tandy, pcjr, ega, vgaonly, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe.
# captures: Directory where things like wave, midi, screenshot get captured.
# memsize: Amount of memory DOSBox has in megabytes.
# This value is best left at its default to avoid problems with some games,
# though few games might require a higher value.
# There is generally no speed advantage when raising this value.
language=
machine=svga_s3
captures=capture
memsize=16
[render]
# frameskip: How many frames DOSBox skips before drawing one.
# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.
# scaler: Scaler used to enlarge/enhance low resolution modes.
# If 'forced' is appended, then the scaler will be used even if the result might not be desired.
# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.
frameskip=0
aspect=false
scaler=normal2x
[cpu]
# core: CPU Core used in emulation. auto will switch to dynamic if available and appropriate.
# Possible values: auto, dynamic, normal, simple.
# cputype: CPU Type used in emulation. auto is the fastest choice.
# Possible values: auto, 386, 386_slow, 486_slow, pentium_slow, 386_prefetch.
# cycles: Amount of instructions DOSBox tries to emulate each millisecond.
# Setting this value too high results in sound dropouts and lags.
# Cycles can be set in 3 ways:
# 'auto' tries to guess what a game needs.
# It usually works, but can fail for certain games.
# 'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.
# (Example: fixed 4000).
# 'max' will allocate as much cycles as your computer is able to handle.
#
# Possible values: auto, fixed, max.
# cycleup: Amount of cycles to decrease/increase with keycombo.(CTRL-F11/CTRL-F12)
# cycledown: Setting it lower than 100 will be a percentage.
core=auto
cputype=auto
cycles=max
cycleup=10
cycledown=20
[mixer]
# nosound: Enable silent mode, sound is still emulated though.
# rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.
# Possible values: 1024, 2048, 4096, 8192, 512, 256.
# prebuffer: How many milliseconds of data to keep on top of the blocksize.
nosound=true
rate=44100
blocksize=1024
prebuffer=20
[midi]
# mpu401: Type of MPU-401 to emulate.
# Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
# See the README/Manual for more details.
mpu401=none
mididevice=none
midiconfig=
[sblaster]
# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.
# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.
# sbbase: The IO address of the soundblaster.
# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.
# irq: The IRQ number of the soundblaster.
# Possible values: 7, 5, 3, 9, 10, 11, 12.
# dma: The DMA number of the soundblaster.
# Possible values: 1, 5, 0, 3, 6, 7.
# hdma: The High DMA number of the soundblaster.
# Possible values: 1, 5, 0, 3, 6, 7.
# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.
# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.
# Possible values: auto, cms, opl2, dualopl2, opl3, none.
# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).
# Possible values: default, compat, fast.
# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).
# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.
sbtype=none
sbbase=220
irq=7
dma=1
hdma=5
sbmixer=false
oplmode=none
oplemu=default
oplrate=44100
[gus]
# gus: Enable the Gravis Ultrasound emulation.
# gusrate: Sample rate of Ultrasound emulation.
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# gusbase: The IO base address of the Gravis Ultrasound.
# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.
# gusirq: The IRQ number of the Gravis Ultrasound.
# Possible values: 5, 3, 7, 9, 10, 11, 12.
# gusdma: The DMA channel of the Gravis Ultrasound.
# Possible values: 3, 0, 1, 5, 6, 7.
# ultradir: Path to Ultrasound directory. In this directory
# there should be a MIDI directory that contains
# the patch files for GUS playback. Patch sets used
# with Timidity should work fine.
gus=false
gusrate=44100
gusbase=240
gusirq=5
gusdma=3
ultradir=~
[speaker]
# pcspeaker: Enable PC-Speaker emulation.
# pcrate: Sample rate of the PC-Speaker sound generation.
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.
# Possible values: auto, on, off.
# tandyrate: Sample rate of the Tandy 3-Voice generation.
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).
pcspeaker=false
pcrate=44100
tandy=auto
tandyrate=44100
disney=false
[joystick]
# joysticktype: Type of joystick to emulate: auto (default), none,
# 2axis (supports two joysticks),
# 4axis (supports one joystick, first joystick used),
# 4axis_2 (supports one joystick, second joystick used),
# fcs (Thrustmaster), ch (CH Flightstick).
# none disables joystick emulation.
# auto chooses emulation depending on real joystick(s).
# (Remember to reset dosbox's mapperfile if you saved it earlier)
# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.
# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).
# autofire: continuously fires as long as you keep the button pressed.
# swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.
# buttonwrap: enable button wrapping at the number of emulated buttons.
joysticktype=none
[serial]
# serial1: set type of device connected to com port.
# Can be disabled, dummy, modem, nullmodem, directserial.
# Additional parameters must be in the same line in the form of
# parameter:value. Parameter for all types is irq (optional).
# for directserial: realport (required), rxdelay (optional).
# (realport:COM1 realport:ttyS0).
# for modem: listenport (optional).
# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
# transparent, port, inhsocket (all optional).
# Example: serial1=modem listenport:5000
# Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial2: see serial1
# Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial3: see serial1
# Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial4: see serial1
# Possible values: dummy, disabled, modem, nullmodem, directserial.
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled
[dos]
# xms: Enable XMS support.
# ems: Enable EMS support.
# umb: Enable UMB support.
# keyboardlayout: Language code of the keyboard layout (or none).
xms=true
ems=true
umb=true
keyboardlayout=auto
[ipx]
# ipx: Enable ipx over UDP/IP emulation.
ipx=false
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount d .
d:
cd \

View File

@@ -0,0 +1,166 @@
CPPU_OBJECTS := \
$(CPPUTEST_HOME)/src/CppUTest/CommandLineArguments.o \
$(CPPUTEST_HOME)/src/CppUTest/CommandLineTestRunner.o \
$(CPPUTEST_HOME)/src/CppUTest/JUnitTestOutput.o \
$(CPPUTEST_HOME)/src/CppUTest/TeamCityTestOutput.o \
$(CPPUTEST_HOME)/src/CppUTest/MemoryLeakDetector.o \
$(CPPUTEST_HOME)/src/CppUTest/MemoryLeakWarningPlugin.o \
$(CPPUTEST_HOME)/src/CppUTest/SimpleMutex.o \
$(CPPUTEST_HOME)/src/CppUTest/SimpleString.o \
$(CPPUTEST_HOME)/src/CppUTest/SimpleStringInternalCache.o \
$(CPPUTEST_HOME)/src/CppUTest/TestFailure.o \
$(CPPUTEST_HOME)/src/CppUTest/TestFilter.o \
$(CPPUTEST_HOME)/src/CppUTest/TestHarness_c.o \
$(CPPUTEST_HOME)/src/CppUTest/TestMemoryAllocator.o \
$(CPPUTEST_HOME)/src/CppUTest/TestOutput.o \
$(CPPUTEST_HOME)/src/CppUTest/TestPlugin.o \
$(CPPUTEST_HOME)/src/CppUTest/TestRegistry.o \
$(CPPUTEST_HOME)/src/CppUTest/TestTestingFixture.o \
$(CPPUTEST_HOME)/src/CppUTest/TestResult.o \
$(CPPUTEST_HOME)/src/CppUTest/Utest.o \
$(CPPUTEST_HOME)/src/Platforms/Dos/UtestPlatform.o
CPPUX_OBJECTS := \
$(CPPUTEST_HOME)/src/CppUTestExt/CodeMemoryReportFormatter.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MemoryReporterPlugin.o \
$(CPPUTEST_HOME)/src/CppUTestExt/IEEE754ExceptionsPlugin.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockFailure.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockSupportPlugin.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockActualCall.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockSupport_c.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MemoryReportAllocator.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockExpectedCall.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockNamedValue.o \
$(CPPUTEST_HOME)/src/CppUTestExt/OrderedTest.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MemoryReportFormatter.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockExpectedCallsList.o \
$(CPPUTEST_HOME)/src/CppUTestExt/MockSupport.o
CPPU1_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/AllocLetTestFree.o \
$(CPPUTEST_HOME)/tests/CppUTest/AllocLetTestFreeTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/CheatSheetTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/CompatabilityTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/CommandLineArgumentsTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/CommandLineTestRunnerTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/JUnitOutputTest.o
CPPU2_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/DummyMemoryLeakDetector.o \
$(CPPUTEST_HOME)/tests/CppUTest/MemoryLeakWarningTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/PluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/PreprocessorTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/SetPluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/SimpleMutexTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TeamCityOutputTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestFailureNaNTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestFailureTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestResultTest.o \
CPPU3_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/MemoryLeakDetectorTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/SimpleStringTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/SimpleStringCacheTest.o
CPPU4_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestOutputTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestRegistryTest.o \
CPPU5_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/AllocationInCFile.o \
$(CPPUTEST_HOME)/tests/CppUTest/AllocationInCppFile.o \
$(CPPUTEST_HOME)/tests/CppUTest/MemoryOperatorOverloadTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TeamCityOutputTest.o
CPPU6_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestFilterTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestHarness_cTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestHarness_cTestCFile.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestInstallerTest.o
CPPU7_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestMemoryAllocatorTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestUTestMacro.o
CPPU8_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTest/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTest/UtestPlatformTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/UtestTest.o \
$(CPPUTEST_HOME)/tests/CppUTest/TestUTestStringMacro.o \
CPPUX1_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/ExpectedFunctionsListTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/GMockTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/GTest1Test.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/GTest2ConvertorTest.o
CPPUX2_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MemoryReportAllocatorTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MemoryReportFormatterTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MemoryReporterPluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockActualCallTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockCheatSheetTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockComparatorCopierTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockExpectedCallTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockHierarchyTest.o
CPPUX3_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/CodeMemoryReporterTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/OrderedTestTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/OrderedTestTest_c.o \
CPPUX4_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockReturnValueTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockNamedValueTest.o
CPPUX5_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockPluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockSupport_cTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockSupport_cTestCFile.o \
CPPUX6_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/ExpectedFunctionsListTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockCallTest.o
CPPUX7_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockComparatorCopierTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockHierarchyTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockParameterTest.o \
CPPUX8_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/IEEE754PluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/IEEE754PluginTest_c.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockComparatorCopierTest.o
CPPUX9_OBJECTS := \
$(CPPUTEST_HOME)/tests/CppUTestExt/AllTests.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureReporterForTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockFailureTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockHierarchyTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockPluginTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockReturnValueTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockStrictOrderTest.o \
$(CPPUTEST_HOME)/tests/CppUTestExt/MockSupportTest.o \

View File

@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?>
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="0.581606933">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.581606933" moduleId="org.eclipse.cdt.core.settings" name="Libraries">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="Builds CppUTest Libraries" id="0.581606933" name="Libraries" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.581606933." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.69076608" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.69076608.481036739" name=""/>
<builder autoBuildTarget="all" buildPath="${ProjDirPath}/../../cpputest_build" enableAutoBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.463471977" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.980890779" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.497481341" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1586102941" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.914890443" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.946693891" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1938278235" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1381830975" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.456763257" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.197274960" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1106915402" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="0.581606933.864112877">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.581606933.864112877" moduleId="org.eclipse.cdt.core.settings" name="Check">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="CppUTest" buildProperties="" description="Build and run all unit tests" id="0.581606933.864112877" name="Check" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.581606933.864112877." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.427728365" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.427728365.725959122" name=""/>
<builder arguments="" autoBuildTarget="tdd" buildPath="${ProjDirPath}/../../cpputest_build" cleanBuildTarget="clean" command="make" enableAutoBuild="true" enableCleanBuild="true" enabledIncrementalBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.1430383305" incrementalBuildTarget="tdd" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="false" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1899717736" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.1251878891" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.626609223" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1247926451" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.1076507031" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.18163399" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.183401918" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.766024099" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.620775716" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.474872889" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="0.581606933.1410883722">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.581606933.1410883722" moduleId="org.eclipse.cdt.core.settings" name="CppUTestTests">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="Build and run tests for CppUTest" id="0.581606933.1410883722" name="CppUTestTests" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.581606933.1410883722." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1978962662" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1978962662.1348740692" name=""/>
<builder autoBuildTarget="CppUTestTests.exe" buildPath="${ProjDirPath}/../../cpputest_build" enableAutoBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.578134440" incrementalBuildTarget="CppUTestTests.exe" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1486838934" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.1651912377" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.823025199" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.2003620861" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.659434773" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.155995695" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1637685074" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.1694850230" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.317436727" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.133474977" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="0.581606933.1410883722.94500350">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.581606933.1410883722.94500350" moduleId="org.eclipse.cdt.core.settings" name="CppUTestExtTests">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="Build tests for CppUTest extensions" id="0.581606933.1410883722.94500350" name="CppUTestExtTests" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.581606933.1410883722.94500350." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1055487416" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1055487416.566542440" name=""/>
<builder autoBuildTarget="CppUTestExtTests.exe" buildPath="${ProjDirPath}/../../cpputest_build" enableAutoBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.978442879" incrementalBuildTarget="CppUTestExtTests.exe" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.169225611" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.15343133" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1288098138" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1921155738" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.1942997773" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.232229350" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1257102295" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.1326487419" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option id="org.eclipse.cdt.build.core.settings.holder.incpaths.1065275934" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../${ECLIPSE_STDLIB}&quot;"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.176229035" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="CppUTest.null.1334537591" name="CppUTest"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="0.581606933">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/CppUTest"/>
</configuration>
<configuration configurationName="Check">
<resource resourceType="PROJECT" workspacePath="/CppUTest"/>
</configuration>
<configuration configurationName="CppUTestExtTests">
<resource resourceType="PROJECT" workspacePath="/CppUTest"/>
</configuration>
<configuration configurationName="Libraries"/>
<configuration configurationName="Debug">
<resource resourceType="PROJECT" workspacePath="/CppUTest"/>
</configuration>
<configuration configurationName="CppUTestTests">
<resource resourceType="PROJECT" workspacePath="/CppUTest"/>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets>
<target name="extensions" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>extensions</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="examples" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>examples</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="cleanExamples" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>cleanExamples</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
</buildTargets>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
</cproject>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.cdt.testsrunner.launch.CTestsRunner">
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_ARGUMENTS" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="cpputest_build/CppUTestExtTests.exe"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="CppUTest"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="0.581606933.1410883722.94500350"/>
<booleanAttribute key="org.eclipse.cdt.launch.use_terminal" value="true"/>
<stringAttribute key="org.eclipse.cdt.testsrunner.launch.TESTS_RUNNER" value="org.eclipse.cdt.testsrunner.cpputest"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/CppUTest"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.testsrunner.TestingProcessFactory"/>
</launchConfiguration>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.cdt.testsrunner.launch.CTestsRunner">
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_ARGUMENTS" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="cpputest_build/CppUTestTests.exe"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="CppUTest"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="0.581606933.1410883722"/>
<booleanAttribute key="org.eclipse.cdt.launch.use_terminal" value="true"/>
<stringAttribute key="org.eclipse.cdt.testsrunner.launch.TESTS_RUNNER" value="org.eclipse.cdt.testsrunner.cpputest"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/CppUTest"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.testsrunner.TestingProcessFactory"/>
</launchConfiguration>

View File

@@ -0,0 +1,65 @@
## Using the Eclipse-Cygwin Project
This project is for use on the Windows platform. These are the steps required for using it. (If you only wish to compile the CppUTest libraries, it is recommended that you use the method described at http://cpputest.github.io, rather than setting up Eclipse).
### Preparation
#### 1. Install Cygwin
You need to have Cygwin installed, with at least the Gnu C\C++ compiler, make, autotools and libtool. Please follow the instructions at http://cpputest.github.io to build CppUTest from the Cygwin bash prompt.
#### 2. Set your PATH
Next, you need to add the path to your Cygwin binaries to your Windows system path, e.g.
```dos
C:\<path_to_Cygwin>\Cygwin\bin
```
#### 3. Install Eclipse CDT
Use your existing Eclipse CDT (Juno, Kepler, ...) or unpack the release to your system drive. You may use the 32 bit version as it will work on all systems. Unless you have a specific reason, you do not require the 64 bit version. You may need to install or update your Java JRE and add it to your system path. The JRE needs to match, e.g. 32 bit Eclipse requires the 32 bit JRE.
#### 4. Install the C/C++Unit plugin
Open Eclipse.
Accept the default workspace for now (you may want to set a more appropriate workspace location later on). Then install the "C/C++ Unit Test" plugin:
"Help"->"Install New Software"-> work with "Kepler - http://download.eclipse.org/releases/kepler".
You will find the plugin under:
```
[ ] Programming Languages
[x] C/C++ Unit Testing Support.
```
While you are at it, you might also want to install:
```
[ ] Linux Tools
[x] Gcov Integration
```
#### 5. Add the CppUTest plugin
Clone the [CppUTest Eclipse Test Runner](https://github.com/tcmak/CppUTestEclipseJunoTestRunner) and add it to Eclipse following the instructions there.
### Import this project into Eclipse
In Eclipse you can't simply "open" a project - you have to first import it into the workspace:
* File->Import...->General->Existing Projects into workspace
* [Next >]->Select root directory: `<cpputest_dir>/Platforms/Eclipse-Cygwin`
* Make sure that `[ ] Copy projects into workspace` is **NOT** ticked.
* Click Finish.
### Compile and run tests
Before you can compile CppUTest in Eclipse, you must configure it using Automake. Instructions can be found at http://cpputest.github.io/. Once you have done this, select a configuration (Libraries, Check, CppUTestTests or CppUTestExtTests) via Project->BuildConfiguration->Set Active>. The 'Check' configuration will build the libraries along with all tests and run the tests.
### Working with the C/C++ Unit plugin
Make sure your unit test executable has been built and exists, e.g. cpputest_build/CppUTestTests.exe.
The first time you run tests using the plugin, you need to select them via
Run->Run Configurations...->C/C++Unit->CppUTestTest.
Click [Run]. (If Run is greyed out, you need to build the configuration CppUTestTests first)
Once you have run the tests at least once, you should be able to select them by clicking the down triangle next to the green "Run" icon, where it should be listed right at the top. On subsequent runs, the executable will be built automatically, if necessary.
Note that launch configurations have been included with this project; in your own projects, you will need to create these yourself.
This is an example of what a successful test run would look like:
![Successful Test Run](https://raw.githubusercontent.com/cpputest/cpputest.github.io/master/images/eclipse-testrunner-01.png)
You can select and rerun individual tests in the upper pane, and error messages for failed tests will appear in the lower pane.
### Troubleshooting
#### Problem: I am getting no test results...
...but you know your tests should have run, and you did not receive any error message.
##### Possible Reason:
This can happen if the Cygwin-generated binary can't find the Cygwin DLLs. (If you were to run your test executable at the Windows cmd prompt, you would see a Windows error message box to that effect). Since no error message is displayed in the console via stderr, this leaves the test runner ignorant of what happenend
##### Solution:
You need to add <path_to_Cygwin>/Cygwin/bin to your system PATH variable. Then you must restart Eclipse.

View File

@@ -0,0 +1,194 @@
# We don't need to clean up when we're making these targets
NODEPS := clean debug
# CPU architecture. Passing to armcc.exe. For list: armcc --cpu list
ifndef CPU
CPU = ARM7TDMI
endif
# ARM/THUMB mode. Passing to armcc.exe. May be 'thumb' or 'arm'
ifndef CPU_MODE
CPU_MODE = thumb
endif
# Path to cygwin binary
CYGWIN_DIR :=C:/CYGWIN/bin
# Path to ARMCC of Keil MDK-ARM, with libraries, includes and executables
KEIL_DIR :=D:/Keil/ARM/ARMCC
MKDIR :=$(CYGWIN_DIR)/mkdir
RM :=$(CYGWIN_DIR)/rm
CC :=@$(KEIL_DIR)/bin/armcc.exe
AR :=@$(KEIL_DIR)/bin/armar.exe
# source CppUTest files
CPPUTEST_HOME := ../..
COMPONENT_NAME := CppUTest
INCLUDE_DIRS :=\
$(CPPUTEST_HOME)/include \
# armcc system include path
SYS_INCLUDE_DIRS:=$(KEIL_DIR)/include
SRC_DIRS :=\
$(CPPUTEST_HOME)/src/$(COMPONENT_NAME)\
$(CPPUTEST_HOME)/src/Platforms/armcc\
TARGET_PLATFORM :=armcc_$(CPU)_$(CPU_MODE)
CPPUTEST_USE_MEM_LEAK_DETECTION := N
CPPUTEST_USE_STD_CPP_LIB := N
CPPUTEST_USE_VPATH := Y
CPPUTEST_USE_STD_C_LIB := Y
CPPUTEST_ENABLE_DEBUG := Y
# Default dir for temporary files (d, o)
# Default dir for the outout library
CPPUTEST_OBJS_DIR = objs
CPPUTEST_LIB_DIR = $(CPPUTEST_HOME)/lib/$(TARGET_PLATFORM)
TARGET_LIB = \
$(CPPUTEST_LIB_DIR)/lib$(COMPONENT_NAME).a
#Helper Functions
get_src_from_dir = $(wildcard $1/*.cpp) $(wildcard $1/*.cc) $(wildcard $1/*.c)
get_dirs_from_dirspec = $(wildcard $1)
get_src_from_dir_list = $(foreach dir, $1, $(call get_src_from_dir,$(dir)))
__src_to = $(subst .c,$1, $(subst .cc,$1, $(subst .cpp,$1,$(if $(CPPUTEST_USE_VPATH),$(notdir $2),$2))))
src_to = $(addprefix $(CPPUTEST_OBJS_DIR)/,$(call __src_to,$1,$2))
src_to_o = $(call src_to,.o,$1)
src_to_d = $(call src_to,.d,$1)
src_to_gcda = $(call src_to,.gcda,$1)
src_to_gcno = $(call src_to,.gcno,$1)
time = $(shell date +%s)
delta_t = $(eval minus, $1, $2)
debug_print_list = $(foreach word,$1,echo " $(word)";) echo;
#Derived
SRC = $(call get_src_from_dir_list, $(SRC_DIRS))
OBJ = $(call src_to_o,$(SRC))
STUFF_TO_CLEAN = $(OBJ)
ALL_SRC = $(SRC)
CPUFLAGS =--cpu=$(CPU)
ifeq ($(CPU_MODE), thumb)
CPUFLAGS +=--apcs=/interwork
endif
DEPFLAGS =$(CPUFLAGS) -M $(INCLUDES) --depend_format=unix_escaped --depend_single_line --no_depend_system_headers
OPTFLAGS =-O1
CCFLAGS =$(CPUFLAGS) $(OPTFLAGS) -c $(INCLUDES)\
--$(CPU_MODE)\
--exceptions\
-D__CLK_TCK=1000\
# If we're using VPATH
ifeq ($(CPPUTEST_USE_VPATH), Y)
# gather all the source directories and add them
VPATH += $(sort $(dir $(ALL_SRC)))
# Add the component name to the objs dir path, to differentiate between same-name objects
CPPUTEST_OBJS_DIR := $(addsuffix /$(COMPONENT_NAME),$(CPPUTEST_OBJS_DIR))
endif
INCLUDES_DIRS_EXPANDED = $(call get_dirs_from_dirspec, $(INCLUDE_DIRS))
INCLUDES += $(foreach dir, $(INCLUDES_DIRS_EXPANDED), -I$(dir))
DEP_FILES = $(call src_to_d, $(ALL_SRC))
STUFF_TO_CLEAN += $(DEP_FILES)
# Without the C library, we'll need to disable the C++ library and ...
ifeq ($(CPPUTEST_USE_STD_C_LIB), N)
CPPUTEST_USE_STD_CPP_LIB = N
CPPUTEST_USE_MEM_LEAK_DETECTION = N
CCFLAGS += -DCPPUTEST_STD_C_LIB_DISABLED
else
INCLUDE_DIRS +=$(SYS_INCLUDE_DIRS)
endif
ifeq ($(CPPUTEST_USE_MEM_LEAK_DETECTION), N)
CCFLAGS += -DCPPUTEST_MEM_LEAK_DETECTION_DISABLED
endif
ifeq ($(CPPUTEST_ENABLE_DEBUG), Y)
CCFLAGS += -g
ARFLAGS := --debug_symbols
endif
ifeq ($(CPPUTEST_USE_STD_CPP_LIB), N)
CCFLAGS += -DCPPUTEST_STD_CPP_LIB_DISABLED
endif
OBJS_DIRS :=$(sort $(dir $(STUFF_TO_CLEAN)))
$(OBJS_DIRS) $(CPPUTEST_LIB_DIR):
@echo Updating directory $@
$(MKDIR) -p $@
#This is the rule for creating the dependency files
$(CPPUTEST_OBJS_DIR)/%.d: %.c Makefile | $(OBJS_DIRS)
@echo Compiling C file $< for dependency. Out file $@.
$(CC) $(DEPFLAGS) $< --depend=$@ --depend_target='$(patsubst %.d,%.o,$@)'
$(CPPUTEST_OBJS_DIR)/%.d: %.cpp Makefile | $(OBJS_DIRS)
@echo Compiling C++ file $< for dependency. Out file $@.
$(CC) $(DEPFLAGS) $< --depend=$@ --depend_target='$(patsubst %.d,%.o,$@)'
#This rule does the compilation C++ files
$(CPPUTEST_OBJS_DIR)/%.o: %.cpp $(CPPUTEST_OBJS_DIR)/%.d Makefile
@echo Compiling C++ file $<. Out file $@
$(CC) $(CCFLAGS) $< -o $@
#This rule does the compilation C files
$(CPPUTEST_OBJS_DIR)/%.o: %.c $(CPPUTEST_OBJS_DIR)/%.d Makefile
@echo Compiling C file $<. Out file $@
$(CC) $(CCFLAGS) $< -o $@
$(TARGET_LIB): $(OBJ) | $(CPPUTEST_LIB_DIR)
@echo Archiving to $@
$(AR) $(ARFLAGS) --create $@ $^
.PHONY: all
all: $(TARGET_LIB)
@echo Done!
.PHONY: debug
debug:
@echo
@echo "Target Source files:"
@$(call debug_print_list,$(SRC))
@echo "Target Object files:"
@$(call debug_print_list,$(OBJ))
@echo "All Input Dependency files:"
@$(call debug_print_list,$(DEP_FILES))
@echo Stuff to clean:
@$(call debug_print_list,$(STUFF_TO_CLEAN))
@echo Includes:
@$(call debug_print_list,$(INCLUDES))
@echo Directories to create:
@$(call debug_print_list,$(OBJS_DIRS))
@echo Directories of CppUTest object files:
@$(call debug_print_list,$(CPPUTEST_OBJS_DIR))
@echo Flags:
@$(call debug_print_list,$(CCFLAGS))
#Don't create dependencies when we're cleaning, for instance
ifeq (0, $(words $(findstring $(MAKECMDGOALS), $(NODEPS))))
-include $(DEP_FILES)
endif
clean:
@$(RM) -rf $(STUFF_TO_CLEAN)

View File

@@ -0,0 +1,69 @@
Makefile to build CppUTest library to run in hardware using ARM C/C++ compiler.
Also it is possible to build CppUTestExt library using
"make all COMPONENT_NAME=CppUTestExt".
All libraries is placed in lib directory of CppUTest home.
Thumb mode is using. For ARM mode, you need to remove compiler key
"--apcs=/interwork" and change $(CPU_MODE) to arm.
You need installed CYGWIN with make.exe, rm.exe, mkdir.exe and installed
Keil MDK-ARM.
For compiling CppUTest library using ARMCC, please adjust Makefile:
1. # Path to cygwin binary
CYGWIN_DIR :=C:/CYGWIN/bin
2. # Path to ARMCC of Keil MDK-ARM, with libraries, includes and executables
KEIL_DIR :=D:/Keil/ARM/ARMCC
3. # source CppUTest files
CPPUTEST_HOME := ../..
4. other options explained in $(CPPUTEST_HOME)/build/MakefileWorker.mk
CPPUTEST_USE_MEM_LEAK_DETECTION := Y
CPPUTEST_USE_STD_CPP_LIB := N
CPPUTEST_USE_VPATH := Y
CPPUTEST_USE_STD_C_LIB := Y
CPPUTEST_ENABLE_DEBUG := Y
You may add additional options "CPU=xx" and "CPU_MODE=yy"
CPU is an option that passed to armcc.exe. It selects CPU. List of CPU is
available by executing 'armcc.exe --cpu list'.
Default CPU architecture is ARM7TDMI.
For armcc v5.02 build 28, CPU is one of the next:
ARM7EJ-S
ARM7TM
ARM7TDM
ARM7TDMI
ARM710T
ARM720T
ARM740T
ARM7TM-S
ARM7TDMI-S
ARM9TDMI
ARM920T
ARM922T
ARM940T
ARM9E-S
ARM9EJ-S
ARM926EJ-S
ARM946E-S
ARM966E-S
ARM968E-S
Cortex-M0
Cortex-M0plus
SC000
Cortex-M1
Cortex-M1.os_extension
Cortex-M1.no_os_extension
Cortex-M3
Cortex-M3-rev0
SC300
Cortex-M4
Cortex-M4.fp
Cortex-R4
Cortex-R4F
CPU_MODE is one of 'arm', 'thumb'.
Default is thumb.
Tested with Keil MDK-ARM Pro v4.60

View File

@@ -0,0 +1,6 @@
I am not familiar with automake.
There is need to change build libCppUTest.a for target platform from
makefile in current directory to automake in CppUTest root directory.
And keep in mind that I want to add gcc way, and the others may want to add
some instructions for different compilers and chips.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<workspace>
<project>
<path>$WS_DIR$\CppUTest.ewp</path>
</project>
<project>
<path>$WS_DIR$\CppUTestExt.ewp</path>
</project>
<project>
<path>$WS_DIR$\CppUTestExtTest.ewp</path>
</project>
<project>
<path>$WS_DIR$\CppUTestTest.ewp</path>
</project>
<batchBuild/>
</workspace>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_1.xml" */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_IROM1_start__ = 0x00000080;
define symbol __ICFEDIT_region_IROM1_end__ = 0x000FFFFF;
define symbol __ICFEDIT_region_IROM2_start__ = 0x0;
define symbol __ICFEDIT_region_IROM2_end__ = 0x0;
define symbol __ICFEDIT_region_EROM1_start__ = 0x0;
define symbol __ICFEDIT_region_EROM1_end__ = 0x0;
define symbol __ICFEDIT_region_EROM2_start__ = 0x0;
define symbol __ICFEDIT_region_EROM2_end__ = 0x0;
define symbol __ICFEDIT_region_EROM3_start__ = 0x0;
define symbol __ICFEDIT_region_EROM3_end__ = 0x0;
define symbol __ICFEDIT_region_IRAM1_start__ = 0x00100000;
define symbol __ICFEDIT_region_IRAM1_end__ = 0x001FFFFF;
define symbol __ICFEDIT_region_IRAM2_start__ = 0x0;
define symbol __ICFEDIT_region_IRAM2_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM1_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM1_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM2_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM2_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM3_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM3_end__ = 0x0;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x2000;
define symbol __ICFEDIT_size_svcstack__ = 0x100;
define symbol __ICFEDIT_size_irqstack__ = 0x100;
define symbol __ICFEDIT_size_fiqstack__ = 0x100;
define symbol __ICFEDIT_size_undstack__ = 0x100;
define symbol __ICFEDIT_size_abtstack__ = 0x100;
define symbol __ICFEDIT_size_heap__ = 0x10000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__]
| mem:[from __ICFEDIT_region_IROM2_start__ to __ICFEDIT_region_IROM2_end__];
define region EROM_region = mem:[from __ICFEDIT_region_EROM1_start__ to __ICFEDIT_region_EROM1_end__]
| mem:[from __ICFEDIT_region_EROM2_start__ to __ICFEDIT_region_EROM2_end__]
| mem:[from __ICFEDIT_region_EROM3_start__ to __ICFEDIT_region_EROM3_end__];
define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__]
| mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__];
define region ERAM_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__]
| mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__]
| mem:[from __ICFEDIT_region_ERAM3_start__ to __ICFEDIT_region_ERAM3_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
do not initialize { section .noinit };
initialize by copy { readwrite };
if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
{
// Required in a multi-threaded application
initialize by copy with packing = none { section __DLIB_PERTHREAD };
}
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in IROM_region { readonly };
place in EROM_region { readonly section application_specific_ro };
place in IRAM_region { readwrite,
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
block UND_STACK, block ABT_STACK, block HEAP };
place in ERAM_region { readwrite section application_specific_rw };

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_1.xml" */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_IROM1_start__ = 0x00000080;
define symbol __ICFEDIT_region_IROM1_end__ = 0x000FFFFF;
define symbol __ICFEDIT_region_IROM2_start__ = 0x0;
define symbol __ICFEDIT_region_IROM2_end__ = 0x0;
define symbol __ICFEDIT_region_EROM1_start__ = 0x0;
define symbol __ICFEDIT_region_EROM1_end__ = 0x0;
define symbol __ICFEDIT_region_EROM2_start__ = 0x0;
define symbol __ICFEDIT_region_EROM2_end__ = 0x0;
define symbol __ICFEDIT_region_EROM3_start__ = 0x0;
define symbol __ICFEDIT_region_EROM3_end__ = 0x0;
define symbol __ICFEDIT_region_IRAM1_start__ = 0x00100000;
define symbol __ICFEDIT_region_IRAM1_end__ = 0x001FFFFF;
define symbol __ICFEDIT_region_IRAM2_start__ = 0x0;
define symbol __ICFEDIT_region_IRAM2_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM1_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM1_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM2_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM2_end__ = 0x0;
define symbol __ICFEDIT_region_ERAM3_start__ = 0x0;
define symbol __ICFEDIT_region_ERAM3_end__ = 0x0;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x2000;
define symbol __ICFEDIT_size_svcstack__ = 0x100;
define symbol __ICFEDIT_size_irqstack__ = 0x100;
define symbol __ICFEDIT_size_fiqstack__ = 0x100;
define symbol __ICFEDIT_size_undstack__ = 0x100;
define symbol __ICFEDIT_size_abtstack__ = 0x100;
define symbol __ICFEDIT_size_heap__ = 0x10000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__]
| mem:[from __ICFEDIT_region_IROM2_start__ to __ICFEDIT_region_IROM2_end__];
define region EROM_region = mem:[from __ICFEDIT_region_EROM1_start__ to __ICFEDIT_region_EROM1_end__]
| mem:[from __ICFEDIT_region_EROM2_start__ to __ICFEDIT_region_EROM2_end__]
| mem:[from __ICFEDIT_region_EROM3_start__ to __ICFEDIT_region_EROM3_end__];
define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__]
| mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__];
define region ERAM_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__]
| mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__]
| mem:[from __ICFEDIT_region_ERAM3_start__ to __ICFEDIT_region_ERAM3_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
do not initialize { section .noinit };
initialize by copy { readwrite };
if (isdefinedsymbol(__USE_DLIB_PERTHREAD))
{
// Required in a multi-threaded application
initialize by copy with packing = none { section __DLIB_PERTHREAD };
}
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in IROM_region { readonly };
place in EROM_region { readonly section application_specific_ro };
place in IRAM_region { readwrite,
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
block UND_STACK, block ABT_STACK, block HEAP };
place in ERAM_region { readwrite section application_specific_rw };

View File

@@ -0,0 +1,14 @@
#define NUM_ARGS 2
static char __argvbuf0[] = {"exe"};
static char __argvbuf1[] = {"-v"};
static int __argc = NUM_ARGS;
static char * __argv[NUM_ARGS] = { __argvbuf0, __argvbuf1 };
void __iar_argc_argv(void)
{
// setup R0 (argc) and R1 (argv) arguments to main (see cmain.s)
asm volatile ("MOVS R1, %0" : : "r" (__argv));
asm volatile ("MOVS R0, %0" : : "r" (__argc));
}