mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-08 23:23:05 +00:00
usart1, usart2 pinmuxes are now configured from DT pinctrl. Signed-off-by: Jeremy LOCHE <lochejeremy@gmail.com>
31 lines
620 B
C
31 lines
620 B
C
/*
|
|
* Copyright (c) 2018 Nathan Tsoi <nathan@vertile.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <kernel.h>
|
|
#include <device.h>
|
|
#include <init.h>
|
|
#include <drivers/pinmux.h>
|
|
#include <sys/sys_io.h>
|
|
#include "pinmux/pinmux.h"
|
|
|
|
#include "pinmux/stm32/pinmux_stm32.h"
|
|
|
|
/* pin assignments for STM32F0DISCOVERY board */
|
|
static const struct pin_config pinconf[] = {
|
|
};
|
|
|
|
static int pinmux_stm32_init(const struct device *port)
|
|
{
|
|
ARG_UNUSED(port);
|
|
|
|
stm32_setup_pins(pinconf, ARRAY_SIZE(pinconf));
|
|
|
|
return 0;
|
|
}
|
|
|
|
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1,
|
|
CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);
|