Skip to content

Commit

Permalink
modules: nrfxlib: nrf_802154: add missing code for v3.3.99-ncs1 based
Browse files Browse the repository at this point in the history
The cherry-picked workaround against nRF53 anomaly 165, the "pretick"
is based on nrfx 3.0.0. The added code introduces missing definitions
to the soc.c file which are missing in nrfx 2.11.0.

Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
  • Loading branch information
ankuns committed Aug 20, 2024
1 parent b450be0 commit b17d593
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ BUILD_ASSERT(CONFIG_MPSL);
#define RTC_MIN_CYCLES_FROM_NOW 3
#endif

/** @brief Macro for creating the interrupt bitmask for the specified compare channel. */
#define NRF_RTC_CHANNEL_INT_MASK(ch) ((uint32_t)(NRF_RTC_INT_COMPARE0_MASK) << (ch))

/** @brief Macro for obtaining the compare event for the specified channel. */
#define NRF_RTC_CHANNEL_EVENT_ADDR(ch) \
(nrf_rtc_event_t)((NRF_RTC_EVENT_COMPARE_0) + (ch) * sizeof(uint32_t))

struct timer_desc {
z_nrf_rtc_timer_compare_handler_t handler;
uint64_t target_time;
Expand Down

0 comments on commit b17d593

Please sign in to comment.