You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/05/11 09:13:45 UTC

[mynewt-core] branch master updated: mcu/nrf5340: Add MCU_TARGET

This is an automated email from the ASF dual-hosted git repository.

jerzy 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 ae1ac2c  mcu/nrf5340: Add MCU_TARGET
ae1ac2c is described below

commit ae1ac2cbf69273d84d875cb08ef305e568f24621
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue May 11 09:32:51 2021 +0200

    mcu/nrf5340: Add MCU_TARGET
    
    MCU_TARGET syscfg value is commonly used in NRF5x based targets.
    NRF5340 already has MCU_APP_CORE and MCU_NET_CORE but for
    applications that can be built for all kinds of MCUs, it
    seems that common MCU_TARGET variable is cleaner solution to have.
---
 hw/mcu/nordic/nrf5340/syscfg.yml     | 8 ++++++++
 hw/mcu/nordic/nrf5340_net/syscfg.yml | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/hw/mcu/nordic/nrf5340/syscfg.yml b/hw/mcu/nordic/nrf5340/syscfg.yml
index bbf89d3..94a14af 100644
--- a/hw/mcu/nordic/nrf5340/syscfg.yml
+++ b/hw/mcu/nordic/nrf5340/syscfg.yml
@@ -17,6 +17,14 @@
 #
 
 syscfg.defs:
+    MCU_TARGET:
+        description: >
+            Specifies target MCU.
+        value: nRF5340_APP
+        restrictions:
+            - $notnull
+        choices:
+            - nRF5340_APP
     MCU_APP_CORE:
         description: >
             Constant value always set to 1.  It allows to have common
diff --git a/hw/mcu/nordic/nrf5340_net/syscfg.yml b/hw/mcu/nordic/nrf5340_net/syscfg.yml
index 2e039a1..8cd8c50 100644
--- a/hw/mcu/nordic/nrf5340_net/syscfg.yml
+++ b/hw/mcu/nordic/nrf5340_net/syscfg.yml
@@ -17,6 +17,14 @@
 #
 
 syscfg.defs:
+    MCU_TARGET:
+        description: >
+            Specifies target MCU.
+        value: nRF5340_NET
+        restrictions:
+            - $notnull
+        choices:
+            - nRF5340_NET
     MCU_NET_CORE:
         description: >
             Constant value always set to 1.  It allows to have common