You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2023/12/01 11:12:57 UTC
(mynewt-core) branch master updated: mcu/nordic: Disable features not on nRF52810 & 11
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 5d679e68b mcu/nordic: Disable features not on nRF52810 & 11
5d679e68b is described below
commit 5d679e68b22a67f71ea1ddf70294cf745b0ddb5f
Author: Uks2 <to...@tomg.xyz>
AuthorDate: Wed Nov 22 15:51:28 2023 +0000
mcu/nordic: Disable features not on nRF52810 & 11
They don't have timer 3 or instruction cache
---
hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h | 2 +-
hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h | 2 +-
hw/mcu/nordic/nrf52xxx/syscfg.yml | 7 ++++++-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
index 6ef2189be..791d13e81 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
@@ -103,7 +103,7 @@
#endif
#ifndef NRFX_TIMER3_ENABLED
-#define NRFX_TIMER3_ENABLED 1
+#define NRFX_TIMER3_ENABLED 0
#endif
#ifndef NRFX_TWIM_ENABLED
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h b/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
index 368d3d79f..43b3375d7 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
@@ -103,7 +103,7 @@
#endif
#ifndef NRFX_TIMER3_ENABLED
-#define NRFX_TIMER3_ENABLED 1
+#define NRFX_TIMER3_ENABLED 0
#endif
#ifndef NRFX_TWIM_ENABLED
diff --git a/hw/mcu/nordic/nrf52xxx/syscfg.yml b/hw/mcu/nordic/nrf52xxx/syscfg.yml
index 6822a8ead..d28e2d8d7 100644
--- a/hw/mcu/nordic/nrf52xxx/syscfg.yml
+++ b/hw/mcu/nordic/nrf52xxx/syscfg.yml
@@ -97,7 +97,9 @@ syscfg.defs:
MCU_ICACHE_ENABLED:
description: >
Enabled Instruction code cache
- value: 1
+ value: 0
+ restrictions:
+ - '!(MCU_TARGET == "nRF52810" || MCU_TARGET == "nRF52811")'
MCU_COMMON_STARTUP:
description: >
@@ -482,6 +484,9 @@ syscfg.vals.MCU_NRF52832:
syscfg.vals.MCU_NRF52840:
MCU_TARGET: nRF52840
+syscfg.vals.'(MCU_TARGET == "nRF52832" || MCU_TARGET == "nRF52840")':
+ MCU_ICACHE_ENABLED: 1
+
syscfg.vals.XTAL_32768:
MCU_LFCLK_SOURCE: LFXO
syscfg.vals.XTAL_RC: