mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
dts: riscv: gd32vf103: Use IRQ7 for interrupt of riscv_machine_timer
IRQ7 is placed on the second element of interrupt definition. Select it by DT_INST_IRQ_BY_IDX() explicitly. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
committed by
Carles Cufí
parent
5cff937b3a
commit
eca3b1067e
@@ -29,7 +29,7 @@
|
||||
|
||||
#define MTIME_REG DT_INST_REG_ADDR(0)
|
||||
#define MTIMECMP_REG (DT_INST_REG_ADDR(0) + 8)
|
||||
#define TIMER_IRQN DT_INST_IRQN(0)
|
||||
#define TIMER_IRQN DT_INST_IRQ_BY_IDX(0, 1, irq)
|
||||
/* sifive,clint0 */
|
||||
#elif DT_HAS_COMPAT_STATUS_OKAY(sifive_clint0)
|
||||
#define DT_DRV_COMPAT sifive_clint0
|
||||
|
||||
Reference in New Issue
Block a user