summaryrefslogtreecommitdiff
path: root/avr/serial.c
diff options
context:
space:
mode:
authorLeo C2014-12-16 16:03:06 +0100
committerLeo C2014-12-16 16:03:06 +0100
commit35edb766593d019b89a3f40b6d6cdd2b50f18032 (patch)
treed46f856c2f2b5f27b479162b234ff8bafcd8c349 /avr/serial.c
parent15e476bc8dcadb88cad1e593e22cbeca62d05edb (diff)
downloadz180-stamp-35edb766593d019b89a3f40b6d6cdd2b50f18032.zip
Add copyright notice
Diffstat (limited to 'avr/serial.c')
-rw-r--r--avr/serial.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/avr/serial.c b/avr/serial.c
index e897c84..adbc3c4 100644
--- a/avr/serial.c
+++ b/avr/serial.c
@@ -1,4 +1,7 @@
/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
*/
#include <avr/io.h>
@@ -12,7 +15,7 @@
static int _write(char c, FILE *stream);
-static FILE mystdout = FDEV_SETUP_STREAM(_write,
+static FILE mystdout = FDEV_SETUP_STREAM(_write,
NULL, _FDEV_SETUP_WRITE);
@@ -24,7 +27,7 @@ static FILE mystdout = FDEV_SETUP_STREAM(_write,
#endif
#if ((BUFFER_SIZE) > 256)
-# error: BUFFER_SIZE
+# error: BUFFER_SIZE
#endif
struct ring rx_ring;
@@ -119,5 +122,3 @@ uint_fast8_t serial_tstc(void)
{
return !ring_is_empty(&rx_ring);
}
-
-