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,52 @@
#! armcc -E
; code upper need to use #define
;-------------------------------------------------------------------------------------
; Keil scatter loading file
; For LPC1833
;-------------------------------------------------------------------------------------
; Internal SRAM0
#define SRAM0_START 0x10000000
#define SRAM0_END 0x10008000
#define SRAM0_SIZE (SRAM0_END-SRAM0_START)
; Internal SRAM1
#define SRAM1_START 0x10080000
#define SRAM1_END 0x1008A000
#define SRAM1_SIZE (SRAM1_END-SRAM1_START)
; Internal SRAM2
#define SRAM2_START 0x20000000
#define SRAM2_END 0x20010000
#define SRAM2_SIZE (SRAM2_END-SRAM2_START)
; SDRAM
#define SDRAM_START 0x28000000
; Internal FLASHA
#define FLASHA_START 0x1A000000
#define FLASHA_END 0x1A040000
#define FLASHA_SIZE (FLASHA_END-FLASHA_START)
; Internal FLASHB
#define FLASHB_START 0x1B000000
#define FLASHB_END 0x1B040000
#define FLASHB_SIZE (FLASHB_END-FLASHB_START)
LR1 FLASHA_START FLASHA_SIZE {
ER1 FLASHA_START FLASHA_SIZE {
*(RESET, +FIRST)
*(InRoot$$Sections)
*.o (+RO)
}
ER2 SRAM0_START SRAM0_SIZE {
*.o (+RW +ZI)
}
ER4 (SRAM1_START) SRAM1_SIZE {
*(HEAP)
*(STACK)
}
}

View File

@@ -0,0 +1,83 @@
AppVersion = 46202
[GENERAL]
ConnectMode = 0
CurrentFile = "objs\can_eth.hex"
DataFileSAddr = 0x00000000
GUIMode = 0
HostName = ""
TargetIF = 0
USBPort = 0
USBSerialNo = 0x00000000
[JTAG]
IRLen = 0
MultipleTargets = 0
NumDevices = 0
Speed0 = 5
Speed1 = 4000
TAP_Number = 0
UseAdaptive0 = 0
UseAdaptive1 = 0
UseMaxSpeed0 = 1
UseMaxSpeed1 = 1
[CPU]
CheckCoreID = 1
ChipName = "NXP LPC1833"
ClockSpeed = 0x016E3600
Core = 0x030000FF
CoreID = 0x4BA00477
CoreIDMask = 0x0F000FFF
DeviceFamily = 0x00000003
EndianMode = 0
HasInternalFlash = 1
InitStep0_Action = "Reset"
InitStep0_Comment = "Reset and halt target"
InitStep0_Value0 = 0x00000000
InitStep0_Value1 = 0x00000000
NumExitSteps = 0
NumInitSteps = 1
RAMAddr = 0x10080000
RAMSize = 0x00008000
ScriptFile = ""
UseAutoSpeed = 0x00000001
UseRAM = 1
UseScriptFile = 0
[FLASH]
aSectorSel[22] = 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
AutoDetect = 0
BankName = ""
BankSelMode = 0
BaseAddr = 0x1A000000
CheckId = 0
CustomRAMCode = ""
DeviceName = "LPC1833 internal"
EndBank = 21
NumBanks = 1
OrgNumBits = 32
OrgNumChips = 1
StartBank = 0
UseCustomRAMCode = 0
[PRODUCTION]
AutoPerformsErase = 1
AutoPerformsHardLock = 0
AutoPerformsHardUnlock = 0
AutoPerformsProgram = 1
AutoPerformsSecure = 0
AutoPerformsSoftLock = 0
AutoPerformsSoftUnlock = 1
AutoPerformsStartApp = 1
AutoPerformsUnsecure = 0
AutoPerformsVerify = 1
EnableProductionMode = 0
EnableTargetPower = 0
EraseType = 1
ProductionDelay = 0x000001F4
ProductionThreshold = 0x00000BB8
ProgramSN = 0
SerialFile = ""
SNAddr = 0x00000000
SNInc = 0x00000001
SNLen = 0x00000008
SNListFile = ""
SNValue = 0x00000001
TargetPowerDelay = 0x00000014
VerifyType = 1

View File

@@ -0,0 +1,3 @@
/* this file is requred to build application library, armar.exe can't build
* libraries without at least one object input file.
*/

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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, const char** av)
{
/* These checks are here to make sure assertions outside test runs don't crash */
CHECK(true);
LONGS_EQUAL(1, 1);
return CommandLineTestRunner::RunAllTests(ac, av);
}

View File

@@ -0,0 +1,10 @@
#include "CppUTest/TestHarness.h"
TEST_GROUP(start)
{
};
TEST(start, first)
{
FAIL("Start here!");
}