From 2e3cfec25dfca8ff421ebd0e1805ff554cfceadc Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Fri, 8 Jul 2022 00:51:00 +0900 Subject: [PATCH] modules: Add option for enabling HAL debug functions Add GD32_DBG_SUPPORT options to enable HAL debug functions. Signed-off-by: TOKITA Hiroshi --- modules/hal_gigadevice/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/hal_gigadevice/Kconfig b/modules/hal_gigadevice/Kconfig index e945a46964f..66132779eb1 100644 --- a/modules/hal_gigadevice/Kconfig +++ b/modules/hal_gigadevice/Kconfig @@ -70,6 +70,15 @@ config GD32_LOW_SPEED_IRC_FREQUENCY help Define value of low speed internal RC oscillator (IRC) in Hz +config GD32_DBG_SUPPORT + bool "Use GD32 Debug features" + select USE_GD32_DBG + default y + help + Enable GD32 Debug features. + This option makes allows using functions that access to + DBG_CTL register such as dbg_periph_enable(). + config USE_GD32_ADC bool help