tests: arm: zero latency irqs: fix the derivation of free NVIC line
The commit fixes the way we determine an available NVIC IRQ line to perform the zero-latency IRQ test. The test can now run properly on SOCs that do not have a continous set of implemented NVIC IRQ lines. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
79b49a7673
commit
3486709d2e
|
@ -33,9 +33,19 @@ void test_arm_zero_latency_irqs(void)
|
|||
* Interrupts configured statically with IRQ_CONNECT(.)
|
||||
* are automatically enabled. NVIC_GetEnableIRQ()
|
||||
* returning false, here, implies that the IRQ line is
|
||||
* not enabled, thus, currently not in use by Zephyr.
|
||||
* either not implemented or it is not enabled, thus,
|
||||
* currently not in use by Zephyr.
|
||||
*/
|
||||
break;
|
||||
|
||||
/* Set the NVIC line to pending. */
|
||||
NVIC_SetPendingIRQ(i);
|
||||
|
||||
if (NVIC_GetPendingIRQ(i)) {
|
||||
/* If the NVIC line is pending, it is
|
||||
* guaranteed that it is implemented.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue