Skip to content

Commit 764fb12

Browse files
committed
drivers: counter: xlnx_ttc: use portable IRQ pending API
Replace direct NVIC pending-state calls with k_irq_set_pending()/ k_irq_is_pending()/k_irq_clear_pending(), dropping the dependency on cmsis_core.h where nothing else needed it. This driver called arm_gic_irq_set_pending() directly; the portable API removes the GIC-specific dependency. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent be39a96 commit 764fb12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/counter/counter_xlnx_ttc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
#define DT_DRV_COMPAT xlnx_ttc_counter
88

9+
#include <zephyr/irq.h>
910
#include <zephyr/device.h>
1011
#include <zephyr/drivers/counter.h>
11-
#include <zephyr/drivers/interrupt_controller/gic.h>
1212
#include <zephyr/logging/log.h>
1313
#include <zephyr/kernel.h>
1414
#include <zephyr/spinlock.h>
@@ -256,7 +256,7 @@ static void ttc_set_alarm_pending(const struct device *dev, uint8_t chan_id)
256256
struct ttc_data *data = dev->data;
257257

258258
atomic_or(&data->late_alarm_pending, BIT(chan_id));
259-
arm_gic_irq_set_pending(config->irq_num);
259+
k_irq_set_pending(config->irq_num);
260260
}
261261

262262
/* ==================== COUNTER API IMPLEMENTATION ==================== */

0 commit comments

Comments
 (0)