X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fi196%2Fdrv%2Fser_i196.c;h=7cfa18dc69358b889e5c5a33646508b2e9c66260;hb=6970f4233dd70293d45f2df4406c581128e887dc;hp=a87de6fa5ed4110a28c60aae8ec5335d7c1fc627;hpb=345f93de1963f49bdb194d2b06c8c5d7ba0a3e5f;p=bertos.git diff --git a/bertos/cpu/i196/drv/ser_i196.c b/bertos/cpu/i196/drv/ser_i196.c index a87de6fa..7cfa18dc 100644 --- a/bertos/cpu/i196/drv/ser_i196.c +++ b/bertos/cpu/i196/drv/ser_i196.c @@ -27,13 +27,12 @@ * the GNU General Public License. * * Copyright (C) 2003,2004 Develer S.r.l. (http://www.develer.com/) - * Copyright (C) 2000 Bernardo Innocenti + * Copyright (C) 2000 Bernie Innocenti * * --> * - * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti * * \brief CPU specific serial I/O driver */ @@ -111,7 +110,7 @@ INTERRUPT(0x32) void RI_interrupt(void) static void ser_setbaudrate(unsigned long rate) { // Calcola il periodo per la generazione del baud rate richiesto - uint16_t baud = (uint16_t)(((CLOCK_FREQ / 16) / rate) - 1) | 0x8000; + uint16_t baud = (uint16_t)(((CPU_FREQ / 16) / rate) - 1) | 0x8000; BAUD_RATE = (uint8_t)baud; BAUD_RATE = (uint8_t)(baud >> 8); }