Enable the pin control driver on all STM32 based boards. The following script has been used to do this task: ``` from pathlib import Path import re for fpath in Path(".").glob("boards/arm/**/*_defconfig"): lines = open(fpath).readlines() is_stm32 = False for line in lines: if "CONFIG_SOC_SERIES_STM32" in line: is_stm32 = True break if not is_stm32: continue lines += ["\n", "# enable pin controller\n", "CONFIG_PINCTRL=y\n"] with open(fpath, "w") as f: f.writelines(lines) ``` Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
22 lines
331 B
Text
22 lines
331 B
Text
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
CONFIG_SOC_SERIES_STM32F1X=y
|
|
CONFIG_SOC_STM32F103XE=y
|
|
|
|
# enable uart driver
|
|
CONFIG_SERIAL=y
|
|
# enable console
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_UART_CONSOLE=y
|
|
|
|
# enable pinmux
|
|
CONFIG_PINMUX=y
|
|
|
|
# enable GPIO
|
|
CONFIG_GPIO=y
|
|
|
|
# enable clocks
|
|
CONFIG_CLOCK_CONTROL=y
|
|
|
|
# enable pin controller
|
|
CONFIG_PINCTRL=y
|