summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2007-02-05 15:27:26 +0000
committerEric Norum <WENorum@lbl.gov>2007-02-05 15:27:26 +0000
commit33fc4f65ab8246f25cbe17a2ca8780b67f431af9 (patch)
treef26e01a64ec524e16147dfafc64a9876809ef02f /c
parentAlways assert RTS* (if flow control is on it will override). (diff)
downloadrtems-33fc4f65ab8246f25cbe17a2ca8780b67f431af9.tar.bz2
Enable RTS/CTS flow-control pins.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/ChangeLog4
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/console/console.c13
2 files changed, 14 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/ChangeLog b/c/src/lib/libbsp/m68k/uC5282/ChangeLog
index 03deac3191..50e21d9c4d 100644
--- a/c/src/lib/libbsp/m68k/uC5282/ChangeLog
+++ b/c/src/lib/libbsp/m68k/uC5282/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-05 Eric Norum <norume@aps.anl.gov>
+
+ * console/console.c: Enable RTS/CTS flow-control pins.
+
2007-01-21 Eric Norum <norume@aps.anl.gov>
* network/network.c: Add capability to lock at 10-half.
diff --git a/c/src/lib/libbsp/m68k/uC5282/console/console.c b/c/src/lib/libbsp/m68k/uC5282/console/console.c
index 03a22c6cb7..99a16be3e5 100644
--- a/c/src/lib/libbsp/m68k/uC5282/console/console.c
+++ b/c/src/lib/libbsp/m68k/uC5282/console/console.c
@@ -54,7 +54,7 @@ BSP_output_char_function_type BSP_output_char = _BSP_null_char;
/*
* The MCF5282 has three UARTs. Enable all them here. I/O pin selection
- * is assumed to have been done elsewher.
+ * is assumed to have been done elsewhere.
*/
#define MAX_UART_INFO 3
#define RX_BUFFER_SIZE 512
@@ -477,14 +477,21 @@ IntUartInterruptOpen(int major, int minor, void *arg)
switch(minor) {
case 0:
MCF5282_GPIO_PUAPAR |= MCF5282_GPIO_PUAPAR_PUAPA1|MCF5282_GPIO_PUAPAR_PUAPA0;
+ MCF5282_GPIO_PTCPAR = (MCF5282_GPIO_PTCPAR
+ & ~(MCF5282_GPIO_PTCPAR_PTCPA3(3)|MCF5282_GPIO_PTCPAR_PTCPA1(3)))
+ | (MCF5282_GPIO_PTCPAR_PTCPA3(1)|MCF5282_GPIO_PTCPAR_PTCPA1(1));
break;
case 1:
MCF5282_GPIO_PUAPAR |= MCF5282_GPIO_PUAPAR_PUAPA3|MCF5282_GPIO_PUAPAR_PUAPA2;
+ MCF5282_GPIO_PTCPAR = (MCF5282_GPIO_PTCPAR
+ & ~(MCF5282_GPIO_PTCPAR_PTCPA2(3)|MCF5282_GPIO_PTCPAR_PTCPA0(3)))
+ | (MCF5282_GPIO_PTCPAR_PTCPA2(2)|MCF5282_GPIO_PTCPAR_PTCPA0(2));
break;
case 2:
- MCF5282_GPIO_PASPAR = MCF5282_GPIO_PASPAR
- & ~(MCF5282_GPIO_PASPAR_PASPA3(3)|MCF5282_GPIO_PASPAR_PASPA2(3))
+ MCF5282_GPIO_PASPAR = (MCF5282_GPIO_PASPAR
+ & ~(MCF5282_GPIO_PASPAR_PASPA3(3)|MCF5282_GPIO_PASPAR_PASPA2(3)))
| (MCF5282_GPIO_PASPAR_PASPA3(2)|MCF5282_GPIO_PASPAR_PASPA2(2));
+ /* UART2 flow control signals are not brought out to pins! */
break;
}
rtems_interrupt_enable(level);