\
.bus = DEVICE_DT_GET(DT_INST_BUS(inst)), \
.channel = DT_INST_REG_ADDR(inst), \
.clock_frequency = \
DT_PROP_BY_PHANDLE(DT_INST_PARENT(inst), clock, clock_frequency), \
}; \
\
.uart_config = { \
.baudrate = DT_INST_PROP_OR(inst, current_speed, 9600), \
.parity = DT_INST_ENUM_IDX_OR(inst, parity, UART_CFG_PARITY_EVEN), \
.stop_bits = DT_INST_ENUM_IDX_OR(inst, stop_bits, UART_CFG_STOP_BITS_2), \
.data_bits = DT_INST_ENUM_IDX_OR(inst, data_bits, UART_CFG_DATA_BITS_6), \
.flow_ctrl = COND_CODE_1(DT_INST_PROP_OR(inst, \
hw_flow_control, false), \
(UART_CFG_FLOW_CTRL_RTS_CTS), \
(UART_CFG_FLOW_CTRL_NONE)), \
}, \
}; \
\
\
&uart_sc16is75x_data_##inst, &uart_sc16is75x_config_##inst, \
POST_KERNEL, CONFIG_UART_SC16IS75X_INIT_PRIORITY, \
static const struct uart_driver_api uart_sc16is75x_api
Definition uart_sc16is75x.c:1008
static int uart_sc16is75x_pm_device_pm_action(const struct device *const dev, enum pm_device_action action)
Definition uart_sc16is75x.c:1066
static int uart_sc16is75x_init(const struct device *dev)
Definition uart_sc16is75x.c:1075
#define SC16IS75X_UART_CHANNELS_MAX
Maximum UART channels.
Definition sc16is75x.h:271
Definition uart_sc16is75x.c:38
Definition uart_sc16is75x.c:44