Skip to content

Commit

Permalink
fix build with older nrfx api
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyichuan committed Jul 28, 2022
1 parent 0341764 commit 085412c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/portable/nordic/nrf5x/dcd_nrf5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ static bool hfclk_running(void)
}
#endif

return nrf_clock_hf_is_running(NRF_CLOCK, NRF_CLOCK_HFCLK_HIGH_ACCURACY);
return nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY);
}

static void hfclk_enable(void)
Expand All @@ -933,8 +933,8 @@ static void hfclk_enable(void)
}
#endif

nrf_clock_event_clear(NRF_CLOCK, NRF_CLOCK_EVENT_HFCLKSTARTED);
nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_HFCLKSTART);
nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTART);
#endif
}

Expand All @@ -953,7 +953,7 @@ static void hfclk_disable(void)
}
#endif

nrf_clock_task_trigger(NRF_CLOCK, NRF_CLOCK_TASK_HFCLKSTOP);
nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP);
#endif
}

Expand Down

0 comments on commit 085412c

Please sign in to comment.