modules: build segger debugmon code with config

Updated segger module CMake to build code added by
https://github.com/zephyrproject-rtos/segger/pull/14 when relevant
config is provided.

Signed-off-by: Piotr Jasiński <piotr.jasinski@nordicsemi.no>
This commit is contained in:
Piotr Jasiński 2022-12-06 19:20:34 +01:00 committed by Carles Cufí
commit ceb7ca7e80
3 changed files with 26 additions and 4 deletions

View file

@ -421,3 +421,11 @@ config GDBSTUB_BUF_SZ
full GDB packet at a time.
endif
config SEGGER_DEBUGMON
bool "Use Segger's J-Link debug monitor implementation"
depends on CORTEX_M_DEBUG_MONITOR_HOOK
help
This option will enable Segger's implementation of
the debug monitor interrupt, overriding the
default z_arm_debug_monitor symbol.