| * Copyright (c) 2016 Open-RnD Sp. z o.o. |
| * SPDX-License-Identifier: Apache-2.0 |
| * @brief Driver for UART port on STM32 family processor. |
| #ifndef ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ |
| #define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ |
| #include <drivers/pinmux.h> |
| struct uart_stm32_config { |
| struct uart_device_config uconf; |
| /* clock subsystem driving this peripheral */ |
| struct stm32_pclken pclken; |
| /* initial hardware flow control, 1 for RTS/CTS */ |
| /* initial parity, 0 for none, 1 for odd, 2 for even */ |
| const struct soc_gpio_pinctrl *pinctrl_list; |
| size_t pinctrl_list_size; |
| const struct device *clock; |
| #ifdef CONFIG_UART_INTERRUPT_DRIVEN |
| uart_irq_callback_user_data_t user_cb; |
| #endif /* ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ */ |