kasjer commented on code in PR #2916:
URL: https://github.com/apache/mynewt-core/pull/2916#discussion_r1071123581


##########
hw/mcu/nordic/nrf51xxx/syscfg.yml:
##########
@@ -97,32 +97,49 @@ syscfg.defs:
         description: 'reference mV in VDD if used'
         value: 0
 
-# The XTAL_xxx definitions are used to set the clock source used for the low
-# frequency clock. It is required that at least one of these sources is
-# enabled (the bsp should set one of these clock sources).
+    MCU_LFCLK_SOURCE:
+        description: >
+            Selected source for low frequency clock (LFCLK).
+        value:
+        choices:
+            - LFRC      # 32.768 kHz RC oscillator
+            - LFXO      # 32.768 kHz crystal oscillator
+            - LFSYNTH   # 32.768 kHz synthesized from HFCLK
+
+    # Deprecated settings
+
     XTAL_32768:
-        description: 'External 32k oscillator LF clock source.'
+        description: Use MCU_LFCLK_SOURCE instead

Review Comment:
   I would be more specific in description:
   ```yml
   description: Use "MCU_LFCLK_SOURCE: LXFO" instead
   ```



##########
hw/mcu/nordic/nrf51xxx/syscfg.yml:
##########
@@ -97,32 +97,49 @@ syscfg.defs:
         description: 'reference mV in VDD if used'
         value: 0
 
-# The XTAL_xxx definitions are used to set the clock source used for the low
-# frequency clock. It is required that at least one of these sources is
-# enabled (the bsp should set one of these clock sources).
+    MCU_LFCLK_SOURCE:
+        description: >
+            Selected source for low frequency clock (LFCLK).
+        value:
+        choices:
+            - LFRC      # 32.768 kHz RC oscillator
+            - LFXO      # 32.768 kHz crystal oscillator
+            - LFSYNTH   # 32.768 kHz synthesized from HFCLK
+
+    # Deprecated settings
+
     XTAL_32768:
-        description: 'External 32k oscillator LF clock source.'
+        description: Use MCU_LFCLK_SOURCE instead
         value: 0
         restrictions:
-            - "!XTAL_32768_SYNTH"
             - "!XTAL_RC"
-
+            - "!XTAL_32768_SYNTH"

Review Comment:
   Why reverse line order?



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org

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

Reply via email to