You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2019/03/20 18:50:37 UTC
[mynewt-core] branch nrf52_debugger_chk_override created (now
251180e)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a change to branch nrf52_debugger_chk_override
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.
at 251180e nrf52: Change syscfg name
This branch includes the following new commits:
new 251180e nrf52: Change syscfg name
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[mynewt-core] 01/01: nrf52: Change syscfg name
Posted by vi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch nrf52_debugger_chk_override
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 251180eb44d0a12b460a092327941b8823779f14
Author: Vipul Rahane <vr...@gmail.com>
AuthorDate: Wed Mar 20 11:48:16 2019 -0700
nrf52: Change syscfg name
---
hw/mcu/nordic/nrf52xxx/src/hal_system.c | 2 +-
hw/mcu/nordic/nrf52xxx/syscfg.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_system.c b/hw/mcu/nordic/nrf52xxx/src/hal_system.c
index 7497df5..2b1fa36 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_system.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_system.c
@@ -56,7 +56,7 @@ hal_system_reset(void)
int
hal_debugger_connected(void)
{
-#if MYNEWT_VAL(NRF52_HAL_DEBUGGER_CHK)
+#if MYNEWT_VAL(MCU_DEBUG_IGNORE_DEBUGGER)
return CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk;
#else
return 0;
diff --git a/hw/mcu/nordic/nrf52xxx/syscfg.yml b/hw/mcu/nordic/nrf52xxx/syscfg.yml
index 1d2d019..d9b5462 100644
--- a/hw/mcu/nordic/nrf52xxx/syscfg.yml
+++ b/hw/mcu/nordic/nrf52xxx/syscfg.yml
@@ -60,7 +60,7 @@ syscfg.defs:
Refer to nRF52xxx Product Specification document for more details.
value: 0
- NRF52_HAL_DEBUGGER_CHK:
+ MCU_DEBUG_IGNORE_DEBUGGER:
description: >
When enabled, hal_debugger_connected() will check the debug registers
for a debugger. If not set, it will assume a debugger is not connected