Lines Matching refs:base

18 	UART_Type *base;  member
42 if (UART_GetStatusFlag(config->base, kUART_RxDataReadyFlag)) { in mcux_iuart_poll_in()
43 *c = UART_ReadByte(config->base); in mcux_iuart_poll_in()
54 while (!(UART_GetStatusFlag(config->base, kUART_TxReadyFlag))) { in mcux_iuart_poll_out()
57 UART_WriteByte(config->base, c); in mcux_iuart_poll_out()
65 if (UART_GetStatusFlag(config->base, kUART_RxOverrunFlag)) { in mcux_iuart_err_check()
67 UART_ClearStatusFlag(config->base, kUART_RxOverrunFlag); in mcux_iuart_err_check()
70 if (UART_GetStatusFlag(config->base, kUART_ParityErrorFlag)) { in mcux_iuart_err_check()
72 UART_ClearStatusFlag(config->base, kUART_ParityErrorFlag); in mcux_iuart_err_check()
75 if (UART_GetStatusFlag(config->base, kUART_FrameErrorFlag)) { in mcux_iuart_err_check()
77 UART_ClearStatusFlag(config->base, kUART_FrameErrorFlag); in mcux_iuart_err_check()
92 (UART_GetStatusFlag(config->base, kUART_TxEmptyFlag))) { in mcux_iuart_fifo_fill()
94 UART_WriteByte(config->base, tx_data[num_tx++]); in mcux_iuart_fifo_fill()
107 (UART_GetStatusFlag(config->base, kUART_RxDataReadyFlag))) { in mcux_iuart_fifo_read()
109 rx_data[num_rx++] = UART_ReadByte(config->base); in mcux_iuart_fifo_read()
119 UART_EnableInterrupts(config->base, kUART_TxEmptyEnable); in mcux_iuart_irq_tx_enable()
126 UART_DisableInterrupts(config->base, kUART_TxEmptyEnable); in mcux_iuart_irq_tx_disable()
133 return (UART_GetStatusFlag(config->base, kUART_TxEmptyFlag)) != 0U; in mcux_iuart_irq_tx_complete()
141 return (UART_GetEnabledInterrupts(config->base) & mask) in mcux_iuart_irq_tx_ready()
150 UART_EnableInterrupts(config->base, mask); in mcux_iuart_irq_rx_enable()
158 UART_DisableInterrupts(config->base, mask); in mcux_iuart_irq_rx_disable()
165 return (UART_GetStatusFlag(config->base, kUART_RxDataReadyFlag)) != 0U; in mcux_iuart_irq_rx_full()
173 return (UART_GetEnabledInterrupts(config->base) & mask) in mcux_iuart_irq_rx_pending()
183 UART_EnableInterrupts(config->base, mask); in mcux_iuart_irq_err_enable()
192 UART_DisableInterrupts(config->base, mask); in mcux_iuart_irq_err_disable()
261 UART_Init(config->base, &uart_config, clock_freq); in mcux_iuart_init()
328 .base = (UART_Type *) DT_INST_REG_ADDR(n), \