From 6940545972884c45628be6bb15d0e8a3252c5166 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Jan 2000 18:40:14 +0000 Subject: Patch from Eric Norum as follows: At the request of kjoutwater@west.raytheon.com I'm submitting the following patch. c/src/lib/libbsp/m68k/gen68360/console/console.c Allow console baud rate to be set by debugger/downloader. c/src/lib/libbsp/m68k/gen68360/startup/init68360.c Add support for generic 68360 with static RAM. --- c/src/lib/libbsp/m68k/gen68360/console/console.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'c') diff --git a/c/src/lib/libbsp/m68k/gen68360/console/console.c b/c/src/lib/libbsp/m68k/gen68360/console/console.c index 8b1c6dc517..f4703086d2 100644 --- a/c/src/lib/libbsp/m68k/gen68360/console/console.c +++ b/c/src/lib/libbsp/m68k/gen68360/console/console.c @@ -36,6 +36,11 @@ int m360_clock_rate = 25000000; /* * Interrupt-driven input buffer + * Declare console baud rate -- may also be overwritten + */ +int console_baud_rate = 9600; + +/* */ #define RXBUFSIZE 16 @@ -157,7 +162,7 @@ smc1Initialize (int major, int minor, void *arg) * Set up BRG1 (9,600 baud) */ m360.brgc1 = M360_BRG_RST; - m360.brgc1 = smc1BRGC (9600); + m360.brgc1 = smc1BRGC (console_baud_rate); /* * Put SMC1 in NMSI mode, connect SMC1 to BRG1 -- cgit v1.2.3