From 47701a24b03dc7efcb25a729f9d287856906a99f Mon Sep 17 00:00:00 2001 From: Kei Date: Mon, 21 Aug 2017 17:05:55 +0900 Subject: [PATCH] Fixed #5 --- project/gcc/.cproject | 24 +- ...ilg.gnuarmeclipse.managedbuild.cross.prefs | 3 + project/gcc/.settings/language.settings.xml | 4 +- .../gcc/.settings/org.eclipse.cdt.core.prefs | 2 + project/mdk/W7500x_Platform_FW.uvopt | 63 +- project/mdk/W7500x_Platform_FW.uvproj | 14 +- src/common/common.h | 1 + src/hw/board/ldscripts/libs.ld | 8 + src/hw/board/ldscripts/mem.ld | 38 + src/hw/board/ldscripts/sections.ld | 389 ++++++ src/hw/board/startup/ExceptionHandlers.h | 57 + src/hw/board/startup/_exit.c | 60 + src/hw/board/startup/_initialize_hardware.c | 51 + src/hw/board/startup/_reset_hardware.c | 40 + src/hw/board/startup/_sbrk.c | 64 + src/hw/board/startup/_startup.c | 264 ++++ src/hw/board/startup/_syscalls.c | 1160 +++++++++++++++++ src/hw/board/startup/cmsis_device.h | 6 + src/hw/board/startup/exception_handlers.c | 128 ++ src/hw/board/startup/vectors_W7500x.c | 167 +++ src/main.c | 3 + src/{printf_retarget.c => retarget.c} | 4 +- 22 files changed, 2506 insertions(+), 44 deletions(-) create mode 100644 project/gcc/.settings/ilg.gnuarmeclipse.managedbuild.cross.prefs create mode 100644 src/hw/board/ldscripts/libs.ld create mode 100644 src/hw/board/ldscripts/mem.ld create mode 100644 src/hw/board/ldscripts/sections.ld create mode 100644 src/hw/board/startup/ExceptionHandlers.h create mode 100644 src/hw/board/startup/_exit.c create mode 100644 src/hw/board/startup/_initialize_hardware.c create mode 100644 src/hw/board/startup/_reset_hardware.c create mode 100644 src/hw/board/startup/_sbrk.c create mode 100644 src/hw/board/startup/_startup.c create mode 100644 src/hw/board/startup/_syscalls.c create mode 100644 src/hw/board/startup/cmsis_device.h create mode 100644 src/hw/board/startup/exception_handlers.c create mode 100644 src/hw/board/startup/vectors_W7500x.c rename src/{printf_retarget.c => retarget.c} (93%) diff --git a/project/gcc/.cproject b/project/gcc/.cproject index 0dcc676..ceb32fb 100644 --- a/project/gcc/.cproject +++ b/project/gcc/.cproject @@ -40,17 +40,16 @@