2019-11-01 20:45:29 +08:00
|
|
|
# STM32 GPIO configuration
|
|
|
|
|
2016-03-03 22:33:26 +08:00
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-03 22:33:26 +08:00
|
|
|
|
2016-03-19 23:28:13 +08:00
|
|
|
menuconfig GPIO_STM32
|
2016-03-03 22:33:26 +08:00
|
|
|
bool "GPIO Driver for STM32 family of MCUs"
|
2019-03-07 14:12:27 +08:00
|
|
|
depends on SOC_FAMILY_STM32
|
2016-03-03 22:33:26 +08:00
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Enable GPIO driver for STM32 line of MCUs
|
2016-03-19 23:28:13 +08:00
|
|
|
|
|
|
|
if GPIO_STM32
|
2016-03-03 22:33:26 +08:00
|
|
|
|
2019-07-31 10:02:57 +08:00
|
|
|
choice GPIO_STM32_SWJ
|
|
|
|
prompt "Serial wire JTAG configuration"
|
2020-02-10 05:26:07 +08:00
|
|
|
depends on SOC_SERIES_STM32F1X
|
2019-07-31 10:02:57 +08:00
|
|
|
|
|
|
|
config GPIO_STM32_SWJ_ENABLE
|
|
|
|
depends on !(SOC_STM32F103XE && SPI_3)
|
|
|
|
bool "Full SWJ (JTAG-DP + SW-DP): Reset State"
|
|
|
|
|
|
|
|
config GPIO_STM32_SWJ_NONJTRST
|
|
|
|
depends on !(SOC_STM32F103XE && SPI_3)
|
|
|
|
bool "Full SWJ (JTAG-DP + SW-DP) but without NJTRST"
|
|
|
|
|
|
|
|
config GPIO_STM32_SWJ_NOJTAG
|
|
|
|
bool "JTAG-DP Disabled and SW-DP Enabled"
|
|
|
|
|
|
|
|
config GPIO_STM32_SWJ_DISABLE
|
|
|
|
bool "JTAG-DP Disabled and SW-DP Disabled"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2016-03-19 23:28:13 +08:00
|
|
|
endif # GPIO_STM32
|