diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-28 14:24:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-28 14:24:36 +0000 |
commit | 5cd1e36d69c454f062860fb27ba2526ac6c81db2 (patch) | |
tree | e3d63b0ab9ff3868431ac3ff4c8bd2eb7c3d2653 /os | |
parent | 1f330aa369ca88670a504b28c4a29d7218a572f4 (diff) | |
download | ChibiOS-5cd1e36d69c454f062860fb27ba2526ac6c81db2.tar.gz ChibiOS-5cd1e36d69c454f062860fb27ba2526ac6c81db2.tar.bz2 ChibiOS-5cd1e36d69c454f062860fb27ba2526ac6c81db2.zip |
Untested ARM port related stuff.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6968 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/common/ports/ARM/compilers/GCC/irq.s | 7 | ||||
-rw-r--r-- | os/rt/ports/ARM/chcore.c | 55 | ||||
-rw-r--r-- | os/rt/ports/ARM/compilers/GCC/mk/port_lpc214x.mk | 13 |
3 files changed, 75 insertions, 0 deletions
diff --git a/os/common/ports/ARM/compilers/GCC/irq.s b/os/common/ports/ARM/compilers/GCC/irq.s index 8ad50ea36..8490beb8c 100644 --- a/os/common/ports/ARM/compilers/GCC/irq.s +++ b/os/common/ports/ARM/compilers/GCC/irq.s @@ -43,6 +43,13 @@ IrqHandler: ldr lr, =_port_irq_common
bx r0
+ .weak _port_irq_common
+_port_irq_common:
+ // This exit sequence is usually replaced by the RTOS
+ // specific one.
+ ldmfd sp!, {r0-r3, r12, lr}
+ subs pc, lr, #4
+
#endif
/** @} */
diff --git a/os/rt/ports/ARM/chcore.c b/os/rt/ports/ARM/chcore.c new file mode 100644 index 000000000..f57710185 --- /dev/null +++ b/os/rt/ports/ARM/chcore.c @@ -0,0 +1,55 @@ +/*
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011,2012,2013 Giovanni Di Sirio.
+
+ This file is part of ChibiOS/RT.
+
+ ChibiOS/RT is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS/RT is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/**
+ * @file ARM/chcore.c
+ * @brief ARM port code.
+ *
+ * @addtogroup ARM_CORE
+ * @{
+ */
+
+#include "ch.h"
+
+/*===========================================================================*/
+/* Module local definitions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported functions. */
+/*===========================================================================*/
+
+/** @} */
diff --git a/os/rt/ports/ARM/compilers/GCC/mk/port_lpc214x.mk b/os/rt/ports/ARM/compilers/GCC/mk/port_lpc214x.mk new file mode 100644 index 000000000..1f91d144d --- /dev/null +++ b/os/rt/ports/ARM/compilers/GCC/mk/port_lpc214x.mk @@ -0,0 +1,13 @@ +# List of the ChibiOS/RT Cortex-M3 STM32F1xx port files.
+PORTSRC = ${CHIBIOS}/os/rt/ports/ARM/chcore.c
+
+PORTASM = $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/vectors.s \
+ $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/irq.s \
+ $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/crt0.s \
+ $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
+
+PORTINC = ${CHIBIOS}/os/common/ports/ARM/devices/LPC214x \
+ ${CHIBIOS}/os/rt/ports/ARM \
+ ${CHIBIOS}/os/rt/ports/ARM/compilers/GCC
+
+PORTLD = ${CHIBIOS}/os/common/ports/ARM/compilers/GCC/ld
|