[rtems commit] leon2 ckinit.c, console.c: Comment clean up

Joel Sherrill joel at rtems.org
Thu Apr 3 20:08:23 UTC 2014


Module:    rtems
Branch:    master
Commit:    aa7ff5d3f936bc177c0277d1074b6e472b356f53
Changeset: http://git.rtems.org/rtems/commit/?id=aa7ff5d3f936bc177c0277d1074b6e472b356f53

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Apr  3 15:14:47 2014 -0500

leon2 ckinit.c, console.c: Comment clean up

---

 c/src/lib/libbsp/sparc/leon2/clock/ckinit.c    |    8 +++-----
 c/src/lib/libbsp/sparc/leon2/console/console.c |   23 ++---------------------
 2 files changed, 5 insertions(+), 26 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
index 41183c6..345ef37 100644
--- a/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
@@ -2,16 +2,14 @@
  * @file
  * @ingroup sparc_leon2
  * @brief Clock Tick Device Driver
- */
-
-/*
- *  Clock Tick Device Driver
  *
  *  This routine initializes LEON timer 1 which used for the clock tick.
  *
  *  The tick frequency is directly programmed to the configured number of
  *  microseconds per tick.
- *
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2008.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/c/src/lib/libbsp/sparc/leon2/console/console.c b/c/src/lib/libbsp/sparc/leon2/console/console.c
index 38a23c4..0a4059e 100644
--- a/c/src/lib/libbsp/sparc/leon2/console/console.c
+++ b/c/src/lib/libbsp/sparc/leon2/console/console.c
@@ -2,13 +2,11 @@
  * @file
  * @ingroup sparc_leon2
  * @brief TTY driver driver for the serial ports on the LEON console
+ *
+ *  This file contains the TTY driver for the serial ports on the LEON.
  */
 
 /*
- *  This file contains the TTY driver for the serial ports on the LEON.
- *
- *  This driver uses the termios pseudo driver.
- *
  *  COPYRIGHT (c) 1989-1998.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -24,23 +22,6 @@
 #include <rtems/bspIo.h>
 
 /*
- *  Should we use a polled or interrupt drived console?
- *
- *  NOTE: This is defined in the custom/leon.cfg file.
- *
- *  WARNING:  In sis 1.6, it did not appear that the UART interrupts
- *            worked in a desirable fashion.  Immediately upon writing
- *            a character into the TX buffer, an interrupt was generated.
- *            This did not allow enough time for the program to put more
- *            characters in the buffer.  So every character resulted in
- *            "priming" the transmitter.   This effectively results in
- *            in a polled console with a useless interrupt per character
- *            on output.  It is reasonable to assume that input does not
- *            share this problem although it was not investigated.
- *
- */
-
-/*
  *  console_outbyte_polled
  *
  *  This routine transmits a character using polling.




More information about the vc mailing list