extern struct for vector table (#4)

wch-ch32v003
Matt Knight 3 years ago committed by Matt Knight
parent ae94209b57
commit d6bdd69ab4

@ -700,7 +700,7 @@ pub fn toZig(self: *Self, writer: anytype) !void {
if (self.interrupts.items.len > 0 and self.cpu != null) { if (self.interrupts.items.len > 0 and self.cpu != null) {
if (svd.CpuName.parse(self.cpu.?.name.?)) |cpu_type| { if (svd.CpuName.parse(self.cpu.?.name.?)) |cpu_type| {
try writer.writeAll("\npub const VectorTable = struct {\n"); try writer.writeAll("\npub const VectorTable = extern struct {\n");
// TODO: isCortexM() // TODO: isCortexM()
if (cpu_type != .avr) { if (cpu_type != .avr) {

Loading…
Cancel
Save