drivers/nrf52: fix rfclk functions for RIOT

This commit is contained in:
Hauke Petersen
2022-06-02 10:10:26 +02:00
committed by Hauke Petersen
parent b752f1bedc
commit c8a5122eba
+2 -2
View File
@@ -2239,7 +2239,7 @@ void ble_phy_disable_dtm(void)
void
ble_phy_rfclk_enable(void)
{
#if MYNEWT
#if MYNEWT || defined(RIOT_VERSION)
nrf52_clock_hfxo_request();
#else
nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_HFCLKSTART);
@@ -2249,7 +2249,7 @@ ble_phy_rfclk_enable(void)
void
ble_phy_rfclk_disable(void)
{
#if MYNEWT
#if MYNEWT || defined(RIOT_VERSION)
nrf52_clock_hfxo_release();
#else
nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_HFCLKSTOP);