drivers: serial: stm32: use new pinctrl API
Use the new pinctrl API to configure pins. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
4b9c3d7134
commit
21a271962c
5 changed files with 8 additions and 45 deletions
|
@ -12,7 +12,7 @@
|
|||
#ifndef ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_
|
||||
#define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_
|
||||
|
||||
#include <drivers/pinmux.h>
|
||||
#include <drivers/pinctrl.h>
|
||||
|
||||
/* device config */
|
||||
struct uart_stm32_config {
|
||||
|
@ -23,8 +23,7 @@ struct uart_stm32_config {
|
|||
bool hw_flow_control;
|
||||
/* initial parity, 0 for none, 1 for odd, 2 for even */
|
||||
int parity;
|
||||
const struct soc_gpio_pinctrl *pinctrl_list;
|
||||
size_t pinctrl_list_size;
|
||||
const struct pinctrl_dev_config *pcfg;
|
||||
#if defined(CONFIG_PM) \
|
||||
&& !defined(CONFIG_UART_INTERRUPT_DRIVEN) \
|
||||
&& !defined(CONFIG_UART_ASYNC_API)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue