From 0838f5809ab08cb397809fd93c05ada09839b9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eckhart=20K=C3=B6ppen?= Date: Mon, 30 Jan 2023 01:40:42 +0200 Subject: [PATCH] Add all interrupts for a peripheral (#81) --- tools/regz/src/svd.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/regz/src/svd.zig b/tools/regz/src/svd.zig index b951ed6..32af2f4 100644 --- a/tools/regz/src/svd.zig +++ b/tools/regz/src/svd.zig @@ -262,7 +262,8 @@ pub fn loadPeripheral(ctx: *Context, node: xml.Node, device_id: EntityId) !void try db.addSize(type_id, elements.dim_increment); } - if (node.findChild("interrupt")) |interrupt_node| + var interrupt_it = node.iterate(&.{}, "interrupt"); + while (interrupt_it.next()) |interrupt_node| try loadInterrupt(db, interrupt_node, device_id); if (node.getValue("description")) |description|