Add all interrupts for a peripheral (#81)

wch-ch32v003
Eckhart Köppen 2 years ago committed by Matt Knight
parent 3d6cf928b3
commit 0838f5809a

@ -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|

Loading…
Cancel
Save