Displaying 2 results from an estimated 2 matches for "com_tx".
2013 Jul 12
0
[PATCH 001/001] core/serial: Add support for serial output functions.
...dem ctrl register fields */
+#define COM_MODEM_CTRL_RTS 0x02
+#define COM_MODEM_CTRL_DTR 0x01
+
+/* DLAB bit pos (Divisor Latch Access Bit) */
+#define COM_DLAB_BIT (1 << 7)
+
+/* If DLAB is set 0 in COM_LINE_CTRL_REG */
+#define COM_RX 0 /* Receiver */
+#define COM_TX 0 /* Transmitter */
+
+/* If DLAB is set 1 in COM_LINE_CTRL_REG */
+#define COM_DIVREG_LOW 0
+#define COM_DIVREG_HIGH 1
+
+typedef enum {
+ SERIAL_OFF,
+ SERIAL_ON,
+ SERIAL_DONT_EXIST,
+} serial_state;
+
+extern int serial_puts(const char *);
+extern int serial_pr...
2013 Jul 12
2
[PATCH 001/001] core/serial: Add support for serial output functions.
...Transmitter off */
+
+/* Modem ctrl register fields */
+#define COM_MODEM_CTRL_RTS 0x02
+#define COM_MODEM_CTRL_DTR 0x01
+
+/* DLAB bit pos (Divisor Latch Access Bit) */
+#define COM_DLAB_BIT (1 << 7)
+
+/* If DLAB is set 0 in COM_LINE_CTRL_REG */
+#define COM_RX 0 /* Receiver */
+#define COM_TX 0 /* Transmitter */
+
+/* If DLAB is set 1 in COM_LINE_CTRL_REG */
+#define COM_DIVREG_LOW 0
+#define COM_DIVREG_HIGH 1
+
+typedef enum {
+ SERIAL_OFF,
+ SERIAL_ON,
+ SERIAL_DONT_EXIST,
+} serial_state;
+
+extern int serial_puts(const char *);
+extern int serial_print(const char *, ......