From 48c9246114e3e7e9b2687dd4e95ce6c03dec8949 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 22 Sep 2017 13:03:59 +0000 Subject: Removed XMC1100 stuff, will not be supported. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10680 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs | 2 +- demos/XMC/RT-XMC1100-XMC_2GO/.cproject | 52 - demos/XMC/RT-XMC1100-XMC_2GO/.project | 85 - demos/XMC/RT-XMC1100-XMC_2GO/Makefile | 226 -- demos/XMC/RT-XMC1100-XMC_2GO/chconf.h | 520 --- ...00-XMC_2GO (Segger JLink, Flash and Run).launch | 52 - demos/XMC/RT-XMC1100-XMC_2GO/main.c | 90 - demos/XMC/RT-XMC1100-XMC_2GO/readme.txt | 17 - .../Infineon/XMC1100/XMC1000_RomFunctionTable.h | 164 - os/common/ext/CMSIS/Infineon/XMC1100/XMC1100.h | 4230 -------------------- .../ext/CMSIS/Infineon/XMC1100/system_XMC1100.h | 84 - .../ARMCMx/compilers/GCC/ld/XMC1100x0064.ld | 85 - .../ARMCMx/compilers/GCC/mk/startup_xmc1100.mk | 12 - .../startup/ARMCMx/devices/XMC1100/cmparams.h | 74 - .../startup/ARMCMx/devices/XMC1100/veneers_gcc.S | 247 -- 15 files changed, 1 insertion(+), 5939 deletions(-) delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/.cproject delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/.project delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/Makefile delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/chconf.h delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/main.c delete mode 100644 demos/XMC/RT-XMC1100-XMC_2GO/readme.txt delete mode 100644 os/common/ext/CMSIS/Infineon/XMC1100/XMC1000_RomFunctionTable.h delete mode 100644 os/common/ext/CMSIS/Infineon/XMC1100/XMC1100.h delete mode 100644 os/common/ext/CMSIS/Infineon/XMC1100/system_XMC1100.h delete mode 100644 os/common/startup/ARMCMx/compilers/GCC/ld/XMC1100x0064.ld delete mode 100644 os/common/startup/ARMCMx/compilers/GCC/mk/startup_xmc1100.mk delete mode 100644 os/common/startup/ARMCMx/devices/XMC1100/cmparams.h delete mode 100644 os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S diff --git a/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs index eb5b7e3da..a97fb9049 100644 --- a/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs +++ b/demos/SPC5/RT-SPC56EC-EVB/Makefile_ghs @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -gnu99 -Ospeed -Onounroll + USE_OPT = -gnu99 -G -Ospeed -Onounroll endif # C specific options here (added to USE_OPT). diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/.cproject b/demos/XMC/RT-XMC1100-XMC_2GO/.cproject deleted file mode 100644 index bec7583fd..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/.cproject +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/.project b/demos/XMC/RT-XMC1100-XMC_2GO/.project deleted file mode 100644 index a2b3d3f1b..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/.project +++ /dev/null @@ -1,85 +0,0 @@ - - - RT-XMC1100-XMC_2GO - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - ?name? - - - - org.eclipse.cdt.make.core.append_environment - true - - - org.eclipse.cdt.make.core.autoBuildTarget - all - - - org.eclipse.cdt.make.core.buildArguments - -j1 - - - org.eclipse.cdt.make.core.buildCommand - make - - - org.eclipse.cdt.make.core.cleanBuildTarget - clean - - - org.eclipse.cdt.make.core.contents - org.eclipse.cdt.make.core.activeConfigSettings - - - org.eclipse.cdt.make.core.enableAutoBuild - false - - - org.eclipse.cdt.make.core.enableCleanBuild - true - - - org.eclipse.cdt.make.core.enableFullBuild - true - - - org.eclipse.cdt.make.core.fullBuildTarget - all - - - org.eclipse.cdt.make.core.stopOnError - true - - - org.eclipse.cdt.make.core.useDefaultBuildCmd - true - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - os - 2 - CHIBIOS/os - - - diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/Makefile b/demos/XMC/RT-XMC1100-XMC_2GO/Makefile deleted file mode 100644 index 3bfde6723..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/Makefile +++ /dev/null @@ -1,226 +0,0 @@ -############################################################################## -# Build global options -# NOTE: Can be overridden externally. -# - -# Compiler options here. -ifeq ($(USE_OPT),) - USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -endif - -# C specific options here (added to USE_OPT). -ifeq ($(USE_COPT),) - USE_COPT = -endif - -# C++ specific options here (added to USE_OPT). -ifeq ($(USE_CPPOPT),) - USE_CPPOPT = -fno-rtti -endif - -# Enable this if you want the linker to remove unused code and data -ifeq ($(USE_LINK_GC),) - USE_LINK_GC = yes -endif - -# Linker extra options here. -# NOTE: On XMC1100 the following symbols are mapped on the words CLK_VAL1 and -# CLK_VAL2. -ifeq ($(USE_LDOPT),) - USE_LDOPT = --defsym=__clk_val1=0x00010400,--defsym=__clk_val2=0x80000000 -endif - -# Enable this if you want link time optimizations (LTO) -ifeq ($(USE_LTO),) - USE_LTO = yes -endif - -# If enabled, this option allows to compile the application in THUMB mode. -ifeq ($(USE_THUMB),) - USE_THUMB = yes -endif - -# Enable this if you want to see the full log while compiling. -ifeq ($(USE_VERBOSE_COMPILE),) - USE_VERBOSE_COMPILE = no -endif - -# If enabled, this option makes the build process faster by not compiling -# modules not used in the current configuration. -ifeq ($(USE_SMART_BUILD),) - USE_SMART_BUILD = yes -endif - -# -# Build global options -############################################################################## - -############################################################################## -# Architecture or project specific options -# - -# Stack size to be allocated to the Cortex-M process stack. This stack is -# the stack used by the main() thread. -ifeq ($(USE_PROCESS_STACKSIZE),) - USE_PROCESS_STACKSIZE = 0x200 -endif - -# Stack size to the allocated to the Cortex-M main/exceptions stack. This -# stack is used for processing interrupts and exceptions. -ifeq ($(USE_EXCEPTIONS_STACKSIZE),) - USE_EXCEPTIONS_STACKSIZE = 0x400 -endif - -# Enables the use of FPU (no, softfp, hard). -ifeq ($(USE_FPU),) - USE_FPU = no -endif - -# -# Architecture or project specific options -############################################################################## - -############################################################################## -# Project, sources and paths -# - -# Define project name here -PROJECT = ch - -# Imported source files and paths -CHIBIOS = ../../.. -# Startup files. -include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_xmc1100.mk -# HAL-OSAL files (optional). -#include $(CHIBIOS)/os/hal/hal.mk -#include $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx/platform.mk -#include $(CHIBIOS)/os/hal/boards/ST_STM32F072B_DISCOVERY/board.mk -#include $(CHIBIOS)/os/hal/osal/rt/osal.mk -# RTOS files (optional). -include $(CHIBIOS)/os/rt/rt.mk -include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk -# Other files (optional). -#include $(CHIBIOS)/test/rt/test.mk - -# Define linker script file here -LDSCRIPT= $(STARTUPLD)/XMC1100x0064.ld - -# C sources that can be compiled in ARM or THUMB mode depending on the global -# setting. -CSRC = $(STARTUPSRC) \ - $(KERNSRC) \ - $(PORTSRC) \ - $(OSALSRC) \ - $(HALSRC) \ - $(PLATFORMSRC) \ - $(BOARDSRC) \ - $(TESTSRC) \ - main.c - -# C++ sources that can be compiled in ARM or THUMB mode depending on the global -# setting. -CPPSRC = - -# C sources to be compiled in ARM mode regardless of the global setting. -# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler -# option that results in lower performance and larger code size. -ACSRC = - -# C++ sources to be compiled in ARM mode regardless of the global setting. -# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler -# option that results in lower performance and larger code size. -ACPPSRC = - -# C sources to be compiled in THUMB mode regardless of the global setting. -# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler -# option that results in lower performance and larger code size. -TCSRC = - -# C sources to be compiled in THUMB mode regardless of the global setting. -# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler -# option that results in lower performance and larger code size. -TCPPSRC = - -# List ASM source files here -ASMSRC = -ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM) - -INCDIR = $(CHIBIOS)/os/license \ - $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \ - $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \ - $(CHIBIOS)/os/various - -# -# Project, sources and paths -############################################################################## - -############################################################################## -# Compiler settings -# - -MCU = cortex-m0 - -#TRGT = arm-elf- -TRGT = arm-none-eabi- -CC = $(TRGT)gcc -CPPC = $(TRGT)g++ -# Enable loading with g++ only if you need C++ runtime support. -# NOTE: You can use C++ even without C++ support if you are careful. C++ -# runtime support makes code size explode. -LD = $(TRGT)gcc -#LD = $(TRGT)g++ -CP = $(TRGT)objcopy -AS = $(TRGT)gcc -x assembler-with-cpp -AR = $(TRGT)ar -OD = $(TRGT)objdump -SZ = $(TRGT)size -HEX = $(CP) -O ihex -BIN = $(CP) -O binary - -# ARM-specific options here -AOPT = - -# THUMB-specific options here -TOPT = -mthumb -DTHUMB - -# Define C warning options here -CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes - -# Define C++ warning options here -CPPWARN = -Wall -Wextra -Wundef - -# -# Compiler settings -############################################################################## - -############################################################################## -# Start of user section -# - -# List all user C define here, like -D_DEBUG=1 -UDEFS = -DXMC1100 - -# Define ASM defines here -UADEFS = - -# List all user directories here -UINCDIR = - -# List the user directory to look for the libraries here -ULIBDIR = - -# List all user libraries here -ULIBS = - -# -# End of user defines -############################################################################## - -RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC -include $(RULESPATH)/rules.mk - -############################################################################## -# MISRA check rule, requires PCLint and the setup files, not provided. -# -misra: - @lint-nt -v -w3 $(DEFS) pclint/co-gcc.lnt pclint/au-misra3.lnt pclint/waivers.lnt $(IINCDIR) $(CSRC) &> misra.txt diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/chconf.h b/demos/XMC/RT-XMC1100-XMC_2GO/chconf.h deleted file mode 100644 index 59107b93c..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/chconf.h +++ /dev/null @@ -1,520 +0,0 @@ -/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -/** - * @file templates/chconf.h - * @brief Configuration file template. - * @details A copy of this file must be placed in each project directory, it - * contains the application specific kernel settings. - * - * @addtogroup config - * @details Kernel related settings and hooks. - * @{ - */ - -#ifndef CHCONF_H -#define CHCONF_H - -#define _CHIBIOS_RT_CONF_ - -/*===========================================================================*/ -/** - * @name System timers settings - * @{ - */ -/*===========================================================================*/ - -/** - * @brief System time counter resolution. - * @note Allowed values are 16 or 32 bits. - */ -#define CH_CFG_ST_RESOLUTION 32 - -/** - * @brief System tick frequency. - * @details Frequency of the system timer that drives the system ticks. This - * setting also defines the system tick time unit. - */ -#define CH_CFG_ST_FREQUENCY 1000 - -/** - * @brief Time delta constant for the tick-less mode. - * @note If this value is zero then the system uses the classic - * periodic tick. This value represents the minimum number - * of ticks that is safe to specify in a timeout directive. - * The value one is not valid, timeouts are rounded up to - * this value. - */ -#define CH_CFG_ST_TIMEDELTA 0 - -/** @} */ - -/*===========================================================================*/ -/** - * @name Kernel parameters and options - * @{ - */ -/*===========================================================================*/ - -/** - * @brief Round robin interval. - * @details This constant is the number of system ticks allowed for the - * threads before preemption occurs. Setting this value to zero - * disables the preemption for threads with equal priority and the - * round robin becomes cooperative. Note that higher priority - * threads can still preempt, the kernel is always preemptive. - * @note Disabling the round robin preemption makes the kernel more compact - * and generally faster. - * @note The round robin preemption is not supported in tickless mode and - * must be set to zero in that case. - */ -#define CH_CFG_TIME_QUANTUM 0 - -/** - * @brief Managed RAM size. - * @details Size of the RAM area to be managed by the OS. If set to zero - * then the whole available RAM is used. The core memory is made - * available to the heap allocator and/or can be used directly through - * the simplified core memory allocator. - * - * @note In order to let the OS manage the whole RAM the linker script must - * provide the @p __heap_base__ and @p __heap_end__ symbols. - * @note Requires @p CH_CFG_USE_MEMCORE. - */ -#define CH_CFG_MEMCORE_SIZE 0 - -/** - * @brief Idle thread automatic spawn suppression. - * @details When this option is activated the function @p chSysInit() - * does not spawn the idle thread. The application @p main() - * function becomes the idle thread and must implement an - * infinite loop. - */ -#define CH_CFG_NO_IDLE_THREAD FALSE - -/** @} */ - -/*===========================================================================*/ -/** - * @name Performance options - * @{ - */ -/*===========================================================================*/ - -/** - * @brief OS optimization. - * @details If enabled then time efficient rather than space efficient code - * is used when two possible implementations exist. - * - * @note This is not related to the compiler optimization options. - * @note The default is @p TRUE. - */ -#define CH_CFG_OPTIMIZE_SPEED TRUE - -/** @} */ - -/*===========================================================================*/ -/** - * @name Subsystem options - * @{ - */ -/*===========================================================================*/ - -/** - * @brief Time Measurement APIs. - * @details If enabled then the time measurement APIs are included in - * the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_TM FALSE - -/** - * @brief Threads registry APIs. - * @details If enabled then the registry APIs are included in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_REGISTRY TRUE - -/** - * @brief Threads synchronization APIs. - * @details If enabled then the @p chThdWait() function is included in - * the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_WAITEXIT TRUE - -/** - * @brief Semaphores APIs. - * @details If enabled then the Semaphores APIs are included in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_SEMAPHORES TRUE - -/** - * @brief Semaphores queuing mode. - * @details If enabled then the threads are enqueued on semaphores by - * priority rather than in FIFO order. - * - * @note The default is @p FALSE. Enable this if you have special - * requirements. - * @note Requires @p CH_CFG_USE_SEMAPHORES. - */ -#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE - -/** - * @brief Mutexes APIs. - * @details If enabled then the mutexes APIs are included in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_MUTEXES TRUE - -/** - * @brief Enables recursive behavior on mutexes. - * @note Recursive mutexes are heavier and have an increased - * memory footprint. - * - * @note The default is @p FALSE. - * @note Requires @p CH_CFG_USE_MUTEXES. - */ -#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE - -/** - * @brief Conditional Variables APIs. - * @details If enabled then the conditional variables APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_MUTEXES. - */ -#define CH_CFG_USE_CONDVARS TRUE - -/** - * @brief Conditional Variables APIs with timeout. - * @details If enabled then the conditional variables APIs with timeout - * specification are included in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_CONDVARS. - */ -#define CH_CFG_USE_CONDVARS_TIMEOUT TRUE - -/** - * @brief Events Flags APIs. - * @details If enabled then the event flags APIs are included in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_EVENTS TRUE - -/** - * @brief Events Flags APIs with timeout. - * @details If enabled then the events APIs with timeout specification - * are included in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_EVENTS. - */ -#define CH_CFG_USE_EVENTS_TIMEOUT TRUE - -/** - * @brief Synchronous Messages APIs. - * @details If enabled then the synchronous messages APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_MESSAGES TRUE - -/** - * @brief Synchronous Messages queuing mode. - * @details If enabled then messages are served by priority rather than in - * FIFO order. - * - * @note The default is @p FALSE. Enable this if you have special - * requirements. - * @note Requires @p CH_CFG_USE_MESSAGES. - */ -#define CH_CFG_USE_MESSAGES_PRIORITY FALSE - -/** - * @brief Mailboxes APIs. - * @details If enabled then the asynchronous messages (mailboxes) APIs are - * included in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_SEMAPHORES. - */ -#define CH_CFG_USE_MAILBOXES TRUE - -/** - * @brief Core Memory Manager APIs. - * @details If enabled then the core memory manager APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_MEMCORE TRUE - -/** - * @brief Heap Allocator APIs. - * @details If enabled then the memory heap allocator APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or - * @p CH_CFG_USE_SEMAPHORES. - * @note Mutexes are recommended. - */ -#define CH_CFG_USE_HEAP TRUE - -/** - * @brief Memory Pools Allocator APIs. - * @details If enabled then the memory pools allocator APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - */ -#define CH_CFG_USE_MEMPOOLS TRUE - -/** - * @brief Dynamic Threads APIs. - * @details If enabled then the dynamic threads creation APIs are included - * in the kernel. - * - * @note The default is @p TRUE. - * @note Requires @p CH_CFG_USE_WAITEXIT. - * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. - */ -#define CH_CFG_USE_DYNAMIC TRUE - -/** @} */ - -/*===========================================================================*/ -/** - * @name Debug options - * @{ - */ -/*===========================================================================*/ - -/** - * @brief Debug option, kernel statistics. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_STATISTICS FALSE - -/** - * @brief Debug option, system state check. - * @details If enabled the correct call protocol for system APIs is checked - * at runtime. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_SYSTEM_STATE_CHECK FALSE - -/** - * @brief Debug option, parameters checks. - * @details If enabled then the checks on the API functions input - * parameters are activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_CHECKS FALSE - -/** - * @brief Debug option, consistency checks. - * @details If enabled then all the assertions in the kernel code are - * activated. This includes consistency checks inside the kernel, - * runtime anomalies and port-defined checks. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_ASSERTS FALSE - -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. - */ -#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED - -/** - * @brief Trace buffer entries. - * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is - * different from @p CH_DBG_TRACE_MASK_DISABLED. - */ -#define CH_DBG_TRACE_BUFFER_SIZE 128 - -/** - * @brief Debug option, stack checks. - * @details If enabled then a runtime stack check is performed. - * - * @note The default is @p FALSE. - * @note The stack check is performed in a architecture/port dependent way. - * It may not be implemented or some ports. - * @note The default failure mode is to halt the system with the global - * @p panic_msg variable set to @p NULL. - */ -#define CH_DBG_ENABLE_STACK_CHECK FALSE - -/** - * @brief Debug option, stacks initialization. - * @details If enabled then the threads working area is filled with a byte - * value when a thread is created. This can be useful for the - * runtime measurement of the used stack. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_FILL_THREADS FALSE - -/** - * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p thread_t structure that - * counts the system ticks occurred while executing the thread. - * - * @note The default is @p FALSE. - * @note This debug option is not currently compatible with the - * tickless mode. - */ -#define CH_DBG_THREADS_PROFILING FALSE - -/** @} */ - -/*===========================================================================*/ -/** - * @name Kernel hooks - * @{ - */ -/*===========================================================================*/ - -/** - * @brief Threads descriptor structure extension. - * @details User fields added to the end of the @p thread_t structure. - */ -#define CH_CFG_THREAD_EXTRA_FIELDS \ - /* Add threads custom fields here.*/ - -/** - * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. - * - * @note It is invoked from within @p chThdInit() and implicitly from all - * the threads creation APIs. - */ -#define CH_CFG_THREAD_INIT_HOOK(tp) { \ - /* Add threads initialization code here.*/ \ -} - -/** - * @brief Threads finalization hook. - * @details User finalization code added to the @p chThdExit() API. - */ -#define CH_CFG_THREAD_EXIT_HOOK(tp) { \ - /* Add threads finalization code here.*/ \ -} - -/** - * @brief Context switch hook. - * @details This hook is invoked just before switching between threads. - */ -#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \ - /* Context switch code here.*/ \ -} - -/** - * @brief ISR enter hook. - */ -#define CH_CFG_IRQ_PROLOGUE_HOOK() { \ - /* IRQ prologue code here.*/ \ -} - -/** - * @brief ISR exit hook. - */ -#define CH_CFG_IRQ_EPILOGUE_HOOK() { \ - /* IRQ epilogue code here.*/ \ -} - -/** - * @brief Idle thread enter hook. - * @note This hook is invoked within a critical zone, no OS functions - * should be invoked from here. - * @note This macro can be used to activate a power saving mode. - */ -#define CH_CFG_IDLE_ENTER_HOOK() { \ - /* Idle-enter code here.*/ \ -} - -/** - * @brief Idle thread leave hook. - * @note This hook is invoked within a critical zone, no OS functions - * should be invoked from here. - * @note This macro can be used to deactivate a power saving mode. - */ -#define CH_CFG_IDLE_LEAVE_HOOK() { \ - /* Idle-leave code here.*/ \ -} - -/** - * @brief Idle Loop hook. - * @details This hook is continuously invoked by the idle thread loop. - */ -#define CH_CFG_IDLE_LOOP_HOOK() { \ - /* Idle loop code here.*/ \ -} - -/** - * @brief System tick event hook. - * @details This hook is invoked in the system tick handler immediately - * after processing the virtual timers queue. - */ -#define CH_CFG_SYSTEM_TICK_HOOK() { \ - /* System tick event code here.*/ \ -} - -/** - * @brief System halt hook. - * @details This hook is invoked in case to a system halting error before - * the system is halted. - */ -#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ - /* System halt code here.*/ \ -} - -/** - * @brief Trace hook. - * @details This hook is invoked each time a new record is written in the - * trace buffer. - */ -#define CH_CFG_TRACE_HOOK(tep) { \ - /* Trace code here.*/ \ -} - -/** @} */ - -/*===========================================================================*/ -/* Port-specific settings (override port settings defaulted in chcore.h). */ -/*===========================================================================*/ - -#endif /* CHCONF_H */ - -/** @} */ diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch b/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch deleted file mode 100644 index f5777583b..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/debug/RT-XMC1100-XMC_2GO (Segger JLink, Flash and Run).launch +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/main.c b/demos/XMC/RT-XMC1100-XMC_2GO/main.c deleted file mode 100644 index b16797d18..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/main.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -#include "ch.h" - -#if !defined(SYSTEM_CLOCK) -#define SYSTEM_CLOCK 8000000U -#endif - -/* - * @brief System Timer handler. - */ -CH_IRQ_HANDLER(SysTick_Handler) { - - CH_IRQ_PROLOGUE(); - - chSysLockFromISR(); - chSysTimerHandlerI(); - chSysUnlockFromISR(); - - CH_IRQ_EPILOGUE(); -} - -static uint32_t seconds_counter; -static uint32_t minutes_counter; - -/* - * Seconds counter thread. - */ -static THD_WORKING_AREA(waThread1, 128); -static THD_FUNCTION(Thread1, arg) { - - (void)arg; - - chRegSetThreadName("counter"); - - while (true) { - chThdSleepMilliseconds(1000); - seconds_counter++; - } -} - -/* - * Application entry point. - */ -int main(void) { - - /* - * Hardware initialization, in this simple demo just the systick timer is - * initialized. - */ - SysTick->LOAD = SYSTEM_CLOCK / CH_CFG_ST_FREQUENCY - (systime_t)1; - SysTick->VAL = (uint32_t)0; - SysTick->CTRL = SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk; - - /* - * System initializations. - * - Kernel initialization, the main() function becomes a thread and the - * RTOS is active. - */ - chSysInit(); - - /* - * Creates the example thread. - */ - chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); - - /* - * Normal main() thread activity, in this demo it does nothing except - * increasing the minutes counter. - */ - while (true) { - chThdSleepSeconds(2); - minutes_counter++; - } -} diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/readme.txt b/demos/XMC/RT-XMC1100-XMC_2GO/readme.txt deleted file mode 100644 index b3feb7551..000000000 --- a/demos/XMC/RT-XMC1100-XMC_2GO/readme.txt +++ /dev/null @@ -1,17 +0,0 @@ -***************************************************************************** -** ChibiOS/RT port for ARM-Cortex-M0. ** -***************************************************************************** - -** TARGET ** - -The demo targets a generic ARM Cortex-M4 device without HAL support. - -** The Demo ** - -** Build Procedure ** - -** Notes ** - -The files ch.ld and cmparams.h must be customized for your device. You also -need to provide the CMSIS compliant device header from your vendor, it this -demo an ST header is used. diff --git a/os/common/ext/CMSIS/Infineon/XMC1100/XMC1000_RomFunctionTable.h b/os/common/ext/CMSIS/Infineon/XMC1100/XMC1000_RomFunctionTable.h deleted file mode 100644 index 1ffc56ba2..000000000 --- a/os/common/ext/CMSIS/Infineon/XMC1100/XMC1000_RomFunctionTable.h +++ /dev/null @@ -1,164 +0,0 @@ -/*************************************************************************** */ -/** -* @file XMC1000_RomFunctionTable.h -* Infineon XMC Device Series -* @version V1.0 -* @date 08 April 2013 -* -Copyright (C) 2013 Infineon Technologies AG. All rights reserved. -* -* -* @par -* Infineon Technologies AG (Infineon) is supplying this software for use with -* Infineon's microcontrollers. This file can be freely distributed -* within development tools that are supporting such microcontrollers. -* -* @par -* THIS SOFTWARE IS PROVIDED AS IS. NO WARRANTIES, WHETHER EXPRESS, IMPLIED -* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF -* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. -* ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR -* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. -* -******************************************************************************/ - -/***************************************************************************** -************************* Version history ************************************ -V1.0, 08 Jan 2013, GD, First version with XMC1000 devices -*****************************************************************************/ - -#ifndef ROM_FUNCTION_TABLE_H -#define ROM_FUNCTION_TABLE_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* *************************************************************************** -******************************* Constants ******************************* -*************************************************************************** */ -/* Start address of the ROM function table */ -#define ROM_FUNCTION_TABLE_START (0x00000100U) - -/* Pointer to Erase Flash Page routine */ -#define _NvmErase (ROM_FUNCTION_TABLE_START + 0x00U) - -/* Pointer to Erase, Program & Verify Flash Page routine */ -#define _NvmProgVerify (ROM_FUNCTION_TABLE_START + 0x04U) - -/* Pointer to Request BMI installation routine */ -#define _BmiInstallationReq (ROM_FUNCTION_TABLE_START + 0x08U) - - -/* *************************************************************************** -******************************** Enumerations ******************************** -*************************************************************************** */ -typedef enum TagNVMStatus -{ - -/* The function succeeded */ - NVM_PASS = (int32_t)0x00010000U, - -/* Generic error code */ - NVM_E_FAIL = (int32_t)0x80010001U, - -/* Source data not in RAM */ - NVM_E_SRC_AREA_EXCCEED = (int32_t)0x80010003U, - -/* Source data is not 4 byte aligned */ - NVM_E_SRC_ALIGNMENT = (int32_t)0x80010004U, - -/* NVM module cannot be physically accessed */ - NVM_E_NVM_FAIL = (int32_t)0x80010005U, - -/* Verification of written page not successful */ - NVM_E_VERIFY = (int32_t)0x80010006U, - -/* Destination data is not (completely) located in NVM */ - NVM_E_DST_AREA_EXCEED = (int32_t)0x80010009U, - -/* Destination data is not properly aligned */ - NVM_E_DST_ALIGNMENT = (int32_t)0x80010010U, - -} NVM_STATUS; - - -/* *************************************************************************** -*********************************** Macros *********************************** -*************************************************************************** */ - -/* *************************************************************************** -Description: Erase granularity = 1 Page of 16 blocks of 16 Bytes - = Equivalent to 256 Bytes using this routine. - -Input parameters: -– Logical address of the Flash Page to be erased which must be page aligned -and in NVM address range - -Return status: -– OK (NVM_PASS) -– Invalid address (NVM_E_DST_ALIGNMENT or NVM_E_DST_AREA_EXCEED) -– Operation failed (Error during low level NVM programming driver): - NVM_E_FAIL - NVM_E_VERIFY - NVM_E_NVM_FAIL - -Prototype: - NVM_STATUS XMC1000_NvmErasePage(uint32_t *pageAddr) -*************************************************************************** */ -#define XMC1000_NvmErasePage (*((NVM_STATUS (**) (uint32_t * )) \ - _NvmErase)) - -/* *************************************************************************** -Description: This procedure performs erase (skipped if not necessary), program -and verify of selected Flash page. - -Input parameter: -– Logical address of the target Flash Page, must be page aligned and in NVM -address range - -– Address in SRAM where the data starts, must be 4-byte aligned - -Return status: -– OK (NVM_PASS) -– Invalid addresses - NVM_E_DST_ALIGNMENT - NVM_E_SRC_ALIGNMENT - NVM_E_DST_AREA_EXCEED - NVM_E_SRC_AREA_EXCCEED -– Operation failed (Error during low level NVM programming driver): - NVM_E_FAIL - NVM_E_VERIFY - NVM_E_NVM_FAIL - -Prototype: - NVM_STATUS XMC1000_NvmProgVerify(const uint32_t *srcAddr, uint32_t *dstAddr) -*************************************************************************** */ -#define XMC1000_NvmProgVerify (*((NVM_STATUS (**) (const uint32_t * ,\ - uint32_t * ))\ - _NvmProgVerify)) - - -/* *************************************************************************** -Description: This procedure initiates installation of a new BMI value. In -particular, it can be used as well as to restore the state upon delivery for a -device already in User Productive mode. - -Input parameter: -– BMI value to be installed - -Return status: -– wrong input BMI value (0x01) - only upon error, if OK the procedure triggers -a reset respectively does not return to calling routine ! - -Prototype: - unsigned long XMC1000_BmiInstallationReq(unsigned short requestedBmiValue) -**************************************************************************** */ -#define XMC1000_BmiInstallationReq (*((uint32_t (**) (uint16_t)) \ - _BmiInstallationReq)) - -#ifdef __cplusplus -} -#endif - -#endif /* ROM_FUNCTION_TABLE_H */ diff --git a/os/common/ext/CMSIS/Infineon/XMC1100/XMC1100.h b/os/common/ext/CMSIS/Infineon/XMC1100/XMC1100.h deleted file mode 100644 index f19474d9b..000000000 --- a/os/common/ext/CMSIS/Infineon/XMC1100/XMC1100.h +++ /dev/null @@ -1,4230 +0,0 @@ -/****************************************************************************/ -/** -Copyright (C) 2011-2015 Infineon Technologies AG. All rights reserved. -* -* -* @par -* Infineon Technologies AG (Infineon) is supplying this software for use with -* Infineon's microcontrollers. This file can be freely distributed within -* development tools that are supporting such microcontrollers. -* -* @par -* THIS SOFTWARE IS PROVIDED AS IS. NO WARRANTIES, WHETHER EXPRESS, IMPLIED -* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF -* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. -* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, -* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. -* -******************************************************************************/ - - -/****************************************************************************************************//** - * @file XMC1100.h - * - * @brief CMSIS Cortex-M0 Peripheral Access Layer Header File for - * XMC1100 from Infineon. - * - * @version V1.2.2 (Reference Manual v1.2) - * @date 23. January 2015 - * - * @note Generated with SVDConv V2.86c - * from CMSIS SVD File 'XMC1100_Processed_SVD.xml' Version 1.2.2 (Reference Manual v1.2), - *******************************************************************************************************/ - - - -/** @addtogroup Infineon - * @{ - */ - -/** @addtogroup XMC1100 - * @{ - */ - -#ifndef XMC1100_H -#define XMC1100_H - -#ifdef __cplusplus -extern "C" { -#endif - - -/* ------------------------- Interrupt Number Definition ------------------------ */ - -typedef enum { -/* ------------------- Cortex-M0 Processor Exceptions Numbers ------------------- */ - Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */ - NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */ - HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */ - SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */ - PendSV_IRQn = -2, /*!< 14 Pendable request for system service */ - SysTick_IRQn = -1, /*!< 15 System Tick Timer */ -/* --------------------- XMC1100 Specific Interrupt Numbers --------------------- */ - SCU_0_IRQn = 0, /*!< SCU SR0 Interrupt */ - SCU_1_IRQn = 1, /*!< SCU SR1 Interrupt */ - SCU_2_IRQn = 2, /*!< SCU SR2 Interrupt */ - ERU0_0_IRQn = 3, /*!< ERU0 SR0 Interrupt */ - ERU0_1_IRQn = 4, /*!< ERU0 SR1 Interrupt */ - ERU0_2_IRQn = 5, /*!< ERU0 SR2 Interrupt */ - ERU0_3_IRQn = 6, /*!< ERU0 SR3 Interrupt */ - - USIC0_0_IRQn = 9, /*!< USIC SR0 Interrupt */ - USIC0_1_IRQn = 10, /*!< USIC SR1 Interrupt */ - USIC0_2_IRQn = 11, /*!< USIC SR2 Interrupt */ - USIC0_3_IRQn = 12, /*!< USIC SR3 Interrupt */ - USIC0_4_IRQn = 13, /*!< USIC SR4 Interrupt */ - USIC0_5_IRQn = 14, /*!< USIC SR5 Interrupt */ - - VADC0_C0_0_IRQn = 15, /*!< VADC SR0 Interrupt */ - VADC0_C0_1_IRQn = 16, /*!< VADC SR1 Interrupt */ - - CCU40_0_IRQn = 21, /*!< CCU40 SR0 Interrupt */ - CCU40_1_IRQn = 22, /*!< CCU40 SR1 Interrupt */ - CCU40_2_IRQn = 23, /*!< CCU40 SR2 Interrupt */ - CCU40_3_IRQn = 24, /*!< CCU40 SR3 Interrupt */ - -} IRQn_Type; - - -/** @addtogroup Configuration_of_CMSIS - * @{ - */ - - -/* ================================================================================ */ -/* ================ Processor and Core Peripheral Section ================ */ -/* ================================================================================ */ - -/* ----------------Configuration of the Cortex-M0 Processor and Core Peripherals---------------- */ -#define __CM0_REV 0x0000 /*!< Cortex-M0 Core Revision */ -#define __MPU_PRESENT 0 /*!< MPU present or not */ -#define __NVIC_PRIO_BITS 2 /*!< Number of Bits used for Priority Levels */ -#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ -/** @} */ /* End of group Configuration_of_CMSIS */ - -#include "core_cm0.h" /*!< Cortex-M0 processor and core peripherals */ -#include "system_XMC1100.h" /*!< XMC1100 System */ - - -/* ================================================================================ */ -/* ================ Device Specific Peripheral Section ================ */ -/* ================================================================================ */ -/* Macro to modify desired bitfields of a register */ -#define WR_REG(reg, mask, pos, val) reg = (((uint32_t)val << pos) & \ - ((uint32_t)mask)) | \ - (reg & ((uint32_t)~((uint32_t)mask))) - -/* Macro to modify desired bitfields of a register */ -#define WR_REG_SIZE(reg, mask, pos, val, size) { \ -uint##size##_t VAL1 = (uint##size##_t)((uint##size##_t)val << pos); \ -uint##size##_t VAL2 = (uint##size##_t) (VAL1 & (uint##size##_t)mask); \ -uint##size##_t VAL3 = (uint##size##_t)~((uint##size##_t)mask); \ -uint##size##_t VAL4 = (uint##size##_t) ((uint##size##_t)reg & VAL3); \ -reg = (uint##size##_t) (VAL2 | VAL4);\ -} - -/** Macro to read bitfields from a register */ -#define RD_REG(reg, mask, pos) (((uint32_t)reg & (uint32_t)mask) >> pos) - -/** Macro to read bitfields from a register */ -#define RD_REG_SIZE(reg, mask, pos,size) ((uint##size##_t)(((uint32_t)reg & \ - (uint32_t)mask) >> pos) ) - -/** Macro to set a bit in register */ -#define SET_BIT(reg, pos) (reg |= ((uint32_t)1< - -/******************************************************************************* - * GLOBAL VARIABLES - *******************************************************************************/ - -extern uint32_t SystemCoreClock; - -/******************************************************************************* - * API PROTOTYPES - *******************************************************************************/ - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Initialize the system - * - */ -void SystemInit(void); - -/** - * @brief Initialize CPU settings - * - */ -void SystemCoreSetup(void); - -/** - * @brief Initialize clock - * - */ -void SystemCoreClockSetup(void); - -/** - * @brief Update SystemCoreClock variable - * - */ -void SystemCoreClockUpdate(void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/os/common/startup/ARMCMx/compilers/GCC/ld/XMC1100x0064.ld b/os/common/startup/ARMCMx/compilers/GCC/ld/XMC1100x0064.ld deleted file mode 100644 index b5538b7c6..000000000 --- a/os/common/startup/ARMCMx/compilers/GCC/ld/XMC1100x0064.ld +++ /dev/null @@ -1,85 +0,0 @@ -/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -/* - * XMC1100_0064 memory setup. - */ -MEMORY -{ - flash0 : org = 0x10001000, len = 64k - flash1 : org = 0x00000000, len = 0 - flash2 : org = 0x00000000, len = 0 - flash3 : org = 0x00000000, len = 0 - flash4 : org = 0x00000000, len = 0 - flash5 : org = 0x00000000, len = 0 - flash6 : org = 0x00000000, len = 0 - flash7 : org = 0x00000000, len = 0 - ram0 : org = 0x20000000, len = 0x200 - ram1 : org = 0x20000200, len = 16k - 0x200 - ram2 : org = 0x00000000, len = 0 - ram3 : org = 0x00000000, len = 0 - ram4 : org = 0x00000000, len = 0 - ram5 : org = 0x00000000, len = 0 - ram6 : org = 0x00000000, len = 0 - ram7 : org = 0x00000000, len = 0 -} - -/* For each data/text section two region are defined, a virtual region - and a load region (_LMA suffix).*/ - -/* Flash region to be used for exception vectors.*/ -REGION_ALIAS("VECTORS_FLASH", flash0); -REGION_ALIAS("VECTORS_FLASH_LMA", flash0); - -/* Flash region to be used for constructors and destructors.*/ -REGION_ALIAS("XTORS_FLASH", flash0); -REGION_ALIAS("XTORS_FLASH_LMA", flash0); - -/* Flash region to be used for code text.*/ -REGION_ALIAS("TEXT_FLASH", flash0); -REGION_ALIAS("TEXT_FLASH_LMA", flash0); - -/* Flash region to be used for read only data.*/ -REGION_ALIAS("RODATA_FLASH", flash0); -REGION_ALIAS("RODATA_FLASH_LMA", flash0); - -/* Flash region to be used for various.*/ -REGION_ALIAS("VARIOUS_FLASH", flash0); -REGION_ALIAS("VARIOUS_FLASH_LMA", flash0); - -/* Flash region to be used for RAM(n) initialization data.*/ -REGION_ALIAS("RAM_INIT_FLASH_LMA", flash0); - -/* RAM region to be used for Main stack. This stack accommodates the processing - of all exceptions and interrupts.*/ -REGION_ALIAS("MAIN_STACK_RAM", ram1); - -/* RAM region to be used for the process stack. This is the stack used by - the main() function.*/ -REGION_ALIAS("PROCESS_STACK_RAM", ram1); - -/* RAM region to be used for data segment.*/ -REGION_ALIAS("DATA_RAM", ram1); -REGION_ALIAS("DATA_RAM_LMA", flash0); - -/* RAM region to be used for BSS segment.*/ -REGION_ALIAS("BSS_RAM", ram1); - -/* RAM region to be used for the default heap.*/ -REGION_ALIAS("HEAP_RAM", ram1); - -/* Generic rules inclusion.*/ -INCLUDE rules.ld diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_xmc1100.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_xmc1100.mk deleted file mode 100644 index dcd1a3801..000000000 --- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_xmc1100.mk +++ /dev/null @@ -1,12 +0,0 @@ -# List of the ChibiOS generic XMC1100 startup and CMSIS files. -STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c - -STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S \ - $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S - -STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \ - $(CHIBIOS)/os/common/startup/ARMCMx/devices/XMC1100 \ - $(CHIBIOS)/os/common/ext/CMSIS/include \ - $(CHIBIOS)/os/common/ext/CMSIS/Infineon/XMC1100 - -STARTUPLD = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/ld diff --git a/os/common/startup/ARMCMx/devices/XMC1100/cmparams.h b/os/common/startup/ARMCMx/devices/XMC1100/cmparams.h deleted file mode 100644 index 7cba8bce3..000000000 --- a/os/common/startup/ARMCMx/devices/XMC1100/cmparams.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -/** - * @file XMC1100/cmparams.h - * @brief ARM Cortex-M0 parameters for the XMC1100. - * - * @defgroup ARMCMx_XMC1100 XMC1100 Specific Parameters - * @ingroup ARMCMx_SPECIFIC - * @details This file contains the Cortex-M0 specific parameters for the - * XMC1100 platform. - * @{ - */ - -#ifndef CMPARAMS_H -#define CMPARAMS_H - -/** - * @brief Cortex core model. - */ -#define CORTEX_MODEL 0 - -/** - * @brief Floating Point unit presence. - */ -#define CORTEX_HAS_FPU 0 - -/** - * @brief Number of bits in priority masks. - */ -#define CORTEX_PRIORITY_BITS 2 - -/** - * @brief Number of interrupt vectors. - * @note This number does not include the 16 system vectors and must be - * rounded to a multiple of 8. - */ -#define CORTEX_NUM_VECTORS 32 - -/* The following code is not processed when the file is included from an - asm module.*/ -#if !defined(_FROM_ASM_) - -/* Including the device CMSIS header. Note, we are not using the definitions - from this header because we need this file to be usable also from - assembler source files. We verify that the info matches instead.*/ -#include "XMC1100.h" - -#if CORTEX_MODEL != __CORTEX_M -#error "CMSIS __CORTEX_M mismatch" -#endif - -#if CORTEX_PRIORITY_BITS != __NVIC_PRIO_BITS -#error "CMSIS __NVIC_PRIO_BITS mismatch" -#endif - -#endif /* !defined(_FROM_ASM_) */ - -#endif /* CMPARAMS_H */ - -/** @} */ diff --git a/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S b/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S deleted file mode 100644 index eeb634181..000000000 --- a/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S +++ /dev/null @@ -1,247 +0,0 @@ -/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -/** - * @file veneers_gcc.S - * @brief XMC1100 veneers for GCC. - * - * @addtogroup ARMCMx_XMC1100_VENEERS_GCC - * @{ - */ - -/*===========================================================================*/ -/* Module constants. */ -/*===========================================================================*/ - -/*===========================================================================*/ -/* Module pre-compile time settings. */ -/*===========================================================================*/ - -/*===========================================================================*/ -/* Code section. */ -/*===========================================================================*/ - -#if !defined(__DOXYGEN__) - - .syntax unified - .cpu cortex-m0 - - .thumb - - .section .vectors, "ax", %progbits - .align 4 - .globl _vectors -_vectors: - .long __main_stack_end__, __reset, NMI_Handler, HardFault_Handler - .long __clk_val1, __clk_val2, UsageFault_Handler, Vector1C - .long Vector20, Vector24, Vector28, SVC_Handler - .long DebugMon_Handler, Vector34, PendSV_Handler, SysTick_Handler - .long Vector40, Vector44, Vector48, Vector4C - .long Vector50, Vector54, Vector58, Vector5C - .long Vector60, Vector64, Vector68, Vector6C - .long Vector70, Vector74, Vector78, Vector7C - .long Vector80, Vector84, Vector88, Vector8C - .long Vector90, Vector94, Vector98, Vector9C - .long VectorA0, VectorA4, VectorA8, VectorAC - .long VectorB0, VectorB4, VectorB8, VectorBC - - .align 2 - .thumb_func - .weak HardFault_Handler, UsageFault_Handler, Vector1C - .weak Vector20, Vector24, Vector28, SVC_Handler - .weak DebugMon_Handler, Vector34, PendSV_Handler, SysTick_Handler - .weak Vector40, Vector44, Vector48, Vector4C - .weak Vector50, Vector54, Vector58, Vector5C - .weak Vector60, Vector64, Vector68, Vector6C - .weak Vector70, Vector74, Vector78, Vector7C - .weak Vector80, Vector84, Vector88, Vector8C - .weak Vector90, Vector94, Vector98, Vector9C - .weak VectorA0, VectorA4, VectorA8, VectorAC - .weak VectorB0, VectorB4, VectorB8, VectorBC -HardFault_Handler: -UsageFault_Handler: -Vector1C: -Vector20: -Vector24: -Vector28: -SVC_Handler: -DebugMon_Handler: -Vector34: -PendSV_Handler: -SysTick_Handler: -Vector40: -Vector44: -Vector48: -Vector4C: -Vector50: -Vector54: -Vector58: -Vector5C: -Vector60: -Vector64: -Vector68: -Vector6C: -Vector70: -Vector74: -Vector78: -Vector7C: -Vector80: -Vector84: -Vector88: -Vector8C: -Vector90: -Vector94: -Vector98: -Vector9C: -VectorA0: -VectorA4: -VectorA8: -VectorAC: -VectorB0: -VectorB4: -VectorB8: -VectorBC: - - b _unhandled_exception - - .align 2 - .thumb_func - .weak _unhandled_exception -_unhandled_exception: - b _unhandled_exception - - .text - .align 2 - .thumb_func - .global __reset -__reset: sub sp, #32 - movs r0, #0 - str r0, [sp, #4] - str r0, [sp, #8] - str r0, [sp, #12] - str r0, [sp, #16] - str r0, [sp, #20] - ldr r0, =Reset_Handler - str r0, [sp, #24] - ldr r0, =0x01000000 - str r0, [sp, #28] - ldr r0, =0xFFFFFFF9 - bx r0 - - .section .ram0_init, "ax", %progbits - .align 2 - .thumb_func - .global __veneers -__veneers: movs r0, #0 - b . - movs r0, #1 - b . - movs r0, #2 - b . - ldr r0, =HardFault_Handler - mov pc, r0 - movs r0, #4 - b . - movs r0, #5 - b . - ldr r0, =UsageFault_Handler - mov pc, r0 - movs r0, #7 - b . - movs r0, #8 - b . - movs r0, #9 - b . - movs r0, #10 - b . - ldr r0, =SVC_Handler - mov pc, r0 - ldr r0, =DebugMon_Handler - mov pc, r0 - movs r0, #14 - b . - ldr r0, =PendSV_Handler - mov pc, r0 - ldr r0, =SysTick_Handler - mov pc, r0 - ldr r0, =Vector40 - mov pc, r0 - ldr r0, =Vector44 - mov pc, r0 - ldr r0, =Vector48 - mov pc, r0 - ldr r0, =Vector4C - mov pc, r0 - ldr r0, =Vector50 - mov pc, r0 - ldr r0, =Vector54 - mov pc, r0 - ldr r0, =Vector58 - mov pc, r0 - ldr r0, =Vector5C - mov pc, r0 - ldr r0, =Vector60 - mov pc, r0 - ldr r0, =Vector64 - mov pc, r0 - ldr r0, =Vector68 - mov pc, r0 - ldr r0, =Vector6C - mov pc, r0 - ldr r0, =Vector70 - mov pc, r0 - ldr r0, =Vector74 - mov pc, r0 - ldr r0, =Vector78 - mov pc, r0 - ldr r0, =Vector7C - mov pc, r0 - ldr r0, =Vector80 - mov pc, r0 - ldr r0, =Vector84 - mov pc, r0 - ldr r0, =Vector88 - mov pc, r0 - ldr r0, =Vector8C - mov pc, r0 - ldr r0, =Vector90 - mov pc, r0 - ldr r0, =Vector94 - mov pc, r0 - ldr r0, =Vector98 - mov pc, r0 - ldr r0, =Vector9C - mov pc, r0 - ldr r0, =VectorA0 - mov pc, r0 - ldr r0, =VectorA4 - mov pc, r0 - ldr r0, =VectorA8 - mov pc, r0 - ldr r0, =VectorAC - mov pc, r0 - ldr r0, =VectorB0 - mov pc, r0 - ldr r0, =VectorB4 - mov pc, r0 - ldr r0, =VectorB8 - mov pc, r0 - ldr r0, =VectorBC - mov pc, r0 - -#endif /* !defined(__DOXYGEN__) */ - -/** @} */ -- cgit v1.2.3