Skip to content

Commit

Permalink
esb: Fix dynamic interrupts usage
Browse files Browse the repository at this point in the history
Fixed dynamic interrupts implementation.
Updated sample.yaml with a test case for dynamic interrupts.

Ref: NCSDK-28990

Signed-off-by: Marcin Jelinski <marcin.jelinski@nordicsemi.no>
  • Loading branch information
maje-emb committed Nov 13, 2024
1 parent fdb40d4 commit bd28e88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion samples/esb/esb_prx/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ tests:
- CONFIG_ESB_DYNAMIC_INTERRUPTS=y
- CONFIG_DYNAMIC_INTERRUPTS=y
- CONFIG_DYNAMIC_DIRECT_INTERRUPTS=y
- CONFIG_MPSL_DYNAMIC_INTERRUPTS=y
integration_platforms:
- nrf5340dk/nrf5340/cpunet
- nrf52840dk/nrf52840
platform_allow: nrf5340dk/nrf5340/cpunet nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpurad
platform_allow: >
nrf5340dk/nrf5340/cpunet
nrf52840dk/nrf52840
nrf54l15dk/nrf54l15/cpuapp
nrf54h20dk/nrf54h20/cpurad
tags: esb ci_build sysbuild ci_samples_esb
sample.esb.prx.nrf5340_nrf21540:
sysbuild: true
Expand Down
9 changes: 8 additions & 1 deletion samples/esb/esb_ptx/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ tests:
- CONFIG_ESB_DYNAMIC_INTERRUPTS=y
- CONFIG_DYNAMIC_INTERRUPTS=y
- CONFIG_DYNAMIC_DIRECT_INTERRUPTS=y
- CONFIG_MPSL_DYNAMIC_INTERRUPTS=y
integration_platforms:
- nrf5340dk/nrf5340/cpunet
- nrf52840dk/nrf52840
platform_allow: nrf5340dk/nrf5340/cpunet nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpurad
platform_allow: >
nrf5340dk/nrf5340/cpunet
nrf52840dk/nrf52840
nrf54l15dk/nrf54l15/cpuapp
nrf54h20dk/nrf54h20/cpurad
tags: esb ci_build sysbuild ci_samples_esb
sample.esb.ptx.nrf5340_nrf21540:
sysbuild: true
Expand Down
2 changes: 1 addition & 1 deletion subsys/esb/esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ static void evt_dynamic_irq_handler(const void *args)
{
ARG_UNUSED(args);
if (IS_ENABLED(ESB_EVT_USING_EGU)) {
nrf_egu_event_clear(ESB_EGU, ESB_EGU_EVT_TASK);
nrf_egu_event_clear(ESB_EGU, ESB_EGU_EVT_EVENT);
}
esb_evt_irq_handler();
ISR_DIRECT_PM();
Expand Down

0 comments on commit bd28e88

Please sign in to comment.