[riot-notifications] [RIOT-OS/RIOT] cpu/nrf/radio/nrfble: request HFXO only on demand (#15806)

Hauke Petersen notifications at github.com
Tue Jan 19 21:24:36 CET 2021


### Contribution description
This is a continuation of #15804 and enables the `nrfble` radio driver to request the external high frequency crystal as clock source only on demand, hence allowing for the CPU to save significant power. 

When combined with #15804 and #15805 this PR will reduce the average current drawn by the `examples/skald_ibeacon` application from ~400µA down to 13µA!!! Thus it makes the difference from running ~3 months to running >5 years on a 1000mAh battery :-)

### Testing procedure
Simply run `examples/skald_ibeacon` on any Nordic board and verify that the node is broadcasting

### Issues/PRs references
Depends on/rebased on  #15804

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15806

-- Commit Summary --

  * cpu/nrf5x: allow to request/release HFXO clk src
  * cpu/nrf/radio/nrf802154: request HFXO clock source
  * cpu/nrf/radio/nrfmin: request HFXO clock source
  * cpu/nrf/radio/nrfble: request HFXO clock source

-- File Changes --

    M cpu/nrf52/radio/nrf802154/nrf802154.c (6)
    M cpu/nrf5x_common/clock.c (34)
    M cpu/nrf5x_common/include/nrf_clock.h (12)
    M cpu/nrf5x_common/radio/nrfble/nrfble.c (6)
    M cpu/nrf5x_common/radio/nrfmin/nrfmin.c (6)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15806.patch
https://github.com/RIOT-OS/RIOT/pull/15806.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15806
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210119/8496e02b/attachment.htm>


More information about the notifications mailing list