Skip to content

Commit db909dc

Browse files
committed
drivers: peci: 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 be39a96 commit db909dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/peci/peci_npcx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int peci_npcx_enable(const struct device *dev)
124124

125125
reg->PECI_CTL_STS = BIT(NPCX_PECI_CTL_STS_DONE) | BIT(NPCX_PECI_CTL_STS_CRC_ERR) |
126126
BIT(NPCX_PECI_CTL_STS_ABRT_ERR);
127-
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
127+
k_irq_clear_pending(DT_INST_IRQN(0));
128128
irq_enable(DT_INST_IRQN(0));
129129

130130
k_sem_give(&data->lock);

0 commit comments

Comments
 (0)