nordic: use portable IRQ pending API in drivers/socs - #117388
Open
nashif wants to merge 7 commits into
Open
Conversation
nashif
commented
Aug 26, 2026
Member
- arch: posix: implement the IRQ pending-state operations
- drivers: timer: nrf_rtc: use portable IRQ pending API
- drivers: serial: nrfx_uart: use portable IRQ pending API
- drivers: usb: nrf: use portable IRQ pending API
- drivers: entropy: nrf5: use portable IRQ pending API
- Bluetooth: controller: nrf5: use portable IRQ pending API
- boards: qemu: cortex_m0: use portable IRQ pending API
Wire arch_irq_set_pending(), arch_irq_clear_pending() and arch_irq_is_pending() to the posix_sw_*_pending_IRQ() interface that every POSIX-arch board (native_sim, the bsim boards) implements, and select ARCH_HAS_IRQ_PENDING_OPS. The set and clear entry points already existed; the pending-state query is new and is backed by the native simulator's interrupt controller status on both board families. This lets drivers shared between real hardware and the simulated boards -- the Nordic timer, entropy, USB and Bluetooth controller code in particular -- use the portable k_irq_*_pending() API instead of CMSIS NVIC calls that the simulation boards have to emulate. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(). The portable API is backed by the NVIC on the Nordic hardware targets and by the POSIX-arch board interface on the simulated bsim targets, so the CMSIS emulation layer is no longer involved. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
zephyrbot
requested review from
aescolar,
anangl,
andyross,
bjarki-andreasen,
carlescufi,
ceolin,
cvinayak,
dcpleung,
erbr-ot,
ithinuel,
jaz1-nordic,
jfischer-no and
josuah
August 26, 2026 00:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.