You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/07/28 17:31:40 UTC

[GitHub] [mynewt-core] amrbekhit commented on a change in pull request #1783: Modified the nRF5x timer and system init code to use the nRF HFXO manager

amrbekhit commented on a change in pull request #1783: Modified the nRF5x timer and system init code to use the nRF HFXO manager
URL: https://github.com/apache/mynewt-core/pull/1783#discussion_r308010734
 
 

 ##########
 File path: hw/mcu/nordic/nrf51xxx/src/nrf51_clock.c
 ##########
 @@ -39,7 +39,11 @@ nrf51_clock_hfxo_request(void)
     __HAL_DISABLE_INTERRUPTS(ctx);
     assert(nrf51_clock_hfxo_refcnt < 0xff);
     if (nrf51_clock_hfxo_refcnt == 0) {
+        /* Make sure that the HFXO has not previously been started manually */
+        assert(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
 
 Review comment:
   Ah yes, good catch. This has been corrected now.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services