From 1fa657d77dde43a9c283a67bf86c57531f624437 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 22 Feb 2009 08:43:49 +0000 Subject: Removed unused port functionality port_puts(). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@800 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7/chcore.c | 10 ---------- ports/ARM7/chcore.h | 1 - ports/ARMCM3/chcore.c | 13 ------------- ports/ARMCM3/chcore.h | 1 - ports/AVR/chcore.c | 13 ------------- ports/AVR/chcore.h | 1 - ports/MSP430/chcore.c | 13 ------------- ports/MSP430/chcore.h | 1 - 8 files changed, 53 deletions(-) (limited to 'ports') diff --git a/ports/ARM7/chcore.c b/ports/ARM7/chcore.c index fd7661373..d0e0071bf 100644 --- a/ports/ARM7/chcore.c +++ b/ports/ARM7/chcore.c @@ -26,16 +26,6 @@ #include -/** - * Prints a message on the system console. - * @param msg pointer to the message - */ -/** @cond never */ -__attribute__((weak)) -/** @endcond */ -void port_puts(char *msg) { -} - /** * Halts the system. */ diff --git a/ports/ARM7/chcore.h b/ports/ARM7/chcore.h index 5cc6fc276..3dfef7d80 100644 --- a/ports/ARM7/chcore.h +++ b/ports/ARM7/chcore.h @@ -310,7 +310,6 @@ struct context { #ifdef __cplusplus extern "C" { #endif - void port_puts(char *msg); void port_halt(void); #ifdef THUMB void _port_switch_thumb(Thread *otp, Thread *ntp); diff --git a/ports/ARMCM3/chcore.c b/ports/ARMCM3/chcore.c index 2e247289a..4c23b2da4 100644 --- a/ports/ARMCM3/chcore.c +++ b/ports/ARMCM3/chcore.c @@ -27,19 +27,6 @@ #include #include -/** - * The default implementation of this function is void so no messages are - * actually printed. - * @note The function is declared as a weak symbol, it is possible to redefine - * it in your application code. - * @param msg pointer to the message string - */ -/** @cond never */ -__attribute__((weak)) -/** @endcond */ -void port_puts(char *msg) { -} - /** * Halts the system. * @note The function is declared as a weak symbol, it is possible to redefine diff --git a/ports/ARMCM3/chcore.h b/ports/ARMCM3/chcore.h index 4c3843e56..dd810df36 100644 --- a/ports/ARMCM3/chcore.h +++ b/ports/ARMCM3/chcore.h @@ -302,7 +302,6 @@ struct context { #ifdef __cplusplus extern "C" { #endif - void port_puts(char *msg); void port_halt(void); void threadstart(void); #ifdef __cplusplus diff --git a/ports/AVR/chcore.c b/ports/AVR/chcore.c index 41888ca3f..2050360f8 100644 --- a/ports/AVR/chcore.c +++ b/ports/AVR/chcore.c @@ -26,19 +26,6 @@ #include -/** - * The default implementation of this function is void so no messages are - * actually printed. - * @note The function is declared as a weak symbol, it is possible to redefine - * it in your application code. - * @param msg pointer to the message string - */ -/** @cond never */ -__attribute__((weak)) -/** @endcond */ -void port_puts(char *msg) { -} - /** * Performs a context switch between two threads. * @param otp the thread to be switched out diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h index 187a8463c..1bb142b55 100644 --- a/ports/AVR/chcore.h +++ b/ports/AVR/chcore.h @@ -250,7 +250,6 @@ asm ("" : : : "r18", "r19", "r20", "r21", "r22", "r23", "r24", \ #ifdef __cplusplus extern "C" { #endif - void port_puts(char *msg); void port_switch(Thread *otp, Thread *ntp); void port_halt(void); void threadstart(void); diff --git a/ports/MSP430/chcore.c b/ports/MSP430/chcore.c index 4a9857494..45d52726a 100644 --- a/ports/MSP430/chcore.c +++ b/ports/MSP430/chcore.c @@ -26,19 +26,6 @@ #include -/** - * The default implementation of this function is void so no messages are - * actually printed. - * @note The function is declared as a weak symbol, it is possible to redefine - * it in your application code. - * @param msg pointer to the message string - */ -/** @cond never */ -__attribute__((weak)) -/** @endcond */ -void port_puts(char *msg) { -} - /** * Performs a context switch between two threads. * @param otp the thread to be switched out diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h index c36fdd5c4..b7998371d 100644 --- a/ports/MSP430/chcore.h +++ b/ports/MSP430/chcore.h @@ -221,7 +221,6 @@ struct context { #ifdef __cplusplus extern "C" { #endif - void port_puts(char *msg); void port_switch(Thread *otp, Thread *ntp); void port_halt(void); void threadstart(void); -- cgit v1.2.3