aboutsummaryrefslogtreecommitdiffstats
path: root/os/common
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2017-07-14 21:52:58 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2017-07-14 21:52:58 +0000
commit631660116597bf80cc90d4aed5235cb4b46e2b27 (patch)
tree53a592554d189dd9e5e24962efe9724fcf4647eb /os/common
parent42278a5df96b1ccf5e64a0e81b1302ad0399aa54 (diff)
downloadChibiOS-631660116597bf80cc90d4aed5235cb4b46e2b27.tar.gz
ChibiOS-631660116597bf80cc90d4aed5235cb4b46e2b27.tar.bz2
ChibiOS-631660116597bf80cc90d4aed5235cb4b46e2b27.zip
Add NIL support for AVR Tiny architecture.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10332 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common')
-rw-r--r--os/common/ports/AVR/chcore.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/common/ports/AVR/chcore.c b/os/common/ports/AVR/chcore.c
index ca70ccc5f..77f6ace9f 100644
--- a/os/common/ports/AVR/chcore.c
+++ b/os/common/ports/AVR/chcore.c
@@ -150,7 +150,12 @@ void _port_thread_start(void) {
asm volatile ("movw r24, r4");
asm volatile ("movw r30, r2");
asm volatile ("icall");
- asm volatile ("call chSysHalt");
+#if defined(_CHIBIOS_RT_)
+ asm volatile ("call chThdExit"); /* Used for avr5 Architecture. */
+#endif
+#if defined(_CHIBIOS_NIL_)
+ asm volatile ("call chSysHalt"); /* Used for avr5 Architecture. */
+#endif
}
/** @} */