From e639dc7983e628f004c030930dc013b61d64dd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= Date: Tue, 15 Mar 2022 09:59:09 +0100 Subject: [PATCH] panic exporting is no longer needed. (#30) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Felix "xq" Queißner --- tests/blinky.zig | 3 --- tests/interrupt.zig | 6 ------ tests/minimal.zig | 3 --- tests/uart-sync.zig | 3 --- 4 files changed, 15 deletions(-) diff --git a/tests/blinky.zig b/tests/blinky.zig index 7a24275..0e702d0 100644 --- a/tests/blinky.zig +++ b/tests/blinky.zig @@ -1,8 +1,5 @@ const micro = @import("microzig"); -// this will instantiate microzig and pull in all dependencies -pub const panic = micro.panic; - // Configures the led_pin to a hardware pin const led_pin = if (micro.config.has_board) switch (micro.config.board_name) { diff --git a/tests/interrupt.zig b/tests/interrupt.zig index 601d7fb..34a3c68 100644 --- a/tests/interrupt.zig +++ b/tests/interrupt.zig @@ -1,12 +1,6 @@ const micro = @import("microzig"); const builtin = @import("builtin"); -// this program will only work on arm microcontrollers, and it might not -// actually run correctly at first, it's just a test for declaring interrupts -// right now. - -pub const panic = micro.panic; - pub const interrupts = switch (builtin.cpu.arch) { .avr => struct { pub fn INT0() void { diff --git a/tests/minimal.zig b/tests/minimal.zig index 17a2105..5258ce3 100644 --- a/tests/minimal.zig +++ b/tests/minimal.zig @@ -1,8 +1,5 @@ const micro = @import("microzig"); -// this will instantiate microzig and pull in all dependencies -pub const panic = micro.panic; - pub fn main() void { // This function will contain the application logic. } diff --git a/tests/uart-sync.zig b/tests/uart-sync.zig index a1713b2..2a0734e 100644 --- a/tests/uart-sync.zig +++ b/tests/uart-sync.zig @@ -1,8 +1,5 @@ const micro = @import("microzig"); -// this will instantiate microzig and pull in all dependencies -pub const panic = micro.panic; - // Configures the led_pin to a hardware pin const uart_txd_pin = micro.Pin("P0.15"); const uart_rxd_pin = micro.Pin("P0.16");