/* Initialize interrupts. 
Ensures all interrupts have their priority set to _EXC_IRQ_DEFAULT_PRIO and not 0, which they have it set to when coming out of reset. This ensures that interrupt locking via BASEPRI works as expected.  */
void z_arm_interrupt_init(void)
/* Initialize interrupts. 
Ensures all interrupts have their priority set to _EXC_IRQ_DEFAULT_PRIO and not 0, which they have it set to when coming out of reset. This ensures that interrupt locking via BASEPRI works as expected.  */
void z_arm_interrupt_init(void)
{
	int irq = 0;
	for (; irq < CONFIG_NUM_IRQS; irq++) {
		NVIC_SetPriority((IRQn_Type)irq, _IRQ_PRIO_OFFSET);
	}
}