3 #define UART_BAUD 115200 4 #define UART_OUT_IDLE 0x0016 5 #define UART_FIFO_SIZE 64 60 #define UART_LCR_DLAB 0x80 61 #define UART_LCR_8N1 0x03 65 #define UART_IER_ERBFI 0x01 66 #define UART_IER_ETBEI 0x02 67 #define UART_IER_ELSI 0x04 68 #define UART_IER_EMSI 0x08 72 #define UART_IIR_IRQ 0x01 73 #define UART_IIR_IDMASK 0x0E 74 #define UART_IIR_MSC 0x00 75 #define UART_IIR_THRE 0x02 76 #define UART_IIR_RDA 0x04 77 #define UART_IIR_RLSI 0x06 78 #define UART_IIR_RTO 0x0C 82 #define UART_FCR_EFIFO 0x01 83 #define UART_FCR_RRESET 0x02 84 #define UART_FCR_TRESET 0x04 85 #define UART_FCR_TRIG0 0x00 86 #define UART_FCR_TRIG1 0x40 87 #define UART_FCR_TRIG2 0x80 88 #define UART_FCR_TRIG3 0xC0 92 #define UART_MCR_OUT2 0x08 93 #define UART_MCR_RTS 0x02 94 #define UART_MCR_DTR 0x01 95 #define UART_MCR_LOOP 0x10 101 #define UART_LSR_DR 0x01 102 #define UART_LSR_BI 0x10 103 #define UART_LSR_THRE 0x20 104 #define UART_LSR_TEMT 0x40 109 #define UART_MDR1_16X 0x00000000 110 #define UART_MDR1_16XAB 0x00000002 111 #define UART_MDR1_13X 0x00000003 115 #define UART_SYSC_SOFTRESET 0x00000002 119 #define UART_SYSS_RESETDONE 0x00000001 122 #define UART1_CLKCTRL_ADDR 0x44e0006c 123 #define UART1_CLKCTRL_EN 0x00000002 126 #define UART0_PADRX_ADDR 0x44E10970 127 #define UART0_PADTX_ADDR 0x44E10974 128 #define UART0_PADRX_MODE 0 129 #define UART0_PADTX_MODE 0 130 #define UART1_PADRX_ADDR 0x44E10980 131 #define UART1_PADTX_ADDR 0x44E10984 132 #define UART1_PADRX_MODE 0 133 #define UART1_PADTX_MODE 0
volatile uint32 txfifo_lvl
volatile uint32 rxfifo_lvl
volatile uint32 tx_dma_thresh
unsigned int uint32
符号なし32ビット整数(unsigned int)