Contiki-NG
Loading...
Searching...
No Matches
nrf_802154_platform_clock.c File Reference

Clock abstraction layer for nrf_802154 on the nRF5340 network core. More...

#include "platform/nrf_802154_clock.h"
#include "hal/nrf_clock.h"
#include "nrf.h"
#include <stdbool.h>

Go to the source code of this file.

Detailed Description

Clock abstraction layer for nrf_802154 on the nRF5340 network core.

The radio requires the HFCLK to be sourced from the HFXO. On the nRF5340 (unlike the nRF54L) this is the classic TASKS_HFCLKSTART / EVENTS_HFCLKSTARTED sequence with no separate PLL step. The HFXO is pre-started in nrf_802154_clock_init() (with interrupts enabled) and then kept running, so the library's hfclk_start() – which may be called from a critical section – never has to busy-wait. LFCLK is owned by clock-arch.c (RTC0), so we never touch it here.

Definition in file nrf_802154_platform_clock.c.