diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-18 17:09:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-18 17:09:11 +0000 |
commit | 0c36565550f5b81e6b853ebf3e0b323ed4a8f1f2 (patch) | |
tree | 0f85c364dc506704222f4dcaceadf79430d4cf6b /ports/AVR/chcore.c | |
parent | cb692f1c51bb79c7c6f015cef9da5dfeb1bfebba (diff) | |
download | ChibiOS-0c36565550f5b81e6b853ebf3e0b323ed4a8f1f2.tar.gz ChibiOS-0c36565550f5b81e6b853ebf3e0b323ed4a8f1f2.tar.bz2 ChibiOS-0c36565550f5b81e6b853ebf3e0b323ed4a8f1f2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@637 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/AVR/chcore.c')
-rw-r--r-- | ports/AVR/chcore.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/ports/AVR/chcore.c b/ports/AVR/chcore.c index 9ae0b4c56..ee35f3459 100644 --- a/ports/AVR/chcore.c +++ b/ports/AVR/chcore.c @@ -24,13 +24,6 @@ #include <ch.h>
-/*
- * This file is a template of the system driver functions provided by a port.
- * Some of the following functions may be implemented as macros in chcore.h if
- * the implementer decides that there is an advantage in doing so, as example
- * because performance concerns.
- */
-
/**
* The default implementation of this function is void so no messages are
* actually printed.
@@ -38,8 +31,10 @@ * it in your application code.
* @param msg pointer to the message string
*/
+/** @cond never */
__attribute__((weak))
-void sys_puts(char *msg) {
+/** @endcond */
+void port_puts(char *msg) {
}
/**
@@ -49,8 +44,10 @@ void sys_puts(char *msg) { * @note The function is declared as a weak symbol, it is possible to redefine
* it in your application code.
*/
+/** @cond never */
__attribute__((naked, weak))
-void sys_switch(Thread *otp, Thread *ntp) {
+/** @endcond */
+void port_switch(Thread *otp, Thread *ntp) {
asm volatile ("push r2");
asm volatile ("push r3");
@@ -113,10 +110,12 @@ void sys_switch(Thread *otp, Thread *ntp) { * @note The function is declared as a weak symbol, it is possible to redefine
* it in your application code.
*/
+/** @cond never */
__attribute__((weak))
-void sys_halt(void) {
+/** @endcond */
+void port_halt(void) {
- sys_disable();
+ port_disable();
while (TRUE) {
}
}
|