File nut/boot/bootmon/uart.c


Included Files


Preprocessor definitions

#define USART_BASE 0xFFFD0000

#define US_ID 2

#define US_CR

#define US_IDR

#define US_RCR

#define US_TCR

#define US_BRGR

#define US_MR

#define US_CSR

#define US_RHR

#define US_THR

#define US_RXRDY 0x00000001

#define US_TXRDY 0x00000002

#define US_RSTRX 0x00000004

#define US_RSTTX 0x00000008

#define US_RXEN 0x00000010

#define US_RXDIS 0x00000020

#define US_TXEN 0x00000040

#define US_TXDIS 0x00000080

#define US_CHRL_8 0x000000C0

#define US_PAR_NO 0x00000800

#define US_NBSTOP_1 0x00000000

#define US_CHMODE_NORMAL 0x00000000

#define PS_BASE 0xFFFF4000

#define PS_PCER

#define PIO_BASE 0xFFFF0000

#define PIO_PDR

#define inr( _reg )

#define outr( _reg, _val )

#define _BV( bit )

#define AT91_US_BAUD( baud )


Global Function UartInit()

void UartInit ( void )
Prototyped in: nut/boot/bootmon/uart.h
Calls: MicroDelay()
Called by: main() nut/boot/bootmon/bootmon.c

Global Function UartRx()

char UartRx ( void )
Prototyped in: nut/boot/bootmon/uart.h
Called by: GetLine() nut/boot/bootmon/dialog.c
  main() nut/boot/bootmon/bootmon.c

Global Function UartRxWait()

int UartRxWait ( unsigned int tmo )
Prototyped in: nut/boot/bootmon/uart.h
Called by: main() nut/boot/bootmon/bootmon.c

Global Function UartTx()

void UartTx ( char ch )
Prototyped in: nut/boot/bootmon/uart.h
Called by: GetLine() nut/boot/bootmon/dialog.c
  PutString() nut/boot/bootmon/dialog.c