Update to new tree.
[bertos.git] / drv / ser_simple.c
old mode 100755 (executable)
new mode 100644 (file)
index 4a57e71..7805892
@@ -1,6 +1,31 @@
-/*!
+/**
  * \file
  * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction.  Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License.  This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
  * Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
  * All Rights Reserved.
  * -->
@@ -13,6 +38,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.2  2006/07/19 12:56:26  bernie
+ *#* Convert to new Doxygen style.
+ *#*
  *#* Revision 1.1  2005/04/12 01:37:50  bernie
  *#* Import into DevLib.
  *#*
@@ -46,7 +74,7 @@
 
 #include <avr/io.h>
 
-/*!
+/**
  * Send a character over the serial line.
  *
  * \return the character sent.
@@ -71,7 +99,7 @@ int _ser_putchar(int c)
 }
 
 
-/*!
+/**
  * Get a character from the serial line.
  * If ther is no character in the buffer this function wait until
  * one is received (no timeout).
@@ -87,7 +115,7 @@ int _ser_getchar(void)
 }
 
 
-/*!
+/**
  * Get a character from the receiver buffer
  * If the buffer is empty, ser_getchar_nowait() returns
  * immediatly EOF.
@@ -102,7 +130,7 @@ void _ser_settimeouts(void)
 {
 }
 
-/*!
+/**
  * Set the baudrate.
  */
 void _ser_setbaudrate(unsigned long rate)
@@ -114,7 +142,7 @@ void _ser_setbaudrate(unsigned long rate)
        UBRR0L = (period);
 }
 
-/*!
+/**
  * Send a string.
  */
 int _ser_print(const char *s)
@@ -130,7 +158,7 @@ void _ser_setparity(int parity)
        UCSR0C |= (UCSR0C & ~(BV(UPM1) | BV(UPM0))) | (parity << UPM0); 
 }
 
-/*!
+/**
  * Dummy functions.
  */
 void _ser_purge(void)
@@ -138,7 +166,7 @@ void _ser_purge(void)
        while (_ser_getchar_nowait() != EOF) {}
 }
 
-/*!
+/**
  * Initialize serial.
  */
 struct Serial * _ser_open(void)
@@ -156,7 +184,7 @@ struct Serial * _ser_open(void)
 }
 
 
-/*!
+/**
  * Clean up serial port, disabling the associated hardware.
  */
 void _ser_close(void)