X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fser_simple_avr.c;h=31510347d7c100d2ab7b7f0af67872df603d39a6;hb=0f60d6b24cf8ec1c9bd8dca82fed6325932c5aca;hp=b0992f06e9ae64d47d7db22626015f85b4b77926;hpb=f79651aba679ce23fb708baf3d269f3b32b1b7de;p=bertos.git diff --git a/bertos/cpu/avr/drv/ser_simple_avr.c b/bertos/cpu/avr/drv/ser_simple_avr.c index b0992f06..31510347 100644 --- a/bertos/cpu/avr/drv/ser_simple_avr.c +++ b/bertos/cpu/avr/drv/ser_simple_avr.c @@ -32,45 +32,19 @@ * * \brief Simple serial I/O driver * - * \version $Id$ * \author Francesco Sacchi */ -/*#* - *#* $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. - *#* - *#* Revision 1.7 2005/01/23 12:24:27 bernie - *#* Include macros.h for BV(). - *#* - *#* Revision 1.6 2004/10/20 13:40:54 batt - *#* Put {} instead of ; after while loop. - *#* - *#* Revision 1.5 2004/10/20 13:39:40 batt - *#* Reformat. - *#* - *#* Revision 1.4 2004/10/20 13:30:02 batt - *#* Optimization of UCSR0C writing - *#* - *#* Revision 1.3 2004/10/14 15:55:32 batt - *#* Add ser_purge. - *#* - *#* Revision 1.2 2004/10/14 14:46:59 batt - *#* Change baudrate calculation. - *#* - *#* Revision 1.1 2004/10/13 16:35:36 batt - *#* New (simple) serial driver. - *#*/ + +#warning FIXME:This module is obsolete, yuo must refactor it. + +#if 0 #include "ser_simple_avr.h" #include #include #include /* BV() */ -#include "hw_cpu.h" +#include #include @@ -136,7 +110,7 @@ void _ser_settimeouts(void) void _ser_setbaudrate(unsigned long rate) { /* Compute baud-rate period */ - uint16_t period = DIV_ROUND(CLOCK_FREQ / 16UL, rate) - 1; + uint16_t period = DIV_ROUND(CPU_FREQ / 16UL, rate) - 1; UBRR0H = (period) >> 8; UBRR0L = (period); @@ -192,3 +166,6 @@ void _ser_close(void) /* Disable Rx & Tx. */ UCSR0B &= ~(BV(RXEN) | BV(TXEN)); } + +#endif +