summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s3c2440/uart-s3c2440.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-10-26 18:16:58 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-10-26 18:16:58 +0000
commit90b576f55ea6854a70c8ed77095b42e57b744723 (patch)
tree33b5a4d1b76b435ef6ec5138e7160d9d32c955c1 /firmware/target/arm/s3c2440/uart-s3c2440.h
parent6d20102a9c468135770f820a896dad3518c2093f (diff)
downloadrockbox-90b576f55ea6854a70c8ed77095b42e57b744723.tar.gz
rockbox-90b576f55ea6854a70c8ed77095b42e57b744723.tar.bz2
rockbox-90b576f55ea6854a70c8ed77095b42e57b744723.zip
Many more drivers for mini2440. Now the main binary compiles and runs.
Flyspray: FS#10725 Author: Bob Cousins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23362 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/uart-s3c2440.h')
-rw-r--r--firmware/target/arm/s3c2440/uart-s3c2440.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/firmware/target/arm/s3c2440/uart-s3c2440.h b/firmware/target/arm/s3c2440/uart-s3c2440.h
index 01a8f67ea1..38790af8e8 100644
--- a/firmware/target/arm/s3c2440/uart-s3c2440.h
+++ b/firmware/target/arm/s3c2440/uart-s3c2440.h
@@ -22,16 +22,17 @@
#ifndef __UART_S3C2440_H__
#define __UART_S3C2440_H__
-#define UART_DEBUG 0
+/* target specific */
+#define DEBUG_UART_PORT 0
-#define UART_NO_PARITY 0
-#define UART_ODD_PARITY 4
-#define UART_EVEN_PARITY 5
-#define UART_MARK_PARITY 6
-#define UART_SPACE_PARITY 7
+#define UART_NO_PARITY 0
+#define UART_ODD_PARITY 4
+#define UART_EVEN_PARITY 5
+#define UART_MARK_PARITY 6
+#define UART_SPACE_PARITY 7
-#define UART_1_STOP_BIT 0
-#define UART_2_STOP_BIT 1
+#define UART_1_STOP_BIT 0
+#define UART_2_STOP_BIT 1
bool uart_init (void);
void uart_printf (const char *format, ...);
@@ -39,10 +40,13 @@ void uart_printf (const char *format, ...);
/* low level routines */
bool uart_init_device (unsigned dev);
bool uart_config (unsigned dev, unsigned speed, unsigned num_bits, unsigned parity, unsigned stop_bits);
-bool uart_send (unsigned dev, char *buf, unsigned len);
+bool uart_tx_ready (unsigned dev);
+bool uart_send_byte (unsigned dev, char ch);
+bool uart_send_buf (unsigned dev, char *buf, unsigned len);
+
+bool uart_rx_ready (unsigned dev);
char uart_read_byte (unsigned dev);
-char uart_rx_ready (unsigned dev);
#endif