# Copyright (c) 2019 Phytec Messtechnik GmbH
#
# SPDX-License-Identifier: Apache-2.0

menuconfig DP_DRIVER
	bool "Debug Port (DP) drivers [EXPERIMENTAL]"
	select EXPERIMENTAL
	help
	  Enable Debug Port interface driver

if DP_DRIVER

module = DP_DRIVER
module-str = dp drv
source "subsys/logging/Kconfig.template.log_config"

config DP_DRIVER_INIT_PRIO
	int "Debug Port driver initialization priority"
	default 80
	help
	  Set the initialization priority number.

config SWDP_BITBANG_DRIVER
	bool "Serial Wire Debug Port bit-bang driver"
	default y
	depends on DT_HAS_ZEPHYR_SWDP_GPIO_ENABLED
	depends on GPIO
	help
	  Serial Wire Debug Port bit-bang driver.

config SWDP_BITBANG_NO_DISCONNECT
	bool "Use GPIO_INPUT instead of GPIO_DISCONNECTED"
	default y if GPIO_STM32
	depends on SWDP_BITBANG_DRIVER
	help
	  When deactivating the debug port, use GPIO_INPUT instead of
	  GPIO_DISCONNECTED. Use if the underlying gpio driver does not support
	  the GPIO_DISCONNECTED state.

endif # DP_DRIVER
