Update of /cvsroot/blob/blob/src/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10209/src/lib
Modified Files:
serial-sa11x0.c
Log Message:
Added support for 2d3D, Inc. SA-1110 Development Board.
Index: serial-sa11x0.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/serial-sa11x0.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serial-sa11x0.c 2002/01/03 16:07:18 1.2
+++ serial-sa11x0.c 2002/02/01 14:38:55 1.3
@@ -48,8 +48,24 @@
# define SerialUTCR2 Ser1UTCR2
# define SerialUTCR3 Ser1UTCR3
-#else /* defined USE_SERIAL3 */
+#else /* defined USE_SERIAL1 */
+
+#if defined USE_SERIAL2
+
+# define SerialUTSR0 Ser2UTSR0
+# define SerialUTSR1 Ser2UTSR1
+
+# define SerialUTDR Ser2UTDR
+# define SerialUTCR0 Ser2UTCR0
+# define SerialUTCR1 Ser2UTCR1
+# define SerialUTCR2 Ser2UTCR2
+# define SerialUTCR3 Ser2UTCR3
+
+#else /* defined USE_SERIAL2 */
+
+#if defined USE_SERIAL3
+
/* using an SA11x0 CPU and not having any serial port defined is an
* error, but because we're using the driver in the library we can't
* bail out over here
@@ -65,8 +81,11 @@
# define SerialUTCR2 Ser3UTCR2
# define SerialUTCR3 Ser3UTCR3
-#endif
+#endif /* defined USE_SERIAL3 */
+#endif /* defined USE_SERIAL2 */
+
+#endif /* defined USE_SERIAL1 */
|