OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [ts/] [uart/] [uart.h] - Blame information for rev 43

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 Revanth
#ifndef UART_H
2
#define UART_H
3
 
4
        // Non virtualized addresses for UART0
5
        #define UART0_DLAB1   ((char*)0xFFFFFFE0)
6
        #define UART0_DLAB2   ((char*)0xFFFFFFE1)
7
        #define UART0_THR     ((char*)0xFFFFFFE0)
8
        #define UART0_RBR     ((char*)0xFFFFFFE0)
9
        #define UART0_IER     ((char*)0xFFFFFFE1)
10
        #define UART0_FCR     ((char*)0xFFFFFFE2)
11
        #define UART0_LCR     ((char*)0xFFFFFFE3)
12
        #define UART0_LSR     ((char*)0xFFFFFFE5)
13
        #define VIC_INT_CLEAR ( (int*)0xFFFFFFA8)
14
 
15
        // Initialization functions.
16
        void UARTInit(void);
17
        void UARTEnableTX(void);
18
        void UARTEnableRX(void);
19
 
20
        // Open loop functions.
21
        void UARTWrite(char*);
22
        void UARTWriteByte(char x);
23
 
24
        // UART interrupt related functions.
25
        void UARTEnableTXInterrupt(void);
26
        void UARTEnableRXInterrupt(void);
27
 
28
        // Check THRE
29
        int UARTTransmitEmpty(void);
30
 
31
        // Get a character from the UART.
32
        char UARTGetChar (void );
33
 
34
        // String processing functions.
35
        int strlen(char*);
36
 
37
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.