path: root/flash/minimon/minimon.c
diff options
authorThomas Jarosch <>2015-01-05 18:44:36 +0100
committerThomas Jarosch <>2015-01-05 18:44:36 +0100
commitfdd4aef34003587d7fd9ed754dd35ce901b639bf (patch)
treed129b8b8e587d4a1a7215c2226bfafe55f6dd643 /flash/minimon/minimon.c
parentc907e127f8b1d267e91e82d28cdb210288852b82 (diff)
Make thirty functions static to reduce binary size
If any of those functions should be (unused) API functions, they can easily be turned back once really needed. Detected using a new cppcheck check that uses the internal symbol database to catch functions that are only used in the current file. Change-Id: Ic2b1e5b8020b76397f11cefc4e205f3b7ac1f184
Diffstat (limited to 'flash/minimon/minimon.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/flash/minimon/minimon.c b/flash/minimon/minimon.c
index f34e94ac62..aca9cb5523 100644
--- a/flash/minimon/minimon.c
+++ b/flash/minimon/minimon.c
@@ -21,7 +21,7 @@ int main(void);
tpMain start_vector[] __attribute__ ((section (".startvector"))) = {main};
-UINT8 uart_read(void)
+static UINT8 uart_read(void)
UINT8 byte;
while (!(SSR1 & SCI_RDRF)); // wait for char to be available
@@ -31,7 +31,7 @@ UINT8 uart_read(void)
-void uart_write(UINT8 byte)
+static void uart_write(UINT8 byte)
while (!(SSR1 & SCI_TDRE)); // wait for transmit buffer empty
TDR1 = byte;