diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2017-07-14 21:52:58 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2017-07-14 21:52:58 +0000 |
commit | 631660116597bf80cc90d4aed5235cb4b46e2b27 (patch) | |
tree | 53a592554d189dd9e5e24962efe9724fcf4647eb /os/common/ports | |
parent | 42278a5df96b1ccf5e64a0e81b1302ad0399aa54 (diff) | |
download | ChibiOS-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/ports')
-rw-r--r-- | os/common/ports/AVR/chcore.c | 7 |
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
}
/** @} */
|