1# Copyright (c) 2025 Muhmmad Waleed Badar 2# 3# SPDX-License-Identifier: Apache-2.0 4 5source "Kconfig.zephyr" 6 7config TEST_IRQ_NUM 8 int "Test IRQ number" 9 default 42 if BOARD_QEMU_CORTEX_M3 10 default 14 if GIC 11 default 22 if SOC_SERIES_DA1469X 12 default 18 if SOC_SERIES_STM32C0X 13 default 1 if (SOC_SERIES_NPCX9 || SOC_SERIES_NPCX7 || SOC_SERIES_NPCK3) 14 default 29 if SOC_K32L2B31A 15 default 28 if SOC_SERIES_NRF54LX 16 default 0 17 help 18 IRQ number to use for testing purposes. This should be an 19 available/unused IRQ on the target platform. 20 21 Platform-specific defaults: 22 - QEMU Cortex-M3: 42 (available test IRQ) 23 - GIC platforms: 14 (available test SGI - Software Generated Interrupt) 24 - DA1469X series: 22 (available test IRQ) 25 - STM32C0X series: 18 (available test IRQ) 26 - NPCX9, NPCX7, NPCK3 series: 1 (unused IRQ not mapped to MIWU groups) 27 - K32L2B31A: 29 (available test IRQ) 28 - Other platforms: 0 (magic config value to select the last IRQ: NUM_IRQS - 1) 29 30config TEST_IRQ_PRIO 31 int "Test IRQ priority" 32 default 160 if GIC 33 default 1 34 help 35 Platform-specific defaults: 36 - GIC platforms: IRQ_DEFAULT_PRIORITY (system default) 37 - Other platforms: 1 (high priority for testing) 38