forked from dwelch67/thumbulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuart.c
29 lines (25 loc) · 864 Bytes
/
uart.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-------------------------------------------------------------------
//-------------------------------------------------------------------
void PUT32 ( unsigned int , unsigned int );
unsigned int GET32 ( unsigned int );
#define THUL_UART_BASE 0xE0000000
//-------------------------------------------------------------------
void uart_send ( unsigned int x )
{
PUT32(THUL_UART_BASE+0x0,x);
}
//-------------------------------------------------------------------
unsigned int uart_recv ( void )
{
return(0x20);
}
//-------------------------------------------------------------------
void uart_init(void)
{
}
//-------------------------------------------------------------------
void uart_fifo_flush ( void )
{
}
//-------------------------------------------------------------------
//-------------------------------------------------------------------