You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/10/02 18:43:07 UTC

[mynewt-core] branch master updated: mcu/dialog/da1469x: Add API to explicitly disabling dcdc converter

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

andk 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 060df6f  mcu/dialog/da1469x: Add API to explicitly disabling dcdc converter
060df6f is described below

commit 060df6f9dfe3c22f8679e62a8515e8f73d830980
Author: JustineKH <ju...@juul.com>
AuthorDate: Wed Oct 2 11:28:44 2019 -0700

    mcu/dialog/da1469x: Add API to explicitly disabling dcdc converter
---
 hw/mcu/dialog/da1469x/include/mcu/da1469x_prail.h | 5 +++++
 hw/mcu/dialog/da1469x/src/da1469x_prail.c         | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/hw/mcu/dialog/da1469x/include/mcu/da1469x_prail.h b/hw/mcu/dialog/da1469x/include/mcu/da1469x_prail.h
index 4f1aae9..801a374 100644
--- a/hw/mcu/dialog/da1469x/include/mcu/da1469x_prail.h
+++ b/hw/mcu/dialog/da1469x/include/mcu/da1469x_prail.h
@@ -44,6 +44,11 @@ void da1469x_prail_dcdc_restore(void);
 
 #endif
 
+/**
+ * Disable DCDC
+ */
+void da1469x_prail_dcdc_disable(void);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/hw/mcu/dialog/da1469x/src/da1469x_prail.c b/hw/mcu/dialog/da1469x/src/da1469x_prail.c
index 5abeef5..df6b266 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_prail.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_prail.c
@@ -153,6 +153,12 @@ da1469x_prail_dcdc_restore(void)
 #endif
 
 void
+da1469x_prail_dcdc_disable(void)
+{
+    DCDC->DCDC_CTRL1_REG &= ~DCDC_DCDC_CTRL1_REG_DCDC_ENABLE_Msk;
+}
+
+void
 da1469x_prail_initialize(void)
 {
     da1469x_prail_configure_3v0();