Skip to content

Commit bd80b0a

Browse files
committed
remove unused imports
1 parent 2847c4f commit bd80b0a

File tree

27 files changed

+5
-63
lines changed

27 files changed

+5
-63
lines changed

core/src/cpus/cortex_m.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ const std = @import("std");
22
const builtin = @import("builtin");
33
const microzig = @import("microzig");
44
const mmio = microzig.mmio;
5-
const app = microzig.app;
6-
const shared = @import("cortex_m/shared_types.zig");
75
const VectorTable = microzig.chip.VectorTable;
86

97
const Core = enum {

core/src/cpus/cortex_m/m0.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const microzig = @import("microzig");
22
const mmio = microzig.mmio;
33

4-
const shared = @import("shared_types.zig");
5-
64
pub const scb_base_offset = 0x0d00;
75

86
pub const SystemControlBlock = extern struct {

core/src/cpus/cortex_m/m0plus.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const microzig = @import("microzig");
22
const mmio = microzig.mmio;
33

4-
const shared = @import("shared_types.zig");
5-
64
pub const scb_base_offset = 0x0d00;
75

86
pub const SystemControlBlock = extern struct {

core/src/mmio.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const std = @import("std");
2-
const assert = std.debug.assert;
32

43
pub fn OldMmio(comptime PackedT: type) type {
54
const startsWith = std.mem.startsWith;

port/espressif/esp/src/hal/i2c.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const peripherals = microzig.chip.peripherals;
66
pub const I2C0 = peripherals.I2C0;
77

88
const gpio = @import("gpio.zig");
9-
const clocks = @import("clocks.zig");
109
const time = @import("time.zig");
1110

1211
// TODO: How and why. Is this xtal? That clock is 40_000_000 according to the hal

port/nordic/nrf5x/src/hal/clocks.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const std = @import("std");
2-
31
const microzig = @import("microzig");
42
const CLOCK = microzig.chip.peripherals.CLOCK;
53

port/nordic/nrf5x/src/hal/spim.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const version: enum {
2222

2323
const SPIM0 = peripherals.SPIM0;
2424
const SPIM1 = peripherals.SPIM1;
25-
const SPIM2 = peripherals.SPIM2;
26-
const SPIM3 = peripherals.SPIM3;
25+
// const SPIM2 = peripherals.SPIM2;
26+
// const SPIM3 = peripherals.SPIM3;
2727

2828
const SpimRegs = microzig.chip.types.peripherals.SPIM0;
2929

port/nordic/nrf5x/src/hal/time.zig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ const time = microzig.drivers.time;
1010
const clocks = microzig.hal.clocks;
1111
const compatibility = microzig.hal.compatibility;
1212

13-
const version: enum {
14-
nrf51,
15-
nrf52,
16-
} = switch (compatibility.chip) {
17-
.nrf51 => .nrf51,
18-
.nrf52, .nrf52833, .nrf52840 => .nrf52,
19-
else => compatibility.unsupported_chip("time"),
20-
};
21-
2213
const rtc = microzig.chip.peripherals.RTC0;
2314
const COMPARE_INDEX = 2;
2415
const TIMER_BITS = 23;

port/nxp/mcx/src/mcxn947/hal/syscon.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const std = @import("std");
21
const microzig = @import("microzig");
32
const chip = microzig.chip;
43

port/raspberrypi/rp2xxx/src/hal/gpio.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const std = @import("std");
2-
31
const microzig = @import("microzig");
42
const peripherals = microzig.chip.peripherals;
53
const SIO = peripherals.SIO;
@@ -9,7 +7,6 @@ const hw = @import("hw.zig");
97

108
const chip = @import("compatibility.zig").chip;
119

12-
const resets = @import("resets.zig");
1310
const NUM_BANK0_GPIOS = switch (chip) {
1411
.RP2040 => 30,
1512
.RP2350 => 48,

0 commit comments

Comments
 (0)