2010-02-25 00:47:19 +01:00
|
|
|
#ifndef UART1_H
|
|
|
|
#define UART1_H
|
|
|
|
|
2010-03-03 14:09:19 +01:00
|
|
|
#include <types.h>
|
|
|
|
|
2010-02-25 00:47:19 +01:00
|
|
|
#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)
|
|
|
|
|
2010-03-03 14:09:19 +01:00
|
|
|
void uart1_putc(char c);
|
2010-02-25 00:47:19 +01:00
|
|
|
|
|
|
|
#define uart1_can_get() (*UR1CON > 0)
|
|
|
|
|
|
|
|
#endif
|