panic exporting is no longer needed. (#30)

Co-authored-by: Felix "xq" Queißner <git@masterq32.de>
wch-ch32v003
Felix Queißner 3 years ago committed by GitHub
parent b2793e2589
commit e639dc7983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,5 @@
const micro = @import("microzig"); 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 // Configures the led_pin to a hardware pin
const led_pin = if (micro.config.has_board) const led_pin = if (micro.config.has_board)
switch (micro.config.board_name) { switch (micro.config.board_name) {

@ -1,12 +1,6 @@
const micro = @import("microzig"); const micro = @import("microzig");
const builtin = @import("builtin"); 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) { pub const interrupts = switch (builtin.cpu.arch) {
.avr => struct { .avr => struct {
pub fn INT0() void { pub fn INT0() void {

@ -1,8 +1,5 @@
const micro = @import("microzig"); const micro = @import("microzig");
// this will instantiate microzig and pull in all dependencies
pub const panic = micro.panic;
pub fn main() void { pub fn main() void {
// This function will contain the application logic. // This function will contain the application logic.
} }

@ -1,8 +1,5 @@
const micro = @import("microzig"); 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 // Configures the led_pin to a hardware pin
const uart_txd_pin = micro.Pin("P0.15"); const uart_txd_pin = micro.Pin("P0.15");
const uart_rxd_pin = micro.Pin("P0.16"); const uart_rxd_pin = micro.Pin("P0.16");

Loading…
Cancel
Save