XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BootAA64
uart0.h
Go to the documentation of this file.
1
30
#ifndef __UART0_H__
31
#define __UART0_H__
32
33
#include "
xnldr.h
"
34
35
36
#define UART_BASE (0x3F000000 + 0x201000)
37
#define UART0_DR ((volatile uint32_t*)(UART_BASE + 0x00))
38
#define UART0_FR ((volatile uint32_t*)(UART_BASE + 0x18))
39
#define UART0_IBRD ((volatile uint32_t*)(UART_BASE + 0x24))
40
#define UART0_FBRD ((volatile uint32_t*)(UART_BASE + 0x28))
41
#define UART0_LCRH ((volatile uint32_t*)(UART_BASE + 0x2C))
42
#define UART0_CR ((volatile uint32_t*)(UART_BASE + 0x30))
43
#define UART0_IMSC ((volatile uint32_t*)(UART_BASE + 0x38))
44
#define UART0_ICR ((volatile uint32_t*)(UART_BASE + 0x44))
45
46
#define UARTFR (UART_BASE + 0x18)
47
#define UARTDR (UART_BASE + 0x00)
48
49
50
extern
void
XEUartInitialize
();
51
52
/*
53
* XEUARTPrint -- print formated text using graphics
54
* @param format -- formated string
55
*/
56
extern
void
XEUARTPrint
(
const
char
* format, ...);
57
58
59
#endif
xnldr.h
XEUARTPrint
void XEUARTPrint(const char *format,...)
Definition
uart0.cpp:66
XEUartInitialize
void XEUartInitialize()
Definition
uart0.cpp:34
Generated by
1.9.8