From 9a4a1a04d0df36f1c3c5c34367db26c6f497de94 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 24 Feb 2010 18:47:19 -0500 Subject: [PATCH] uart1.h --- libmc1322x/include/uart1.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libmc1322x/include/uart1.h diff --git a/libmc1322x/include/uart1.h b/libmc1322x/include/uart1.h new file mode 100644 index 000000000..4967ceb5f --- /dev/null +++ b/libmc1322x/include/uart1.h @@ -0,0 +1,16 @@ +#ifndef UART1_H +#define UART1_H + +#define UART1_CON ((volatile uint32_t *) 0x80005000) +#define UART1_STAT ((volatile uint32_t *) 0x80005004) +#define UART1_DATA ((volatile uint32_t *) 0x80005008) +#define UR1CON ((volatile uint32_t *) 0x8000500c) +#define UT1CON ((volatile uint32_t *) 0x80005010) +#define UART1_CTS ((volatile uint32_t *) 0x80005014) +#define UART1_BR ((volatile uint32_t *) 0x80005018) + +int uart1_putchar(int c); + +#define uart1_can_get() (*UR1CON > 0) + +#endif