lm32: use only one frequency macro
authorMichael Walle <michael@walle.cc>
Wed, 12 May 2010 21:26:00 +0000 (23:26 +0200)
committerMichael Walle <michael@walle.cc>
Wed, 12 May 2010 21:26:00 +0000 (23:26 +0200)
Use FREQUENCY_HZ instead of CPU_FREQUENCY.

umon_ports/milkymist/cpuio.c
umon_ports/milkymist/cpuio.h

index b0f5c11..f1e7e84 100644 (file)
@@ -41,7 +41,7 @@ devInit(int baud)
 int
 ConsoleBaudSet(int baud)
 {
-       UART_DIVISOR = CPU_FREQUENCY/baud/16;
+       UART_DIVISOR = FREQUENCY_HZ/baud/16;
 
        return(0);
 }
index 9f1c926..ce6249b 100644 (file)
@@ -1,6 +1,5 @@
 #define MONARGV0 "umon"
 #define DEFAULT_BAUD_RATE 115200
-#define CPU_FREQUENCY 83333333
 
 #define MMPTR(x) (*((volatile unsigned int *)(x)))