Skip to content

Commit f639390

Browse files
committed
samples: peripheral: radio_test: Fix IRQ priorities
Zephyr has added static assert verifying that IRQ priority set does not exceed the lowest IRQ priority available in the system. The radio_test sample did not comply with the requirements. Fix this by setting the IRQ priorities in the sample to the lowest possible value available in the system. Signed-off-by: Robert Lubos <[email protected]>
1 parent 29b9677 commit f639390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/peripheral/radio_test/src/radio_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,10 @@ int radio_test_init(struct radio_test_config *config)
686686
#endif /* CONFIG_NRF21540_FEM */
687687

688688
timer_init(config);
689-
IRQ_CONNECT(TIMER0_IRQn, NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY,
689+
IRQ_CONNECT(TIMER0_IRQn, IRQ_PRIO_LOWEST,
690690
nrfx_timer_0_irq_handler, NULL, 0);
691691

692-
irq_connect_dynamic(RADIO_IRQn, 7, radio_handler, config, 0);
692+
irq_connect_dynamic(RADIO_IRQn, IRQ_PRIO_LOWEST, radio_handler, config, 0);
693693
irq_enable(RADIO_IRQn);
694694

695695
return 0;

0 commit comments

Comments
 (0)