Skip to content

Commit ef52924

Browse files
committed
mgmt: ec_host_cmd: shi_npcx: use portable IRQ pending API
Replace direct NVIC_SetPendingIRQ()/NVIC_ClearPendingIRQ() calls with k_irq_set_pending()/k_irq_clear_pending(), dropping the dependency on cmsis_core.h where nothing else needed it. These platforms are plain-NVIC Cortex-M, so the pending-state capabilities are always available where this code builds. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent db909dc commit ef52924

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

subsys/mgmt/ec_host_cmd/backends/ec_host_cmd_backend_shi_npcx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "ec_host_cmd_backend_shi.h"
88

9+
#include <zephyr/irq.h>
910
#include <zephyr/drivers/clock_control.h>
1011
#include <zephyr/drivers/pinctrl.h>
1112
#include <zephyr/logging/log.h>
@@ -851,7 +852,7 @@ static int shi_npcx_enable(const struct device *dev)
851852
return ret;
852853
}
853854

854-
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
855+
k_irq_clear_pending(DT_INST_IRQN(0));
855856
/*
856857
* Clear the pending bit because switching the pinmux (pinctrl) might cause a faking WUI
857858
* pending bit set.

0 commit comments

Comments
 (0)