/* Delay function. Will add a delay equal to GZLL_RX_PERIOD * rx_periods  using the gazell timer and not a delay loop. */
void gzp_tick_sleep_rx_periods(uint32_t rx_periods)
/* Delay function. Will add a delay equal to GZLL_RX_PERIOD * rx_periods  using the gazell timer and not a delay loop. */
void gzp_tick_sleep_rx_periods(uint32_t rx_periods)
{
    nrf_gzll_clear_tick_count();
    while(nrf_gzll_get_tick_count() < 2*rx_periods)
    {
        __WFI();
    }
}