Имя модуля: UART0 , базовый адрес: 0x05000000 Имя модуля: UART1 , базовый адрес: 0x05000400 Имя модуля: UART2 , базовый адрес: 0x05000800 Имя модуля: UART3 , базовый адрес: 0x05000C00 Имя модуля: UART4 , базовый адрес: 0x05001000 Имя модуля: UART5 , базовый адрес: 0x05001400 Руководство п. 9.2.5 Регистров: 23 Имя регистра | Смещение 1) UART_RBR | 0x0000 typedef union uart_rbr { struct { unsigned rbr : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_RBR 2) UART_THR | 0x0000 typedef union uart_thr { struct { unsigned thr : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_THR 3) UART_DLL | 0x0000 typedef union uart_dll { struct { unsigned dll : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_DLL 4) UART_DLH | 0x0004 typedef union uart_dlh { struct { unsigned dlh : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_DLH 5) UART_IER | 0x0004 typedef union uart_ier { struct { unsigned erbfi : 1; unsigned etbei : 1; unsigned elsi : 1; unsigned edssi : 1; unsigned rs485_int_en : 1; unsigned unused0 : 2; unsigned ptime : 1; unsigned unused1 : 24; } b; unsigned long w; } UART_IER 6) UART_IIR | 0x0008 typedef union uart_iir { struct { unsigned iid : 4; unsigned unused0 : 2; unsigned feflag : 2; unsigned unused1 : 24; } b; unsigned long w; } UART_IIR 7) UART_FCR | 0x0008 typedef union uart_fcr { struct { unsigned fifoe : 1; unsigned rfifor : 1; unsigned xfifor : 1; unsigned dmam : 1; unsigned tft : 2; unsigned rcvr_trigger : 2; unsigned unused0 : 24; } b; unsigned long w; } UART_FCR 8) UART_LCR | 0x000C typedef union uart_lcr { struct { unsigned dls : 2; unsigned stop : 1; unsigned pen : 1; unsigned eps : 2; unsigned bcb : 1; unsigned dlab : 1; unsigned unused0 : 24; } b; unsigned long w; } UART_LCR 9) UART_MCR | 0x0010 typedef union uart_mcr { struct { unsigned dtr : 1; unsigned rts : 1; unsigned unused0 : 2; unsigned loop : 1; unsigned afce : 1; unsigned uart_function : 2; unsigned unused1 : 24; } b; unsigned long w; } UART_MCR 10) UART_LSR | 0x0014 typedef union uart_lsr { struct { unsigned data_ready : 1; unsigned overrun_error : 1; unsigned parity_error : 1; unsigned framing_error : 1; unsigned break_interrupt : 1; unsigned thre : 1; unsigned temt : 1; unsigned fifoerr : 1; unsigned unused0 : 24; } b; unsigned long w; } UART_LSR 11) UART_MSR | 0x0018 typedef union uart_msr { struct { unsigned dcts : 1; unsigned ddsr : 1; unsigned teri : 1; unsigned ddcd : 1; unsigned cts : 1; unsigned dsr : 1; unsigned ring_indicator : 1; unsigned dcd : 1; unsigned unused0 : 24; } b; unsigned long w; } UART_MSR 12) UART_SCH | 0x001C typedef union uart_sch { struct { unsigned scratch_reg : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_SCH 13) UART_USR | 0x007C typedef union uart_usr { struct { unsigned busy : 1; unsigned tfnf : 1; unsigned tfe : 1; unsigned rfne : 1; unsigned rff : 1; unsigned unused0 : 27; } b; unsigned long w; } UART_USR 14) UART_TFL | 0x0080 typedef union uart_tfl { struct { unsigned tfl : 9; unsigned unused0 : 23; } b; unsigned long w; } UART_TFL 15) UART_RFL | 0x0084 typedef union uart_rfl { struct { unsigned rfl : 9; unsigned unused0 : 23; } b; unsigned long w; } UART_RFL 16) UART_HSK | 0x0088 typedef union uart_hsk { struct { unsigned handshake_conf : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_HSK 17) UART_HALT | 0x00A4 typedef union uart_halt { struct { unsigned halt_tx : 1; unsigned chcfg_at_busy : 1; unsigned change_update : 1; unsigned unused0 : 1; unsigned sir_tx_invert : 1; unsigned sir_rx_invert : 1; unsigned dma_pte_rx : 1; unsigned pte : 1; unsigned unused1 : 24; } b; unsigned long w; } UART_HALT 18) UART_DBG_DLL | 0x00B0 typedef union uart_dbg_dll { struct { unsigned debug_dll : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_DBG_DLL 19) UART_DBG_DLH | 0x00B4 typedef union uart_dbg_dlh { struct { unsigned debug_dlh : 8; unsigned unused0 : 24; } b; unsigned long w; } UART_DBG_DLH 20) UART_485_CTL | 0x00C0 typedef union uart_485_ctl { struct { unsigned rs485_slave_mode_sel : 2; unsigned rx_af_addr : 1; unsigned rx_bf_addr : 1; unsigned unused0 : 1; unsigned rs485_addr_det_f : 1; unsigned aad_addr_f : 1; unsigned reserv : 25; } b; unsigned long w; } UART_485_CTL 21) RS485_ADDR_MATCH | 0x00C4 typedef union rs485_addr_match { struct { unsigned addr_match : 8; unsigned unused0 : 24; } b; unsigned long w; } RS485_ADDR_MATCH 22) BUS_IDLE_CHK | 0x00C8 typedef union bus_idle_chk { struct { unsigned adj_time : 6; unsigned bus_status : 1; unsigned bus_idle_chk_en : 1; unsigned unused0 : 24; } b; unsigned long w; } BUS_IDLE_CHK 23) TX_DLY | 0x00CC typedef union tx_dly { struct { unsigned dly : 8; unsigned unused0 : 24; } b; unsigned long w; } TX_DLY |