Skip to content

Commit

Permalink
mspl: Treat simulated nrf54l15 like real one
Browse files Browse the repository at this point in the history
Let's use the SOC_COMPATIBLE_NRF54LX kconfig option instead of
SOC_SERIES_NRF54LX so we treat both the real and simulated targets
equally.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar authored and rlubos committed Sep 6, 2024
1 parent 5330fca commit 57dd360
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion subsys/mpsl/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ config MPSL_LOW_PRIO_IRQN
default 25 if SOC_COMPATIBLE_NRF52X # SWI5
default 26 if SOC_COMPATIBLE_NRF53X # SWI0
default 404 if SOC_SERIES_NRF54HX # QDEC130
default 28 if SOC_SERIES_NRF54LX # SWI00
default 28 if SOC_COMPATIBLE_NRF54LX # SWI00
help
This option sets the low priority interrupt that MPSL will use.
Check the interrupt number in the MDK
Expand Down
8 changes: 4 additions & 4 deletions subsys/mpsl/init/mpsl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ extern void rtc_pretick_rtc0_isr_hook(void);
#endif
#endif

#if !defined(CONFIG_SOC_SERIES_NRF54HX) && !defined(CONFIG_SOC_SERIES_NRF54LX)
#if !defined(CONFIG_SOC_SERIES_NRF54HX) && !defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
#define MPSL_TIMER_IRQn TIMER0_IRQn
#define MPSL_RTC_IRQn RTC0_IRQn
#define MPSL_RADIO_IRQn RADIO_IRQn
#elif defined(CONFIG_SOC_SERIES_NRF54LX)
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
#define MPSL_TIMER_IRQn TIMER10_IRQn
#define MPSL_RTC_IRQn GRTC_3_IRQn
#define MPSL_RADIO_IRQn RADIO_0_IRQn
Expand All @@ -59,11 +59,11 @@ extern void rtc_pretick_rtc0_isr_hook(void);
#if defined(CONFIG_SOC_SERIES_NRF54HX)
/* Basic build time sanity checking */
#define MPSL_RESERVED_GRTC_CHANNELS ((1U << 8) | (1U << 9) | (1U << 10) | (1U << 11) | (1U << 12))
#elif defined(CONFIG_SOC_SERIES_NRF54LX)
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
#define MPSL_RESERVED_GRTC_CHANNELS ((1U << 7) | (1U << 8) | (1U << 9) | (1U << 10) | (1U << 11))
#endif

#if defined(CONFIG_SOC_SERIES_NRF54HX) || defined(CONFIG_SOC_SERIES_NRF54LX)
#if defined(CONFIG_SOC_SERIES_NRF54HX) || defined(CONFIG_SOC_COMPATIBLE_NRF54LX)

BUILD_ASSERT(MPSL_RTC_IRQn != DT_IRQN(DT_NODELABEL(grtc)), "MPSL requires a dedicated GRTC IRQ");

Expand Down

0 comments on commit 57dd360

Please sign in to comment.