WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_uart_v151_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_UART_V151_REGS_DEF_H
10#define HAL_UART_V151_REGS_DEF_H
11
12#include <stdint.h>
13#include "uart_porting.h"
14
15#define UART_SHADOW_RECIEVE_BUFFER_REG_LEN 16
16#define UART_SHADOW_TRANSMIT_HOLDING_REG_LEN 16
17#define UART_LCR_EXT_RESERVE_LEN 9
18
19#ifdef __cplusplus
20#if __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23#endif /* __cplusplus */
24
31typedef union uart_id {
32 uint32_t d32;
33 struct {
34 uint32_t uart_id : 8; /* !< RO, UART ID */
37
38typedef union data {
39 uint32_t d32;
40 struct {
41 uint32_t data : 8; /* !< RW, For Write(WO):
42 If the FIFOs are enabled, data written to this location is pushed onto the transmit
43 FIFO;If the FIFOs are not enabled, data is stored in the transmitter holding register (the
44 bottom word of the transmit FIFO); For Read(RO): This register contains the data byte
45 received on the serial input port (sin).If FIFOs are disabled, the data in the RX_DATA
46 must be read before the next data arrives, otherwise it will be overwritten, resulting in
47 an over-run error. If FIFOs are enabled, this register accesses the head of the receive
48 FIFO. If the receive FIFO is full and this register is not read before the next data
49 character arrives, then the data already in the FIFO will be preserved but any incoming
50 data will be lost and an over-run error occurs. */
53
54typedef union uart_ctl {
55 uint32_t d32;
56 struct {
57 uint32_t div_en : 1; /* !< RW, UART Divisor enable register.
58 0x0 (DISABLED): DIV_L/DIV_H register is writable only when UART Not BUSY
59 0x1 (ENABLED): Divisor Latch register is always readable and writable */
60 uint32_t xbreak : 1; /* !< RW, Break Control Bit
61 0x0 (DISABLED): Serial output is released for data transmission
62 0x1 (ENABLED): Serial output is forced to spacing state */
63 uint32_t dlen : 2; /* !< RW, Data Length
64 0x0 : 5 data bits per character
65 0x1 : 6 data bits per character
66 0x2 : 7 data bits per character
67 0x3 : 8 data bits per character */
68 uint32_t eps : 1; /* !< RW, Even Parity Select
69 0x0 : an odd parity is transmitted or checked
70 0x1 : an even parity is transmitted or checked */
71 uint32_t pen : 1; /* !< RW, Parity Enable
72 0x0 (DISABLED): disable parity
73 0x1 (ENABLED) : enable parity */
74 uint32_t sps : 1; /* !< RW, Stick Parity Select
75 0x0 (DISABLED): Stick parity disabled
76 0x1 (ENABLED) : Stick parity enabled */
77 uint32_t stp : 1; /* !< RW, Number of stop bits.
78 0x0 : 1 stop bit
79 0x1 : 1.5 stop bits when DLEN is zero, else 2 stop bit */
82
83typedef union div_h {
84 uint32_t d32;
85 struct {
86 uint32_t div_h : 8; /* !< RW, Divisor Latch register that contains the baud rate divisor for the UART. This
87 register can be accessed only when the DIV_EN bit (CTL[7]) is set and the UART is not
88 busy */
91
92typedef union div_l {
93 uint32_t d32;
94 struct {
95 uint32_t div_l : 8; /* !< RW, Divisor Latch register that contains the baud rate divisor for the UART. This
96 register can be accessed only when the DIV_EN bit (CTL[7]) is set and the UART is not
97 busy */
100
101typedef union div_fra {
102 uint32_t d32;
103 struct {
104 uint32_t div_fra : 6; /* !< RW, Fractional part of divisor.The fractional value is added to integer value set by
105 DIV_L,DIV_H. Fractional value is determined by (Divisor Fraction value)/(2^6). */
108
109typedef union intr_en {
110 uint32_t d32;
111 struct {
112 uint32_t rece_line_stat_intr_en : 1; /* !< RW, Receiver Line Status Interrupt enable.
113 0x0: Disable Receiver Line Status Interrupt
114 0x1: Enable Receiver Line Status Interrupt */
115 uint32_t modem_intr_en : 1; /* !< RW, Enable Modem Status Interrupt.
116 0x0 (DISABLED): Disable Modem Status Interrupt
117 0x1 (ENABLED): Enable Modem Status Interrupt */
118 uint32_t rece_data_intr_en : 1; /* !< RW, Enable Received Data Available Interrupt.
119 0x0: Disable Receive data Interrupt
120 0x1: Enable Receive data Interrupt */
121 uint32_t tran_em_intr_en : 1; /* !< RW, Transmit empty interrupt enable.
122 0x0: Disable Transmit empty interrupt
123 0x1: Enable Transmit empty interrupt */
124 uint32_t ptim_en : 1; /* !< RW, Programmable THRE Interrupt Mode Enable
125 0x0: Disable Programmable THRE Interrupt Mode
126 0x1: Enable Programmable THRE Interrupt Mode */
129
130typedef union intr_status {
131 uint32_t d32;
132 struct {
133 uint32_t busy_det_intr : 1; /* !< RO, busy detect */
134 uint32_t modem_intr_status : 1; /* !< RO, modem status */
135 uint32_t thre_intr_status : 1; /* !< RO, THR empty */
136 uint32_t char_to_intr_status : 1; /* !< RO, character timeout */
137 uint32_t data_avail_intr_status : 1; /* !< RO, received data available */
138 uint32_t line_intr_status : 1; /* !< RO, receiver line status */
141
142typedef union intr_id {
143 uint32_t d32;
144 struct {
145 uint32_t intr_id : 4; /* !< RO, Interrupt ID.
146 Values:
147 0x0: modem status
148 0x1: no interrupt pending
149 0x2: THR empty
150 0x4: received data available
151 0x6: receiver line status
152 0xc: character timeout */
153 uint32_t fifo_en_s : 1; /* !< RO, FIFO Enable
154 0x0: FIFO disabled
155 0x1: FIFO enabled */
158
159typedef union fifo_ctl {
160 uint32_t d32;
161 struct {
162 uint32_t tx_empty_trig : 2; /* !< WO, TX Empty Trigger
163 0x0: FIFO Empty
164 0x1: 2 characters in FIFO
165 0x2: FIFO 1/4 full
166 0x3: FIFO 1/2 full */
167 uint32_t rx_empty_trig : 2; /* !< WO, RCVR Trigger
168 0x0: 1 character in FIFO
169 0x1: FIFO 1/4 full
170 0x2: FIFO 1/2 full
171 0x3: FIFO 2 less than full */
172 uint32_t fifo_en : 1; /* !< WO, FIFO Enable
173 0x0: FIFO disabled
174 0x1: FIFO enabled */
175 uint32_t tx_fifo_rst : 1; /* !< WO, Transmit FIFO Reset.
176 Values:
177 0x1 (RESET): Transmit FIFO reset */
178 uint32_t rx_fifo_rst : 1; /* !< WO, Receive FIFO Reset.
179 Values:
180 0x1 (RESET): Receive FIFO reset */
181#if defined(CONFIG_UART_IP_VERSION_V151_PRO)
182 uint32_t rx_empty_trig_h : 2; /* !< WO, RX Empty HIGH Trigger
183 0x0: 1 character in FIFO
184 0x1: FIFO 1/4 full
185 0x2: FIFO 1/2 full
186 0x3: FIFO 2 less than full */
187#endif
190
191typedef union far {
192 uint32_t d32;
193 struct {
194 uint32_t far : 1; /* !< RW, This register is use to enable a FIFO access mode for testing, so that the receive
195 FIFO can be written by the master and the transmit FIFO can be read by the master when
196 FIFO's are implemented and enabled. 0x0 (DISABLED): FIFO access mode disabled 0x1
197 (ENABLED): FIFO access mode enabled */
200
201typedef union modem_ctl {
202 uint32_t d32;
203 struct {
204 uint32_t afc_en : 1; /* !< RW, Auto Flow Control Enable
205 0x0 (DISABLED): Auto Flow Control Mode disabled
206 0x1 (ENABLED): Auto Flow Control Mode enabled */
207 uint32_t lb_mode : 1; /* !< RW, LoopBack Mode
208 0x0 (DISABLED): Loopback mode disabled
209 0x1 (ENABLED) : Loopback mode enabled */
210 uint32_t rts : 1; /* !< RW, Request to Send
211 0x0 (INACTIVE): dtr_n de-asserted (logic1)
212 0x1 (ACTIVE): dtr_n asserted (logic 0) */
213 uint32_t dtr : 1; /* !< RW, Data Terminal Ready.Values:
214 0x0 (INACTIVE): dtr_n de-asserted (logic1)
215 0x1 (ACTIVE): dtr_n asserted (logic 0) */
216 uint32_t out1 : 1; /* !< RW, Values:
217 0x0 (OUT1_0): out1_n de-asserted (logic 1)
218 0x1 (OUT1_1): out1_n asserted (logic 0) */
219 uint32_t out2 : 1; /* !< RW, Values:
220 0x0 (OUT2_0): out2_n de-asserted (logic 1)
221 0x1 (OUT2_1): out2_n asserted (logic 0) */
224
225typedef union modem_status {
226 uint32_t d32;
227 struct {
228 uint32_t dcts : 1; /* !< RO, This is used to indicate that the modem control line cts_n has changed since the
229 last time the MODEM_STATUS was read. Values: 0x0 (NO_CHANGE): no change on cts_n since
230 last read of MSR 0x1 (CHANGE): change on cts_n since last read of MSR */
231 uint32_t cts : 1; /* !< RO, CTS status
232 Values:
233 0x0 (DEASSERTED): cts_n input is de-asserted (logic 1)
234 0x1 (ASSERTED): cts_n input is asserted (logic 0) */
235 uint32_t ddcd : 1; /* !< RO, Values:
236 0x0 (NO_CHANGE): No change on dcd_n since last read of MSR
237 0x1 (CHANGE): change on dcd_n since last read of MSR */
238 uint32_t dcd : 1; /* !< RO, Values:
239 0x0 (DEASSERTED): dcd_n input is de-asserted (logic 1)
240 0x1 (ASSERTED): dcd_n input is asserted (logic 0) */
241 uint32_t teri : 1; /* !< RO, Values:
242 0x0 (NO_CHANGE): no change on ri_n since last read of MSR
243 0x1 (CHANGE): change on ri_n since last read of MSR */
244 uint32_t ri : 1; /* !< RO, Values:
245 0x0 (DEASSERTED): ri_n input is de-asserted (logic 1)
246 0x1 (ASSERTED): ri_n input is asserted (logic 0) */
247 uint32_t ddsr : 1; /* !< RO, Values:
248 0x0 (NO_CHANGE): no change on dsr_n since last read of MSR
249 0x1 (CHANGE): change on dsr_n since last read of MSR */
250 uint32_t dsr : 1; /* !< RO, Values:
251 0x0 (DEASSERTED): dsr_n input is de-asserted (logic 1)
252 0x1 (ASSERTED): dsr_n input is asserted (logic 0) */
255
256typedef union line_status {
257 uint32_t d32;
258 struct {
259 uint32_t rx_fifo_err : 1; /* !< RO, Receiver FIFO Error bit.This bit is only relevant when FIFO's are enabled
260 (FIFO_CTL[4] set to one). This bit is cleared when the LSR is read and the
261 character with the error is at the top of the receiver FIFO and there are no
262 subsequent errors in the FIFO. Values:
263 0x0 (NO_RX_FIFO_ERROR): No error in RX FIFO
264 0x1 (RX_FIFO_ERROR): Error in RX FIFO */
265 uint32_t frame_err : 1; /* !< RO, Frame error bit.Reading the LINE_STATUS clears this bit.
266 Values:
267 0x0 (NO_FRAMING_ERROR): no framing error
268 0x1 (FRAMING_ERROR): framing error */
269 uint32_t parity_err : 1; /* !< RO, Parity Error bit.Reading the LINE_STATUS clears this bit.
270 Values:
271 0x0 (NO_PARITY_ERROR): no parity error
272 0x1 (PARITY_ERROR): parity error */
273 uint32_t overrun_err : 1; /* !< RO, Overrun error bit.Reading the LINE_STATUS clears this bit.
274 Values:
275 0x0 (NO_PARITY_ERROR): no parity error
276 0x1 (PARITY_ERROR): parity error */
277 uint32_t break_intr : 1; /* !< RO, This is used to indicate the detection of a break sequence on
278 the serial input data.
279 Values:
280 0x0 (NO_BREAK): No break sequence detected
281 0x1 (BREAK): Break sequence detected */
282 uint32_t data_available : 1; /* !< RO, This is used to indicate that the receiver contains at least one
283 character in the RBR or the receiver FIFO. This bit is cleared
284 when the RBR is read in the non-FIFO mode, or when the
285 receiver FIFO is empty, in the FIFO mode.
286 Values:
287 0x0 (NOT_READY): data not ready
288 0x1 (READY): data ready */
289 uint32_t thre_s : 1; /* !< RO, Transmit Holding Register Empty bit.If INTR_EN[4] is enabled, then if FIFO
290 FIFO_CTL[4] is enabled, this bit will be asserted when the TX FIFO is full. If
291 FIFO_CTL[4] is not enabled, it will be asserted then the THR register is empty.
292 Otherwise it will be asserted when THR empty is asserted.
293 Values: 0x0 (DISABLED): THRE interrupt control is disabled
294 0x1 (ENABLED): THRE interrupt control is enabled */
295 uint32_t tx_empty_s : 1; /* !< RO, Transmitter Empty bit.
296 If in FIFO mode and FIFO's enabled , this bit is set whenever the Transmitter
297 Shift Register and the FIFO are both empty. If in the non-FIFO mode or FIFO's are
298 disabled, this bit is set whenever the Transmitter Holding Register and the
299 Transmitter Shift Register are both empty. Reset Value: 0x1 Values: 0x0 (DISABLED):
300 Transmitter not empty 0x1 (ENABLED): Transmitter empty */
303
304typedef union uart_gp_reg {
305 uint32_t d32;
306 struct {
307 uint32_t uart_gp_reg : 8; /* !< RW, This register is for programmers to use as a temporary storage space. */
310
311typedef union tx_fifo_read {
312 uint32_t d32;
313 struct {
314 uint32_t tx_fifo_read : 8; /* !< RO, When FIFO's are implemented and enabled, reading this register gives the
315 data at the top of the transmit FIFO. Each consecutive read pops the transmit FIFO
316 and gives the next data value that is currently at the top of the FIFO. When
317 FIFO's are not implemented or not enabled, reading this register gives the data in
318 the DR. */
321
322typedef union rx_fifo_write {
323 uint32_t d32;
324 struct {
325 uint32_t rx_fifo_write : 8; /* !< WO, Receive FIFO Write Data.
326 These bits are only valid when FIFO access mode is enabled. When FIFO's are
327 implemented and enabled, the data that is written to the rx_fifo_write is pushed
328 into the receive FIFO. Each consecutive write pushes the new data to the next
329 write location in the receive FIFO. When FIFO's are not implemented or not
330 enabled, the data that is written to the rx_fifo_write is pushed into the DR. */
331 uint32_t rx_fifo_pe : 1; /* !< WO, Receive FIFO Parity Error. */
332 uint32_t rx_fifo_fe : 1; /* !< WO, Receive FIFO Framing Error. */
335
336typedef union fifo_status {
337 uint32_t d32;
338 struct {
339 uint32_t tx_fifo_full : 1; /* !< RO, Transmit FIFO Full.
340 Values:
341 0x0 (NOT_FULL): Transmit FIFO is not full
342 0x1 (FULL): Transmit FIFO is full */
343 uint32_t tx_fifo_empty : 1; /* !< RO, Transmit FIFO Empty.
344 Values:
345 0x0 (NOT_EMPTY): Transmit FIFO is not empty
346 0x1 (EMPTY): Transmit FIFO is empty */
347 uint32_t rx_fifo_full : 1; /* !< RO, Receive FIFO Not Empty.
348 Values:
349 0x0 (EMPTY): Receive FIFO is empty
350 0x1 (NOT_EMPTY): Receive FIFO is not empty */
351 uint32_t rx_fifo_empty : 1; /* !< RO, Receive FIFO Full.
352 Values:
353 0x0 (NOT_FULL): Receive FIFO not full
354 0x1 (FULL): Receive FIFO full */
355#if defined(CONFIG_UART_IP_VERSION_V151_PRO)
356 uint32_t uart_busy : 1; /* !< RO, Uart busy.
357 Values:
358 0x0 (IDLE): uart is idle or inactive
359 0x1 (BUSY): uart is busy (actively transferring data */
360#endif
363
364typedef union tx_fifo_cnt {
365 uint32_t d32;
366 struct {
367 uint32_t tx_fifo_level : 7; /* !< RO, Transmit FIFO Data Counter. This indicates the number of data entries in
368 the transmit FIFO.The width depends on the Transmit FIFO depth.(current width 7
369 for TX FIFO 64) */
372
373typedef union rx_fifo_cnt {
374 uint32_t d32;
375 struct {
376 uint32_t rx_fifo_level : 7; /* !< RO, Receive FIFO Data Counter. This indicates the number of data entries in
377 the receive FIFO.The width depends on the receive FIFO depth.(current width 7 for
378 RX FIFO 64) */
381
382typedef union halt_tx {
383 uint32_t d32;
384 struct {
385 uint32_t halt_tx : 1; /* !< RW, Halt TX.
386 Values:
387 0x0 (DISABLED): Halt Transmission disabled
388 0x1 (ENABLED): Halt Transmission enabled */
391
392typedef union dma_sw_ack {
393 uint32_t d32;
394 struct {
395 uint32_t dma_sw_ack : 1; /* !< WC, DMA Software Acknowledge.
396 Values:
397 0x1 (SOFT_ACK): DMA software acknowledge */
400
401typedef union baud_ctl {
402 uint32_t d32;
403 struct {
404 uint32_t baud_div : 4; /* !< RW, Sample baud rate
405 Values:
406 0x7:baud rate is 8;
407 0xF:baud rate is 16; */
408 uint32_t sample_phase : 4; /* !< RW, RX sample phase */
411
412typedef union stp_ctl {
413 uint32_t d32;
414 struct {
415 uint32_t rx_sp : 1; /* !< RW, Rx width control.
416 Only when stp_mode is asserted, this bit is valid.
417 Values:
418 0:1 stop bit.
419 1:1.5 stop bits when DLEN is zero, else 2 stop bit. */
420 uint32_t tx_sp : 1; /* !< RW, Tx width control.
421 Only when stp_mode is asserted, this bit is valid.
422 Values:
423 0:1 stop bit.
424 1:1.5 stop bits when DLEN is zero, else 2 stop bit. */
425 uint32_t stp_mode : 1; /* !< RW, Stop mode.When stp_mode is asserted,the stop width of TX and RX is controled
426 by CTL[7]. Else, the stop width of TX is controled by tx_sp, the stop width of RX is
427 controled by rx_sp. Value: 0:the stop width of TX and RX is controled by CTL[7].
428 1:the stop width of TX is controled by tx_sp, the stop width of RX is controled
429 by rx_sp. */
432
433typedef union uart_parameter {
434 uint32_t d32;
435 struct {
436 uint32_t fifo_depth : 8; /* !< RO, UART TX/RX FIFO DEPTH.Values:
437 0x0 (FIFO_MODE_0): FIFO mode is 0
438 0x1 (FIFO_MODE_16): FIFO mode is 16
439 0x2 (FIFO_MODE_32): FIFO mode is 32
440 0x4 (FIFO_MODE_64): FIFO mode is 64
441 0x8 (FIFO_MODE_128): FIFO mode is 128
442 0x10 (FIFO_MODE_256): FIFO mode is 256
443 0x20 (FIFO_MODE_512): FIFO mode is 512
444 0x40 (FIFO_MODE_1024): FIFO mode is 1024
445 0x80 (FIFO_MODE_2048): FIFO mode is 2048 */
446 uint32_t apb_data_width : 2; /* !< RO, Encoding of APB_DATA_WIDTH configuration parameter
447 value.
448 Values:
449 0x0 : APB data width is 8 bits
450 0x1 : APB data width is 16 bits
451 0x2 : APB data width is 32 bits */
452 uint32_t afce_mode : 1; /* !< RO, Encoding of AFCE_MODE configuration parameter value.
453 Values:
454 0x0 (DISABLED): AFCE mode disabled
455 0x1 (ENABLED): AFCE mode enabled */
456 uint32_t dma_mode : 1; /* !< RO, DMA_EXTRA
457 Values:
458 0x0 (DISABLED): DMA_EXTRA disabled
459 0x1 (ENABLED): DMA_EXTRA enabled */
460 uint32_t shadow : 1; /* !< RO, Encoding of SHADOW configuration parameter value.
461 Values:
462 0x0 (DISABLED): SHADOW disabled
463 0x1 (ENABLED): SHADOW enabled */
466
467typedef union lp_ctl {
468 uint32_t d32;
469 struct {
470 uint32_t lp_req_en : 1; /* !< RW, Low power request enable.If this bit is set to 1,
471 uart_autocg_bypass must be set to 0; If this bit is
472 set to 0,uart_autocg_bypass must be set to 1.
473 Values:
474 0x0 (DISABLED): low power request disable
475 0x1 (ENABLED): low power request enable */
478
479typedef union receive_ctl {
480 uint32_t d32;
481 struct {
482 uint32_t receive_enable : 1; /* !< RW, This register is use to data reception while
483 FIFO_ACCESS equals to zero.Configrate this register
484 in the end of configuration process.
485 Values:
486 0x0 (DISABLED): data reception disable
487 0x1 (ENABLED): data reception enable */
490
491typedef struct uart_regs {
492 volatile uint32_t intr_id;
493 volatile uint32_t data;
494 volatile uint32_t uart_ctl;
495 volatile uint32_t div_h;
496 volatile uint32_t div_l;
497 volatile uint32_t div_fra;
498 volatile uint32_t intr_en;
499 volatile uint32_t intr_status;
500 volatile uint32_t reserved_20;
501 volatile uint32_t fifo_ctl;
502 volatile uint32_t far;
503 volatile uint32_t modem_ctl;
504 volatile uint32_t modem_status;
505 volatile uint32_t line_status;
506 volatile uint32_t uart_gp_reg;
507 volatile uint32_t tx_fifo_read;
508 volatile uint32_t rx_fifo_write;
509 volatile uint32_t fifo_status;
510 volatile uint32_t tx_fifo_cnt;
511 volatile uint32_t rx_fifo_cnt;
512 volatile uint32_t halt_tx;
513 volatile uint32_t dma_sw_ack;
514 volatile uint32_t baud_ctl;
515 volatile uint32_t stp_ctl;
516 volatile uint32_t uart_parameter;
517#if defined(CONFIG_UART_IP_VERSION_V151_PRO)
518 volatile uint32_t lp_ctl;
519 volatile uint32_t receive_ctl;
520#endif
522
523
555
556
558
566
572
578
584
590
595#ifdef __cplusplus
596#if __cplusplus
597}
598#endif /* __cplusplus */
599#endif /* __cplusplus */
600
601#endif
uart_bus_t
UART bus.
Definition platform_core.h:198
#define UART_BUS_MAX_NUMBER
Definition platform_core.h:133
union stp_ctl stp_ctl_t
struct uart_regs1 uart_reg_1_t
void hal_uart_specific_reset_uart(uart_bus_t uart)
Resets the uarts on the protocol and apps cores using the RESET_REG register The security core does n...
Definition hal_uart_v151_regs_op.c:33
uart_reg_t * g_hal_uart_reg[UART_BUS_MAX_NUMBER]
Definition hal_uart_v151.c:66
union fifo_status fifo_status_t
union dma_sw_ack dma_sw_ack_t
union modem_status modem_status_t
union tx_fifo_cnt tx_fifo_cnt_t
union line_status line_status_t
union halt_tx halt_tx_t
union uart_gp_reg uart_gp_reg_t
union rx_fifo_cnt rx_fifo_cnt_t
union fifo_ctl fifo_ctl_t
union div_h div_h_t
struct uart_regs uart_reg_t
void hal_uart_specific_enable_irq(uart_bus_t uart)
Enable IRQ associated with a UART
union receive_ctl receive_ctl_t
union rx_fifo_write rx_fifo_write_t
union uart_parameter uart_parameter_t
union div_fra div_fra_t
void hal_uart_specific_priority_irq(uart_bus_t uart)
Specific priority of IRQ associated with a UART
union data data_t
union uart_id uart_id_t
union uart_ctl uart_ctl_t
union div_l div_l_t
union baud_ctl baud_ctl_t
void hal_uart_specific_disable_irq(uart_bus_t uart)
Disable IRQ associated with a UART
union far far_t
void hal_uart_specific_set_pending_irq(uart_bus_t uart)
Set IRQ associated with a UART pending
union intr_en intr_en_t
union modem_ctl modem_ctl_t
union tx_fifo_read tx_fifo_read_t
union intr_status intr_status_t
union lp_ctl lp_ctl_t
union intr_id intr_id_t
Definition hal_uart_v151_regs_def.h:524
volatile uart_ctl_t uart_ctl
Definition hal_uart_v151_regs_def.h:527
volatile div_l_t div_l
Definition hal_uart_v151_regs_def.h:529
volatile modem_status_t modem_status
Definition hal_uart_v151_regs_def.h:537
volatile stp_ctl_t stp_ctl
Definition hal_uart_v151_regs_def.h:548
volatile baud_ctl_t baud_ctl
Definition hal_uart_v151_regs_def.h:547
volatile data_t data
Definition hal_uart_v151_regs_def.h:526
volatile uint32_t reserved_20
Definition hal_uart_v151_regs_def.h:533
volatile modem_ctl_t modem_ctl
Definition hal_uart_v151_regs_def.h:536
volatile uart_gp_reg_t uart_gp_reg
Definition hal_uart_v151_regs_def.h:539
volatile intr_id_t intr_id
Definition hal_uart_v151_regs_def.h:525
volatile div_h_t div_h
Definition hal_uart_v151_regs_def.h:528
volatile fifo_ctl_t fifo_ctl
Definition hal_uart_v151_regs_def.h:534
volatile fifo_status_t fifo_status
Definition hal_uart_v151_regs_def.h:542
volatile dma_sw_ack_t dma_sw_ack
Definition hal_uart_v151_regs_def.h:546
volatile tx_fifo_cnt_t tx_fifo_cnt
Definition hal_uart_v151_regs_def.h:543
volatile div_fra_t div_fra
Definition hal_uart_v151_regs_def.h:530
volatile rx_fifo_cnt_t rx_fifo_cnt
Definition hal_uart_v151_regs_def.h:544
volatile line_status_t line_status
Definition hal_uart_v151_regs_def.h:538
volatile intr_status_t intr_status
Definition hal_uart_v151_regs_def.h:532
volatile uart_parameter_t uart_parameter
Definition hal_uart_v151_regs_def.h:549
volatile intr_en_t intr_en
Definition hal_uart_v151_regs_def.h:531
volatile rx_fifo_write_t rx_fifo_write
Definition hal_uart_v151_regs_def.h:541
volatile halt_tx_t halt_tx
Definition hal_uart_v151_regs_def.h:545
volatile far_t far
Definition hal_uart_v151_regs_def.h:535
volatile tx_fifo_read_t tx_fifo_read
Definition hal_uart_v151_regs_def.h:540
Definition hal_uart_v151_regs_def.h:491
volatile uint32_t intr_en
Definition hal_uart_v151_regs_def.h:498
volatile uint32_t baud_ctl
Definition hal_uart_v151_regs_def.h:514
volatile uint32_t intr_id
Definition hal_uart_v151_regs_def.h:492
volatile uint32_t rx_fifo_write
Definition hal_uart_v151_regs_def.h:508
volatile uint32_t reserved_20
Definition hal_uart_v151_regs_def.h:500
volatile uint32_t tx_fifo_cnt
Definition hal_uart_v151_regs_def.h:510
volatile uint32_t uart_ctl
Definition hal_uart_v151_regs_def.h:494
volatile uint32_t fifo_ctl
Definition hal_uart_v151_regs_def.h:501
volatile uint32_t modem_ctl
Definition hal_uart_v151_regs_def.h:503
volatile uint32_t rx_fifo_cnt
Definition hal_uart_v151_regs_def.h:511
volatile uint32_t dma_sw_ack
Definition hal_uart_v151_regs_def.h:513
volatile uint32_t div_h
Definition hal_uart_v151_regs_def.h:495
volatile uint32_t halt_tx
Definition hal_uart_v151_regs_def.h:512
volatile uint32_t uart_parameter
Definition hal_uart_v151_regs_def.h:516
volatile uint32_t stp_ctl
Definition hal_uart_v151_regs_def.h:515
volatile uint32_t div_l
Definition hal_uart_v151_regs_def.h:496
volatile uint32_t data
Definition hal_uart_v151_regs_def.h:493
volatile uint32_t div_fra
Definition hal_uart_v151_regs_def.h:497
volatile uint32_t line_status
Definition hal_uart_v151_regs_def.h:505
volatile uint32_t modem_status
Definition hal_uart_v151_regs_def.h:504
volatile uint32_t fifo_status
Definition hal_uart_v151_regs_def.h:509
volatile uint32_t tx_fifo_read
Definition hal_uart_v151_regs_def.h:507
volatile uint32_t far
Definition hal_uart_v151_regs_def.h:502
volatile uint32_t intr_status
Definition hal_uart_v151_regs_def.h:499
volatile uint32_t uart_gp_reg
Definition hal_uart_v151_regs_def.h:506
Definition hal_uart_v151_regs_def.h:401
uint32_t sample_phase
Definition hal_uart_v151_regs_def.h:408
uint32_t d32
Definition hal_uart_v151_regs_def.h:402
uint32_t baud_div
Definition hal_uart_v151_regs_def.h:404
struct baud_ctl::@382 baud_ctl
Definition hal_uart_v151_regs_def.h:38
uint32_t d32
Definition hal_uart_v151_regs_def.h:39
uint32_t data
Definition hal_uart_v151_regs_def.h:41
Definition hal_uart_v151_regs_def.h:101
uint32_t div_fra
Definition hal_uart_v151_regs_def.h:104
uint32_t d32
Definition hal_uart_v151_regs_def.h:102
Definition hal_uart_v151_regs_def.h:83
uint32_t div_h
Definition hal_uart_v151_regs_def.h:86
uint32_t d32
Definition hal_uart_v151_regs_def.h:84
Definition hal_uart_v151_regs_def.h:92
uint32_t div_l
Definition hal_uart_v151_regs_def.h:95
uint32_t d32
Definition hal_uart_v151_regs_def.h:93
Definition hal_uart_v151_regs_def.h:392
uint32_t dma_sw_ack
Definition hal_uart_v151_regs_def.h:395
uint32_t d32
Definition hal_uart_v151_regs_def.h:393
Definition hal_uart_v151_regs_def.h:191
uint32_t d32
Definition hal_uart_v151_regs_def.h:192
uint32_t far
Definition hal_uart_v151_regs_def.h:194
Definition hal_uart_v151_regs_def.h:159
uint32_t fifo_en
Definition hal_uart_v151_regs_def.h:172
uint32_t rx_empty_trig
Definition hal_uart_v151_regs_def.h:167
uint32_t tx_fifo_rst
Definition hal_uart_v151_regs_def.h:175
uint32_t rx_fifo_rst
Definition hal_uart_v151_regs_def.h:178
struct fifo_ctl::@363 fifo_ctl
uint32_t d32
Definition hal_uart_v151_regs_def.h:160
uint32_t tx_empty_trig
Definition hal_uart_v151_regs_def.h:162
Definition hal_uart_v151_regs_def.h:336
uint32_t d32
Definition hal_uart_v151_regs_def.h:337
uint32_t tx_fifo_full
Definition hal_uart_v151_regs_def.h:339
uint32_t tx_fifo_empty
Definition hal_uart_v151_regs_def.h:343
struct fifo_status::@377 fifo_status
uint32_t rx_fifo_full
Definition hal_uart_v151_regs_def.h:347
uint32_t rx_fifo_empty
Definition hal_uart_v151_regs_def.h:351
Definition hal_uart_v151_regs_def.h:382
uint32_t halt_tx
Definition hal_uart_v151_regs_def.h:385
uint32_t d32
Definition hal_uart_v151_regs_def.h:383
Definition hal_uart_v151_regs_def.h:109
uint32_t rece_data_intr_en
Definition hal_uart_v151_regs_def.h:118
struct intr_en::@358 intr_en
uint32_t ptim_en
Definition hal_uart_v151_regs_def.h:124
uint32_t rece_line_stat_intr_en
Definition hal_uart_v151_regs_def.h:112
uint32_t d32
Definition hal_uart_v151_regs_def.h:110
uint32_t tran_em_intr_en
Definition hal_uart_v151_regs_def.h:121
uint32_t modem_intr_en
Definition hal_uart_v151_regs_def.h:115
Definition hal_uart_v151_regs_def.h:142
uint32_t fifo_en_s
Definition hal_uart_v151_regs_def.h:153
uint32_t intr_id
Definition hal_uart_v151_regs_def.h:145
uint32_t d32
Definition hal_uart_v151_regs_def.h:143
Definition hal_uart_v151_regs_def.h:130
uint32_t thre_intr_status
Definition hal_uart_v151_regs_def.h:135
uint32_t busy_det_intr
Definition hal_uart_v151_regs_def.h:133
uint32_t data_avail_intr_status
Definition hal_uart_v151_regs_def.h:137
uint32_t char_to_intr_status
Definition hal_uart_v151_regs_def.h:136
uint32_t line_intr_status
Definition hal_uart_v151_regs_def.h:138
uint32_t d32
Definition hal_uart_v151_regs_def.h:131
struct intr_status::@361 intr_status
uint32_t modem_intr_status
Definition hal_uart_v151_regs_def.h:134
Definition hal_uart_v151_regs_def.h:256
uint32_t tx_empty_s
Definition hal_uart_v151_regs_def.h:295
uint32_t data_available
Definition hal_uart_v151_regs_def.h:282
uint32_t rx_fifo_err
Definition hal_uart_v151_regs_def.h:259
uint32_t thre_s
Definition hal_uart_v151_regs_def.h:289
struct line_status::@373 line_status
uint32_t d32
Definition hal_uart_v151_regs_def.h:257
uint32_t break_intr
Definition hal_uart_v151_regs_def.h:277
uint32_t overrun_err
Definition hal_uart_v151_regs_def.h:273
uint32_t frame_err
Definition hal_uart_v151_regs_def.h:265
uint32_t parity_err
Definition hal_uart_v151_regs_def.h:269
Definition hal_uart_v151_regs_def.h:467
struct lp_ctl::@385 lp_ctl
uint32_t lp_req_en
Definition hal_uart_v151_regs_def.h:470
uint32_t d32
Definition hal_uart_v151_regs_def.h:468
Definition hal_uart_v151_regs_def.h:201
uint32_t out1
Definition hal_uart_v151_regs_def.h:216
struct modem_ctl::@370 modem_ctl
uint32_t d32
Definition hal_uart_v151_regs_def.h:202
uint32_t dtr
Definition hal_uart_v151_regs_def.h:213
uint32_t rts
Definition hal_uart_v151_regs_def.h:210
uint32_t out2
Definition hal_uart_v151_regs_def.h:219
uint32_t afc_en
Definition hal_uart_v151_regs_def.h:204
uint32_t lb_mode
Definition hal_uart_v151_regs_def.h:207
Definition hal_uart_v151_regs_def.h:225
uint32_t cts
Definition hal_uart_v151_regs_def.h:231
uint32_t dcts
Definition hal_uart_v151_regs_def.h:228
uint32_t ri
Definition hal_uart_v151_regs_def.h:244
uint32_t ddsr
Definition hal_uart_v151_regs_def.h:247
uint32_t dcd
Definition hal_uart_v151_regs_def.h:238
struct modem_status::@372 modem_status
uint32_t teri
Definition hal_uart_v151_regs_def.h:241
uint32_t ddcd
Definition hal_uart_v151_regs_def.h:235
uint32_t d32
Definition hal_uart_v151_regs_def.h:226
uint32_t dsr
Definition hal_uart_v151_regs_def.h:250
Definition hal_uart_v151_regs_def.h:479
uint32_t d32
Definition hal_uart_v151_regs_def.h:480
struct receive_ctl::@386 receive_ctl
uint32_t receive_enable
Definition hal_uart_v151_regs_def.h:482
Definition hal_uart_v151_regs_def.h:373
struct rx_fifo_cnt::@379 rx_fifo_cnt
uint32_t rx_fifo_level
Definition hal_uart_v151_regs_def.h:376
uint32_t d32
Definition hal_uart_v151_regs_def.h:374
Definition hal_uart_v151_regs_def.h:322
uint32_t d32
Definition hal_uart_v151_regs_def.h:323
uint32_t rx_fifo_write
Definition hal_uart_v151_regs_def.h:325
uint32_t rx_fifo_fe
Definition hal_uart_v151_regs_def.h:332
uint32_t rx_fifo_pe
Definition hal_uart_v151_regs_def.h:331
Definition hal_uart_v151_regs_def.h:412
uint32_t stp_mode
Definition hal_uart_v151_regs_def.h:425
uint32_t tx_sp
Definition hal_uart_v151_regs_def.h:420
uint32_t rx_sp
Definition hal_uart_v151_regs_def.h:415
uint32_t d32
Definition hal_uart_v151_regs_def.h:413
struct stp_ctl::@383 stp_ctl
Definition hal_uart_v151_regs_def.h:364
struct tx_fifo_cnt::@378 tx_fifo_cnt
uint32_t tx_fifo_level
Definition hal_uart_v151_regs_def.h:367
uint32_t d32
Definition hal_uart_v151_regs_def.h:365
Definition hal_uart_v151_regs_def.h:311
uint32_t tx_fifo_read
Definition hal_uart_v151_regs_def.h:314
uint32_t d32
Definition hal_uart_v151_regs_def.h:312
Definition hal_uart_v151_regs_def.h:54
uint32_t stp
Definition hal_uart_v151_regs_def.h:77
uint32_t dlen
Definition hal_uart_v151_regs_def.h:63
uint32_t sps
Definition hal_uart_v151_regs_def.h:74
uint32_t d32
Definition hal_uart_v151_regs_def.h:55
uint32_t eps
Definition hal_uart_v151_regs_def.h:68
uint32_t pen
Definition hal_uart_v151_regs_def.h:71
uint32_t xbreak
Definition hal_uart_v151_regs_def.h:60
uint32_t div_en
Definition hal_uart_v151_regs_def.h:57
struct uart_ctl::@351 uart_ctl
Definition hal_uart_v151_regs_def.h:304
uint32_t uart_gp_reg
Definition hal_uart_v151_regs_def.h:307
uint32_t d32
Definition hal_uart_v151_regs_def.h:305
Definition hal_uart_v151_regs_def.h:31
uint32_t d32
Definition hal_uart_v151_regs_def.h:32
uint32_t uart_id
Definition hal_uart_v151_regs_def.h:34
Definition hal_uart_v151_regs_def.h:433
uint32_t apb_data_width
Definition hal_uart_v151_regs_def.h:446
uint32_t shadow
Definition hal_uart_v151_regs_def.h:460
uint32_t dma_mode
Definition hal_uart_v151_regs_def.h:456
struct uart_parameter::@384 uart_parameter
uint32_t fifo_depth
Definition hal_uart_v151_regs_def.h:436
uint32_t afce_mode
Definition hal_uart_v151_regs_def.h:452
uint32_t d32
Definition hal_uart_v151_regs_def.h:434