mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-12 07:20:33 +00:00
drivers/nrf52: fix rfclk functions for RIOT
This commit is contained in:
committed by
Hauke Petersen
parent
b752f1bedc
commit
c8a5122eba
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user