BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions | Variables
uart0.h File Reference

Go to the source code of this file.

Data Structures

struct  UART0_BUFFER_CONTROL
struct  UART0_REGISTER
struct  UART0_CONTROL

Macros

#define UART0_BUFFER_EMPTY   0
#define UART0_BUFFER_NOT_EMPTY   1
#define UART0_BUFFER_FULL   2
#define Uart0ReadCmd   0
#define Uart0WriteCmd   1
#define Uart0Execution   2
#define UART0_UTRSTAT0_TX2   0x04
#define UART0_UTRSTAT0_TX   0x02
#define UART0_UTRSTAT0_RX   0x01
#define UART0_UERSTAT0_OVERRUN_ERROR   0x01
#define UART0_UERSTAT0_FRAME_ERROR0   0x02
#define UART0_UERSTAT0_FRAME_ERROR1   0x04
#define UART0_UERSTAT0_FRAME_ERROR2   0x08
#define UART0_MAX_BUFFER_SIZE   1000
#define UART0_AFC_BUFFER_LENGTH   256

Functions

void F_Uart0Init (void)
void F_Uart0Svc (void)
void F_Uart0BufferReset (void)
void F_Uart0BaudrateSet (INT32U Baudrate)
void printf (char *Format,...)
INT8 getkey (void)
INT8 getch (void)
void putch (INT8 Data)
INT8U F_Uart0InUseCheck (void)
INT8U F_Uart0Allocate (INT16U UserId)
INT8U F_Uart0Release (INT16U UserId)
INT8U F_Uart0UlconSet (INT16U UserId, INT32U Ulcon)
INT8U F_Uart0UconSet (INT16U UserId, INT32U Ucon)
INT8U F_Uart0UmconSet (INT16U UserId, INT32U Umcon)
INT8U F_Uart0UtrstatGet (INT16U UserId, INT32U *pUtrstat)
INT8U F_Uart0UerstatGet (INT16U UserId, INT32U *pUerstat)
INT8U F_Uart0UfstatGet (INT16U UserId, INT32U *pUfstat)
INT8U F_Uart0UmstatGet (INT16U UserId, INT32U *pUmstat)
INT8U F_Uart0UtxhSet (INT16U UserId, INT32U Utxh)
INT8U F_Uart0UrxhGet (INT16U UserId, INT32U *pUrxh)
INT8U F_Uart0UbrdivSet (INT16U UserId, INT32U ULCON)
INT8U F_Uart0BaudrateConfig (INT16U UserId, INT32U Baudrate)
INT8U F_Uart0RxBufferCheck (void)
INT8U F_Uart0TxBufferCheck (void)
INT8U F_Uart0RxBufferGet (void)
void F_Uart0TxBufferPut (INT8U)

Variables

UART0_CONTROL Uart0Ctrl

Macro Definition Documentation

#define UART0_AFC_BUFFER_LENGTH   256

Definition at line 22 of file uart0.h.

#define UART0_BUFFER_EMPTY   0

Definition at line 4 of file uart0.h.

#define UART0_BUFFER_FULL   2

Definition at line 6 of file uart0.h.

#define UART0_BUFFER_NOT_EMPTY   1

Definition at line 5 of file uart0.h.

#define UART0_MAX_BUFFER_SIZE   1000

Definition at line 21 of file uart0.h.

#define UART0_UERSTAT0_FRAME_ERROR0   0x02

Definition at line 17 of file uart0.h.

#define UART0_UERSTAT0_FRAME_ERROR1   0x04

Definition at line 18 of file uart0.h.

#define UART0_UERSTAT0_FRAME_ERROR2   0x08

Definition at line 19 of file uart0.h.

#define UART0_UERSTAT0_OVERRUN_ERROR   0x01

Definition at line 16 of file uart0.h.

#define UART0_UTRSTAT0_RX   0x01

Definition at line 14 of file uart0.h.

#define UART0_UTRSTAT0_TX   0x02

Definition at line 13 of file uart0.h.

#define UART0_UTRSTAT0_TX2   0x04

Definition at line 12 of file uart0.h.

#define Uart0Execution   2

Definition at line 10 of file uart0.h.

#define Uart0ReadCmd   0

Definition at line 8 of file uart0.h.

#define Uart0WriteCmd   1

Definition at line 9 of file uart0.h.


Function Documentation

INT8U F_Uart0Allocate ( INT16U  UserId)

Definition at line 105 of file uart0.c.

INT8U F_Uart0BaudrateConfig ( INT16U  UserId,
INT32U  Baudrate 
)

Definition at line 197 of file uart0.c.

void F_Uart0BaudrateSet ( INT32U  Baudrate)

Definition at line 430 of file uart0.c.

void F_Uart0BufferReset ( void  )

Definition at line 584 of file uart0.c.

void F_Uart0Init ( void  )

Definition at line 64 of file uart0.c.

INT8U F_Uart0InUseCheck ( void  )

Definition at line 101 of file uart0.c.

INT8U F_Uart0Release ( INT16U  UserId)

Definition at line 113 of file uart0.c.

INT8U F_Uart0RxBufferCheck ( void  )

Definition at line 533 of file uart0.c.

INT8U F_Uart0RxBufferGet ( void  )

Definition at line 570 of file uart0.c.

void F_Uart0Svc ( void  )

Definition at line 220 of file uart0.c.

INT8U F_Uart0TxBufferCheck ( void  )

Definition at line 468 of file uart0.c.

void F_Uart0TxBufferPut ( INT8U  )

Definition at line 494 of file uart0.c.

INT8U F_Uart0UbrdivSet ( INT16U  UserId,
INT32U  ULCON 
)

Definition at line 190 of file uart0.c.

INT8U F_Uart0UconSet ( INT16U  UserId,
INT32U  Ucon 
)

Definition at line 127 of file uart0.c.

INT8U F_Uart0UerstatGet ( INT16U  UserId,
INT32U pUerstat 
)

Definition at line 155 of file uart0.c.

INT8U F_Uart0UfstatGet ( INT16U  UserId,
INT32U pUfstat 
)

Definition at line 162 of file uart0.c.

INT8U F_Uart0UlconSet ( INT16U  UserId,
INT32U  Ulcon 
)

Definition at line 120 of file uart0.c.

INT8U F_Uart0UmconSet ( INT16U  UserId,
INT32U  Umcon 
)

Definition at line 141 of file uart0.c.

INT8U F_Uart0UmstatGet ( INT16U  UserId,
INT32U pUmstat 
)

Definition at line 169 of file uart0.c.

INT8U F_Uart0UrxhGet ( INT16U  UserId,
INT32U pUrxh 
)

Definition at line 183 of file uart0.c.

INT8U F_Uart0UtrstatGet ( INT16U  UserId,
INT32U pUtrstat 
)

Definition at line 148 of file uart0.c.

INT8U F_Uart0UtxhSet ( INT16U  UserId,
INT32U  Utxh 
)

Definition at line 176 of file uart0.c.

INT8 getch ( void  )

Definition at line 606 of file uart0.c.

INT8 getkey ( void  )

Definition at line 600 of file uart0.c.

void printf ( char *  Format,
  ... 
)

Definition at line 624 of file uart0.c.

void putch ( INT8  Data)

Definition at line 590 of file uart0.c.


Variable Documentation

UART0_CONTROL Uart0Ctrl

Definition at line 24 of file uart0.c.