]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/serial.c
Detect ZRESET polarity
[z180-stamp.git] / avr / serial.c
index e897c84b41077088025dc1204984f0420923f543..adbc3c430e91f0aaa01ce7bf18b433ff298976a1 100644 (file)
@@ -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);
 }
-
-