cpu/nrf/radio/nrfble: request HFXO clock source

This commit is contained in:
Hauke Petersen 2021-01-19 20:51:10 +01:00
parent 11a914ed8a
commit deafa9074a

View File

@ -25,6 +25,7 @@
#include "cpu.h"
#include "assert.h"
#include "nrf_clock.h"
#include "nrfble.h"
#include "net/netdev/ble.h"
@ -238,6 +239,11 @@ static int _nrfble_init(netdev_t *dev)
(void)dev;
assert(_nrfble_dev.driver && _nrfble_dev.event_callback);
/* the radio need the external HF clock source to be enabled */
/* @todo add proper handling to release the clock whenever the radio is
* idle */
clock_hfxo_request();
/* power on the NRFs radio */
NRF_RADIO->POWER = 1;
/* configure variable parameters to default values */