You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2023/06/02 20:34:29 UTC
[mynewt-core] branch master updated: Use syscfg settign for sysinit stage numbers This allows the target to rearrange package initialization order via syscfg override
This is an automated email from the ASF dual-hosted git repository.
wes3 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 7fc827ed2 Use syscfg settign for sysinit stage numbers This allows the target to rearrange package initialization order via syscfg override
7fc827ed2 is described below
commit 7fc827ed2d9aeae75268ce86570136b38e301958
Author: Philip Burkhardt <ph...@juul.com>
AuthorDate: Tue Jan 31 15:51:07 2023 -0800
Use syscfg settign for sysinit stage numbers
This allows the target to rearrange package initialization order via syscfg override
---
hw/bus/pkg.yml | 2 +-
hw/bus/syscfg.yml | 5 +++++
hw/mcu/dialog/da1469x/pkg.yml | 2 +-
hw/mcu/dialog/da1469x/syscfg.yml | 5 +++++
mgmt/smp/smp_os/pkg.yml | 2 +-
hw/bus/pkg.yml => mgmt/smp/smp_os/syscfg.yml | 14 +++++---------
6 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/hw/bus/pkg.yml b/hw/bus/pkg.yml
index 7828e4696..6a4759d76 100644
--- a/hw/bus/pkg.yml
+++ b/hw/bus/pkg.yml
@@ -25,4 +25,4 @@ pkg.keywords:
pkg.deps:
pkg.init:
- bus_pkg_init: 100
+ bus_pkg_init: 'MYNEWT_VAL(BUS_SYSINIT_STAGE)'
diff --git a/hw/bus/syscfg.yml b/hw/bus/syscfg.yml
index f9ac0e6b0..c1bc74987 100644
--- a/hw/bus/syscfg.yml
+++ b/hw/bus/syscfg.yml
@@ -73,3 +73,8 @@ syscfg.defs:
magic value which is then checked on each operation to ensure
proper objects are passed to APIs.
value: 0
+
+ BUS_SYSINIT_STAGE:
+ description: >
+ System initialization stage for bus package
+ value: 100
diff --git a/hw/mcu/dialog/da1469x/pkg.yml b/hw/mcu/dialog/da1469x/pkg.yml
index 86b49f7a5..d6a9c87b9 100644
--- a/hw/mcu/dialog/da1469x/pkg.yml
+++ b/hw/mcu/dialog/da1469x/pkg.yml
@@ -61,4 +61,4 @@ pkg.deps.SDADC:
- "@apache-mynewt-core/hw/drivers/adc/sdadc_da1469x"
pkg.init:
- da1469x_lpclk_init: 1
+ da1469x_lpclk_init: 'MYNEWT_VAL(DA1469X_LPCLK_SYSINIT_STAGE)'
diff --git a/hw/mcu/dialog/da1469x/syscfg.yml b/hw/mcu/dialog/da1469x/syscfg.yml
index fe4e45b6e..eb2b642c7 100644
--- a/hw/mcu/dialog/da1469x/syscfg.yml
+++ b/hw/mcu/dialog/da1469x/syscfg.yml
@@ -459,6 +459,11 @@ syscfg.defs:
'Disable watchdog on init'
value: 1
+ DA1469X_LPCLK_SYSINIT_STAGE:
+ description: >
+ 'Initalization stage for DA1469X'
+ value: 1
+
syscfg.vals:
OS_TICKS_PER_SEC: 128
diff --git a/mgmt/smp/smp_os/pkg.yml b/mgmt/smp/smp_os/pkg.yml
index e4e7e13ce..1283430ff 100644
--- a/mgmt/smp/smp_os/pkg.yml
+++ b/mgmt/smp/smp_os/pkg.yml
@@ -39,4 +39,4 @@ pkg.req_apis:
- smp
pkg.init:
- smp_os_pkg_init: 501
+ smp_os_pkg_init: 'MYNEWT_VAL(SMP_OS_SYSINIT_STAGE)'
diff --git a/hw/bus/pkg.yml b/mgmt/smp/smp_os/syscfg.yml
similarity index 79%
copy from hw/bus/pkg.yml
copy to mgmt/smp/smp_os/syscfg.yml
index 7828e4696..e589b21a9 100644
--- a/hw/bus/pkg.yml
+++ b/mgmt/smp/smp_os/syscfg.yml
@@ -17,12 +17,8 @@
# under the License.
#
-pkg.name: hw/bus
-pkg.description: Serial bus access layer
-pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
-pkg.homepage: "http://mynewt.apache.org/"
-pkg.keywords:
-pkg.deps:
-
-pkg.init:
- bus_pkg_init: 100
+syscfg.defs:
+ SMP_OS_SYSINIT_STAGE:
+ description: >
+ 'System initialization stage for SMP OS package'
+ value: 501