andrzej-kaczmarek commented on a change in pull request #2481:
URL: https://github.com/apache/mynewt-core/pull/2481#discussion_r576908281



##########
File path: hw/mcu/dialog/da1469x/src/da1469x_prail.c
##########
@@ -176,13 +179,21 @@ da1469x_prail_dcdc_restore(void)
     if (CRG_TOP->ANA_STATUS_REG & CRG_TOP_ANA_STATUS_REG_COMP_VBAT_HIGH_Msk) {
         da1469x_retreg_restore(g_mcu_dcdc_config, 
ARRAY_SIZE(g_mcu_dcdc_config));
         DCDC->DCDC_CTRL1_REG |= DCDC_DCDC_CTRL1_REG_DCDC_ENABLE_Msk;
+#if MYNEWT_VAL(ENABLE_BLE)
+        /* Enable turnning DCDC on from CMAC core. */

Review comment:
       typo

##########
File path: hw/drivers/chg_ctrl/da1469x_charger/src/da1469x_charger.c
##########
@@ -27,6 +27,8 @@
 #include <bsp/bsp.h>
 #if MYNEWT_VAL(DA1469X_CHARGER_USE_CHARGE_CONTROL)
 #include <charge-control/charge_control.h>
+#include <mcu/da1469x_prail.h>
+

Review comment:
       empty line

##########
File path: hw/mcu/dialog/da1469x/src/da1469x_prail.c
##########
@@ -176,13 +179,21 @@ da1469x_prail_dcdc_restore(void)
     if (CRG_TOP->ANA_STATUS_REG & CRG_TOP_ANA_STATUS_REG_COMP_VBAT_HIGH_Msk) {
         da1469x_retreg_restore(g_mcu_dcdc_config, 
ARRAY_SIZE(g_mcu_dcdc_config));
         DCDC->DCDC_CTRL1_REG |= DCDC_DCDC_CTRL1_REG_DCDC_ENABLE_Msk;
+#if MYNEWT_VAL(ENABLE_BLE)
+        /* Enable turnning DCDC on from CMAC core. */
+        g_cmac_shared_data->dcdc.enabled = 1;
+#endif
     }
 }
 #endif
 
 void
 da1469x_prail_dcdc_disable(void)
 {
+#if MYNEWT_VAL(ENABLE_BLE)
+    /* Prevent CMAC from turnning DCDC on. */

Review comment:
       typo

##########
File path: hw/mcu/dialog/da1469x/src/da1469x_prail.c
##########
@@ -24,6 +24,9 @@
 #include "mcu/da1469x_hal.h"
 #include "mcu/da1469x_prail.h"
 #include "mcu/da1469x_retreg.h"
+#if MYNEWT_VAL(ENABLE_BLE)

Review comment:
       there's no such setting, use `MYNEWT_VAL_CHOICE(BLE_HCI_TRANSPORT, 
dialog_cmac)`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to