Skip to content

Commit fbd97a1

Browse files
Martinhoff-makerkartben
authored andcommitted
soc: silabs: silabs_s2: Activate Zero Latency IRQ with level 2
silabs_s2 uses simplicity_sdk hal library, which already have by default a zero latency IRQs mechanism with a hardcoded value. In order to be aligned with simplicity_sdk, we need to activate Zero Latency IRQ in Zephyr by default. The level (2) depends on the hardcoded value in simplicity_sdk (CORE_ATOMIC_BASE_PRIORITY_LEVEL). Without this fix, if you use an IRQ with a priority of 0 or 1, irq_lock() and irq_unlock() have no effect for this IRQ. Signed-off-by: Martin Hoff <[email protected]>
1 parent f8d05ea commit fbd97a1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

soc/silabs/silabs_s2/Kconfig.defconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@ config SILABS_SLEEPTIMER_TIMER
1818
config CORTEX_M_SYSTICK
1919
default n if SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER
2020

21+
# silabs_s2 uses simplicity_sdk hal library, which already have by default a zero latency
22+
# IRQs mechanism with a hardcoded value. In order to be aligned with simplicity_sdk, we
23+
# need to activate Zero Latency IRQ in Zephyr by default. The level (2) depends on the
24+
# hardcoded value in simplicity_sdk (CORE_ATOMIC_BASE_PRIORITY_LEVEL). Without this config,
25+
# if you use an IRQ with a priority of 0 or 1, irq_lock() and irq_unlock() have no effect
26+
# over this IRQ.
27+
28+
config ZERO_LATENCY_IRQS
29+
default y
30+
31+
config ZERO_LATENCY_LEVELS
32+
default 2
33+
2134
endif

0 commit comments

Comments
 (0)