Skip to content

Commit 8f13312

Browse files
e-rkrlubos
authored andcommitted
nrf_802154: rev ab926396fe37113664734181cc4dfbb53fb61863
This commit updates revision of the nrf_802154 component. Signed-off-by: Rafal Kuznia <[email protected]>
1 parent b6675b0 commit 8f13312

File tree

31 files changed

+41
-0
lines changed

31 files changed

+41
-0
lines changed

nrf_802154/doc/CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Added
2525
=====
2626

2727
* Added the :c:func:`nrf_802154_alternate_short_address_set` function, which allows for setting the secondary short address that will be accepted by the frame filter. (KRKNWK-20051)
28+
* Added the :c:func:`nrf_802154_clock_hfclk_latency_set` function, which sets the HFXO startup latency.
29+
Currently, it is supported only on nRF54L Series SoCs.
30+
Use this API during clock platform initialization.
31+
If the latency is not set, the driver assumes a default worst-case startup latency of 1650 us.
2832

2933
nRF Connect SDK v3.0.0 - nRF 802.15.4 Radio Driver
3034
**************************************************

nrf_802154/sl/include/nrf_802154_sl_utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
(ticks) * (NRF_802154_SL_US_PER_S >> NRF_802154_SL_FREQUENCY_US_PER_S_GCD_BITS), \
6767
(NRF_802154_SL_RTC_FREQUENCY >> NRF_802154_SL_FREQUENCY_US_PER_S_GCD_BITS))
6868

69+
/**@brief Maximum of two values. */
70+
#define max(a, b) ((a) > (b) ? (a) : (b))
71+
72+
/**@brief Minimum of two values. */
73+
#define min(a, b) ((a) < (b) ? (a) : (b))
74+
6975
/**@brief Converts microseconds (us) to RTC ticks.
7076
*
7177
* @param time Time is us to be converted to RTC ticks.

nrf_802154/sl/include/platform/nrf_802154_clock.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#define NRF_802154_CLOCK_H_
5050

5151
#include <stdbool.h>
52+
#include <stdint.h>
5253

5354
#ifdef __cplusplus
5455
extern "C" {
@@ -127,6 +128,26 @@ extern void nrf_802154_clock_hfclk_ready(void);
127128
*/
128129
extern void nrf_802154_clock_lfclk_ready(void);
129130

131+
#ifdef NRF54L_SERIES
132+
133+
/**
134+
* @brief Informs the nRF 802.15.4 Radio Driver about the HFXO startup latency.
135+
*
136+
* This function sets the clock latency that will be taken into account during timing
137+
* calculations. Lower latencies result in lower power consumption and an ability to
138+
* schedule TX/RX windows earlier in the future, but require a crystal oscillator with better
139+
* parameters. The default clock latency assumes the worst-case crystal oscillator and should
140+
* be adjusted to achieve better power efficiency.
141+
*
142+
* Note: This API is available only on nRF54L series SoCs.
143+
*
144+
* @param[in] latency_us Time difference in microseconds between start event of the HFXO
145+
* and the HFXO started/tuned event.
146+
*/
147+
extern void nrf_802154_clock_hfclk_latency_set(uint32_t latency_us);
148+
149+
#endif
150+
130151
/**
131152
*@}
132153
**/
456 Bytes
Binary file not shown.
456 Bytes
Binary file not shown.
Binary file not shown.
456 Bytes
Binary file not shown.
456 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)