Rename CLOCK_FREQ macro to CPU_FREQ: now clock frequency has to be set in the makefile.
[bertos.git] / bertos / cpu / i196 / drv / ser_i196.c
index 7835345385c5cc5598d283c9512de1ce415899c8..149be7f6a4f28e4597afd5a684e4f683c89d2393 100644 (file)
@@ -111,7 +111,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);
 }