diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0aef9166..01640bf0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,8 +30,8 @@ jobs: - name: Build run: zig build -Doptimize=ReleaseSmall - - name: Unit Test BSPs - run: zig build run-bsp-tests -Doptimize=ReleaseSmall + - name: Unit Test Ports + run: zig build run-port-tests -Doptimize=ReleaseSmall - name: Dry run packaging if: ${{ matrix.os == 'macos-latest' }} @@ -45,7 +45,7 @@ jobs: cd tools/package-test zig fetch --save=microzig http://localhost:8000/microzig-${MICROZIG_VERSION}.tar.gz zig build -Doptimize=ReleaseSmall - zig build run-bsp-tests + zig build run-port-tests # clean up server jobs -p | xargs kill diff --git a/README.md b/README.md index 1b64eff37..e5049f742 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ For MicroZig internals please see the [Design Document](docs/design.md). * `build/` contains the build components of MicroZig. * `core/` contains the shared components of MicroZig. -* `bsp/` contains all official board support package. +* `port/` contains all official board support package. * `examples/` contains examples that can be used with the board support packages. * `tools/` contains tooling to work *on* MicroZig itself, so deployment, testing, ... * `design/` contains images and logos diff --git a/build.zig b/build.zig index 792f935f4..148f2f2ab 100644 --- a/build.zig +++ b/build.zig @@ -14,15 +14,15 @@ const example_dep_names: []const []const u8 = &.{ "examples/raspberrypi/rp2040", }; -const bsps = .{ - .{ "bsp/nordic/nrf5x", @import("bsp/nordic/nrf5x") }, - .{ "bsp/nxp/lpc", @import("bsp/nxp/lpc") }, - .{ "bsp/microchip/atsam", @import("bsp/microchip/atsam") }, - .{ "bsp/microchip/avr", @import("bsp/microchip/avr") }, - .{ "bsp/gigadevice/gd32", @import("bsp/gigadevice/gd32") }, - .{ "bsp/stmicro/stm32", @import("bsp/stmicro/stm32") }, - .{ "bsp/espressif/esp", @import("bsp/espressif/esp") }, - .{ "bsp/raspberrypi/rp2040", @import("bsp/raspberrypi/rp2040") }, +const ports = .{ + .{ "port/nordic/nrf5x", @import("port/nordic/nrf5x") }, + .{ "port/nxp/lpc", @import("port/nxp/lpc") }, + .{ "port/microchip/atsam", @import("port/microchip/atsam") }, + .{ "port/microchip/avr", @import("port/microchip/avr") }, + .{ "port/gigadevice/gd32", @import("port/gigadevice/gd32") }, + .{ "port/stmicro/stm32", @import("port/stmicro/stm32") }, + .{ "port/espressif/esp", @import("port/espressif/esp") }, + .{ "port/raspberrypi/rp2040", @import("port/raspberrypi/rp2040") }, }; pub fn build(b: *Build) void { @@ -55,11 +55,11 @@ pub fn build(b: *Build) void { const parts_db_json = b.addInstallFile(parts_db, "parts-db.json"); package_step.dependOn(&parts_db_json.step); - const test_bsps_step = b.step("run-bsp-tests", "Run all platform agnostic tests for BSPs"); - inline for (bsps) |bsp| { - const bsp_dep = b.dependency(bsp[0], .{}); - if (bsp_dep.builder.top_level_steps.get("test")) |test_step| { - test_bsps_step.dependOn(&test_step.step); + const test_ports_step = b.step("run-port-tests", "Run all platform agnostic tests for Ports"); + inline for (ports) |port| { + const port_dep = b.dependency(port[0], .{}); + if (port_dep.builder.top_level_steps.get("test")) |test_step| { + test_ports_step.dependOn(&test_step.step); } } } @@ -70,7 +70,7 @@ const PartsDb = struct { const Chip = struct { identifier: []const u8, - bsp_package: []const u8, + port_package: []const u8, url: ?[]const u8, cpu: []const u8, has_hal: bool, @@ -82,7 +82,7 @@ const PartsDb = struct { }; const Board = struct { identifier: []const u8, - bsp_package: []const u8, + port_package: []const u8, chip_idx: u32, url: ?[]const u8, output_format: ?[]const u8, @@ -94,13 +94,13 @@ fn generate_parts_db(b: *Build) !Build.LazyPath { var boards = std.ArrayList(PartsDb.Board).init(b.allocator); @setEvalBranchQuota(20000); - inline for (bsps) |bsp| { + inline for (ports) |port| { const chips_start_idx = chips.items.len; - inline for (@typeInfo(@field(bsp[1], "chips")).Struct.decls) |decl| { - const target = @field(@field(bsp[1], "chips"), decl.name); + inline for (@typeInfo(@field(port[1], "chips")).Struct.decls) |decl| { + const target = @field(@field(port[1], "chips"), decl.name); try chips.append(.{ .identifier = decl.name, - .bsp_package = bsp[0], + .port_package = port[0], .url = target.chip.url, .cpu = target.chip.cpu.name, .has_hal = target.hal != null, @@ -112,20 +112,20 @@ fn generate_parts_db(b: *Build) !Build.LazyPath { }); } - inline for (@typeInfo(@field(bsp[1], "boards")).Struct.decls) |decl| { - const target = @field(@field(bsp[1], "boards"), decl.name); + inline for (@typeInfo(@field(port[1], "boards")).Struct.decls) |decl| { + const target = @field(@field(port[1], "boards"), decl.name); _ = target; _ = chips_start_idx; - //const chip_idx = inline for (@typeInfo(@field(bsp[1], "chips")).Struct.decls, 0..) |chip_decl, idx| { - // const chip = @field(@field(bsp[1], "chips"), chip_decl.name); + //const chip_idx = inline for (@typeInfo(@field(port[1], "chips")).Struct.decls, 0..) |chip_decl, idx| { + // const chip = @field(@field(port[1], "chips"), chip_decl.name); // if (std.mem.eql(u8, chip.chip.name, target.chip.name)) // break chips_start_idx + idx; //} else @compileError("failed to get chip_idx"); try boards.append(.{ .identifier = decl.name, - .bsp_package = bsp[0], + .port_package = port[0], .chip_idx = 0, .url = "", .output_format = null, diff --git a/build.zig.zon b/build.zig.zon index 2362cc695..1335e0b8c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -9,14 +9,14 @@ .core = .{ .path = "core" }, .@"tools/regz" = .{ .path = "tools/regz" }, .@"tools/uf2" = .{ .path = "tools/uf2" }, - .@"bsp/nordic/nrf5x" = .{ .path = "bsp/nordic/nrf5x" }, - .@"bsp/nxp/lpc" = .{ .path = "bsp/nxp/lpc" }, - .@"bsp/microchip/atsam" = .{ .path = "bsp/microchip/atsam" }, - .@"bsp/microchip/avr" = .{ .path = "bsp/microchip/avr" }, - .@"bsp/gigadevice/gd32" = .{ .path = "bsp/gigadevice/gd32" }, - .@"bsp/stmicro/stm32" = .{ .path = "bsp/stmicro/stm32" }, - .@"bsp/espressif/esp" = .{ .path = "bsp/espressif/esp" }, - .@"bsp/raspberrypi/rp2040" = .{ .path = "bsp/raspberrypi/rp2040" }, + .@"port/nordic/nrf5x" = .{ .path = "port/nordic/nrf5x" }, + .@"port/nxp/lpc" = .{ .path = "port/nxp/lpc" }, + .@"port/microchip/atsam" = .{ .path = "port/microchip/atsam" }, + .@"port/microchip/avr" = .{ .path = "port/microchip/avr" }, + .@"port/gigadevice/gd32" = .{ .path = "port/gigadevice/gd32" }, + .@"port/stmicro/stm32" = .{ .path = "port/stmicro/stm32" }, + .@"port/espressif/esp" = .{ .path = "port/espressif/esp" }, + .@"port/raspberrypi/rp2040" = .{ .path = "port/raspberrypi/rp2040" }, // examples so that we can build them all in one go .@"examples/nordic/nrf5x" = .{ .path = "examples/nordic/nrf5x" }, diff --git a/examples/espressif/esp/README.md b/examples/espressif/esp/README.md index bfa4e43bb..45c4c47a3 100644 --- a/examples/espressif/esp/README.md +++ b/examples/espressif/esp/README.md @@ -1,4 +1,4 @@ -# Examples for the BSP `espressif-esp` +# Examples for the Port `espressif-esp` - [Blinky](src/blinky.zig) on [ESP32-C3-32S-Kit](https://www.waveshare.com/wiki/ESP-C3-32S-Kit) Showcases how to do a simple RGB cycling. diff --git a/examples/espressif/esp/build.zig b/examples/espressif/esp/build.zig index 366a1fd98..48139900c 100644 --- a/examples/espressif/esp/build.zig +++ b/examples/espressif/esp/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const esp = @import("microzig/bsp/espressif/esp"); +const esp = @import("microzig/port/espressif/esp"); const available_examples = [_]Example{ .{ .target = esp.chips.esp32_c3, .name = "esp32-c3_blinky", .file = "src/blinky.zig" }, diff --git a/examples/espressif/esp/build.zig.zon b/examples/espressif/esp/build.zig.zon index 3262b3f00..cd4c4b68f 100644 --- a/examples/espressif/esp/build.zig.zon +++ b/examples/espressif/esp/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/espressif/esp" = .{ .path = "../../../bsp/espressif/esp" }, + .@"microzig/port/espressif/esp" = .{ .path = "../../../port/espressif/esp" }, }, .paths = .{ diff --git a/examples/gigadevice/gd32/build.zig b/examples/gigadevice/gd32/build.zig index 46188a14c..754876905 100644 --- a/examples/gigadevice/gd32/build.zig +++ b/examples/gigadevice/gd32/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const gd32 = @import("microzig/bsp/gigadevice/gd32"); +const gd32 = @import("microzig/port/gigadevice/gd32"); const available_examples = [_]Example{ .{ .target = gd32.chips.gd32vf103xb, .name = "gd32vf103xb", .file = "src/empty.zig" }, diff --git a/examples/gigadevice/gd32/build.zig.zon b/examples/gigadevice/gd32/build.zig.zon index f2e5da801..7cbc73480 100644 --- a/examples/gigadevice/gd32/build.zig.zon +++ b/examples/gigadevice/gd32/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/gigadevice/gd32" = .{ .path = "../../../bsp/gigadevice/gd32" }, + .@"microzig/port/gigadevice/gd32" = .{ .path = "../../../port/gigadevice/gd32" }, }, .paths = .{ diff --git a/examples/microchip/atsam/build.zig b/examples/microchip/atsam/build.zig index 851fa5645..522e68efd 100644 --- a/examples/microchip/atsam/build.zig +++ b/examples/microchip/atsam/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const atsam = @import("microzig/bsp/microchip/atsam"); +const atsam = @import("microzig/port/microchip/atsam"); const available_examples = [_]Example{ .{ .target = atsam.chips.atsamd51j19, .name = "atsamd51j19-blinky", .file = "src/blinky.zig" }, diff --git a/examples/microchip/atsam/build.zig.zon b/examples/microchip/atsam/build.zig.zon index 623fa2c71..903e029af 100644 --- a/examples/microchip/atsam/build.zig.zon +++ b/examples/microchip/atsam/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/microchip/atsam" = .{ .path = "../../../bsp/microchip/atsam" }, + .@"microzig/port/microchip/atsam" = .{ .path = "../../../port/microchip/atsam" }, }, .paths = .{ diff --git a/examples/microchip/avr/build.zig b/examples/microchip/avr/build.zig index 213bdb3ab..efcfafb0c 100644 --- a/examples/microchip/avr/build.zig +++ b/examples/microchip/avr/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const avr = @import("microzig/bsp/microchip/avr"); +const avr = @import("microzig/port/microchip/avr"); const available_examples = [_]Example{ .{ .target = avr.boards.arduino.nano, .name = "arduino-nano_blinky", .file = "src/blinky.zig" }, diff --git a/examples/microchip/avr/build.zig.zon b/examples/microchip/avr/build.zig.zon index d9b07fd78..61412d391 100644 --- a/examples/microchip/avr/build.zig.zon +++ b/examples/microchip/avr/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/microchip/avr" = .{ .path = "../../../bsp/microchip/avr" }, + .@"microzig/port/microchip/avr" = .{ .path = "../../../port/microchip/avr" }, }, .paths = .{ diff --git a/examples/nordic/nrf5x/build.zig b/examples/nordic/nrf5x/build.zig index 3851366ed..9e7f4fabb 100644 --- a/examples/nordic/nrf5x/build.zig +++ b/examples/nordic/nrf5x/build.zig @@ -1,7 +1,7 @@ const std = @import("std"); const Build = std.Build; const MicroZig = @import("microzig/build"); -const nrf5x = @import("microzig/bsp/nordic/nrf5x"); +const nrf5x = @import("microzig/port/nordic/nrf5x"); const available_examples = [_]Example{ .{ .target = nrf5x.boards.nordic_nRF52840_Dongle, .name = "nrf52480-dongle_blinky", .file = "src/blinky.zig" }, diff --git a/examples/nordic/nrf5x/build.zig.zon b/examples/nordic/nrf5x/build.zig.zon index 74e407579..57e7ac719 100644 --- a/examples/nordic/nrf5x/build.zig.zon +++ b/examples/nordic/nrf5x/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/nordic/nrf5x" = .{ .path = "../../../bsp/nordic/nrf5x" }, + .@"microzig/port/nordic/nrf5x" = .{ .path = "../../../port/nordic/nrf5x" }, }, .paths = .{ diff --git a/examples/nxp/lpc/README.md b/examples/nxp/lpc/README.md index 7909f7c4c..d61465452 100644 --- a/examples/nxp/lpc/README.md +++ b/examples/nxp/lpc/README.md @@ -1,4 +1,4 @@ -# Examples for the BSP `nxp-lpc` +# Examples for the Port `nxp-lpc` - [Blinky](src/blinky.zig) on [nRF52840 Dongle](https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dongle) TODO: Implement this! diff --git a/examples/nxp/lpc/build.zig b/examples/nxp/lpc/build.zig index 76129c70f..ae38f1ed2 100644 --- a/examples/nxp/lpc/build.zig +++ b/examples/nxp/lpc/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const lpc = @import("microzig/bsp/nxp/lpc"); +const lpc = @import("microzig/port/nxp/lpc"); const available_examples = [_]ExampleDesc{ .{ .target = lpc.boards.mbed.lpc1768, .name = "mbed-lpc1768_blinky", .file = "src/blinky.zig" }, diff --git a/examples/nxp/lpc/build.zig.zon b/examples/nxp/lpc/build.zig.zon index 9dce4f53b..6e0ea0cbe 100644 --- a/examples/nxp/lpc/build.zig.zon +++ b/examples/nxp/lpc/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/nxp/lpc" = .{ .path = "../../../bsp/nxp/lpc" }, + .@"microzig/port/nxp/lpc" = .{ .path = "../../../port/nxp/lpc" }, }, .paths = .{ diff --git a/examples/raspberrypi/rp2040/README.md b/examples/raspberrypi/rp2040/README.md index 162706fe5..b62eb76be 100644 --- a/examples/raspberrypi/rp2040/README.md +++ b/examples/raspberrypi/rp2040/README.md @@ -1,4 +1,4 @@ -# Examples for the BSP `raspberrypi-rp2040` +# Examples for the Port `raspberrypi-rp2040` ## Demos diff --git a/examples/raspberrypi/rp2040/build.zig b/examples/raspberrypi/rp2040/build.zig index a7dfd0414..9ee1f1fe0 100644 --- a/examples/raspberrypi/rp2040/build.zig +++ b/examples/raspberrypi/rp2040/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const rp2040 = @import("microzig/bsp/raspberrypi/rp2040"); +const rp2040 = @import("microzig/port/raspberrypi/rp2040"); const available_examples = [_]Example{ // RaspberryPi Boards: diff --git a/examples/raspberrypi/rp2040/build.zig.zon b/examples/raspberrypi/rp2040/build.zig.zon index 569ae0700..06bb65b11 100644 --- a/examples/raspberrypi/rp2040/build.zig.zon +++ b/examples/raspberrypi/rp2040/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/raspberrypi/rp2040" = .{ .path = "../../../bsp/raspberrypi/rp2040" }, + .@"microzig/port/raspberrypi/rp2040" = .{ .path = "../../../port/raspberrypi/rp2040" }, }, .paths = .{ diff --git a/examples/stmicro/stm32/build.zig b/examples/stmicro/stm32/build.zig index 4e43b7759..8d04df85e 100644 --- a/examples/stmicro/stm32/build.zig +++ b/examples/stmicro/stm32/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); const MicroZig = @import("microzig/build"); -const stm32 = @import("microzig/bsp/stmicro/stm32"); +const stm32 = @import("microzig/port/stmicro/stm32"); const available_examples = [_]Example{ .{ .target = stm32.chips.STM32F103C8, .name = "STM32F103C8", .file = "src/blinky.zig" }, diff --git a/examples/stmicro/stm32/build.zig.zon b/examples/stmicro/stm32/build.zig.zon index d56dcd7b4..d5ff918b5 100644 --- a/examples/stmicro/stm32/build.zig.zon +++ b/examples/stmicro/stm32/build.zig.zon @@ -3,7 +3,7 @@ .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, - .@"microzig/bsp/stmicro/stm32" = .{ .path = "../../../bsp/stmicro/stm32" }, + .@"microzig/port/stmicro/stm32" = .{ .path = "../../../port/stmicro/stm32" }, }, .paths = .{ diff --git a/bsp/espressif/esp/LICENSE b/port/espressif/esp/LICENSE similarity index 100% rename from bsp/espressif/esp/LICENSE rename to port/espressif/esp/LICENSE diff --git a/bsp/espressif/esp/README.md b/port/espressif/esp/README.md similarity index 100% rename from bsp/espressif/esp/README.md rename to port/espressif/esp/README.md diff --git a/bsp/espressif/esp/build.zig b/port/espressif/esp/build.zig similarity index 100% rename from bsp/espressif/esp/build.zig rename to port/espressif/esp/build.zig diff --git a/bsp/espressif/esp/build.zig.zon b/port/espressif/esp/build.zig.zon similarity index 88% rename from bsp/espressif/esp/build.zig.zon rename to port/espressif/esp/build.zig.zon index cc9415b50..b25041773 100644 --- a/bsp/espressif/esp/build.zig.zon +++ b/port/espressif/esp/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/espressif/esp", + .name = "port/espressif/esp", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/espressif/esp/docs/esp32-c3-32s-pinout.png b/port/espressif/esp/docs/esp32-c3-32s-pinout.png similarity index 100% rename from bsp/espressif/esp/docs/esp32-c3-32s-pinout.png rename to port/espressif/esp/docs/esp32-c3-32s-pinout.png diff --git a/bsp/espressif/esp/docs/esp32-c3-32s-pinout.xcf b/port/espressif/esp/docs/esp32-c3-32s-pinout.xcf similarity index 100% rename from bsp/espressif/esp/docs/esp32-c3-32s-pinout.xcf rename to port/espressif/esp/docs/esp32-c3-32s-pinout.xcf diff --git a/bsp/espressif/esp/perform-flash.sh b/port/espressif/esp/perform-flash.sh similarity index 100% rename from bsp/espressif/esp/perform-flash.sh rename to port/espressif/esp/perform-flash.sh diff --git a/bsp/espressif/esp/src/chips/ESP32-C3.svd b/port/espressif/esp/src/chips/ESP32-C3.svd similarity index 100% rename from bsp/espressif/esp/src/chips/ESP32-C3.svd rename to port/espressif/esp/src/chips/ESP32-C3.svd diff --git a/bsp/espressif/esp/src/cpus/espressif-riscv.zig b/port/espressif/esp/src/cpus/espressif-riscv.zig similarity index 100% rename from bsp/espressif/esp/src/cpus/espressif-riscv.zig rename to port/espressif/esp/src/cpus/espressif-riscv.zig diff --git a/bsp/espressif/esp/src/example/blinky.zig b/port/espressif/esp/src/example/blinky.zig similarity index 100% rename from bsp/espressif/esp/src/example/blinky.zig rename to port/espressif/esp/src/example/blinky.zig diff --git a/bsp/espressif/esp/src/hals/ESP32_C3.zig b/port/espressif/esp/src/hals/ESP32_C3.zig similarity index 100% rename from bsp/espressif/esp/src/hals/ESP32_C3.zig rename to port/espressif/esp/src/hals/ESP32_C3.zig diff --git a/bsp/espressif/esp/src/hals/esp32-c3/gpio.zig b/port/espressif/esp/src/hals/esp32-c3/gpio.zig similarity index 100% rename from bsp/espressif/esp/src/hals/esp32-c3/gpio.zig rename to port/espressif/esp/src/hals/esp32-c3/gpio.zig diff --git a/bsp/espressif/esp/src/hals/esp32-c3/uart.zig b/port/espressif/esp/src/hals/esp32-c3/uart.zig similarity index 100% rename from bsp/espressif/esp/src/hals/esp32-c3/uart.zig rename to port/espressif/esp/src/hals/esp32-c3/uart.zig diff --git a/bsp/gigadevice/gd32/LICENSE b/port/gigadevice/gd32/LICENSE similarity index 100% rename from bsp/gigadevice/gd32/LICENSE rename to port/gigadevice/gd32/LICENSE diff --git a/bsp/gigadevice/gd32/README.md b/port/gigadevice/gd32/README.md similarity index 100% rename from bsp/gigadevice/gd32/README.md rename to port/gigadevice/gd32/README.md diff --git a/bsp/gigadevice/gd32/build.zig b/port/gigadevice/gd32/build.zig similarity index 100% rename from bsp/gigadevice/gd32/build.zig rename to port/gigadevice/gd32/build.zig diff --git a/bsp/gigadevice/gd32/build.zig.zon b/port/gigadevice/gd32/build.zig.zon similarity index 87% rename from bsp/gigadevice/gd32/build.zig.zon rename to port/gigadevice/gd32/build.zig.zon index d72d88e5b..22aad072b 100644 --- a/bsp/gigadevice/gd32/build.zig.zon +++ b/port/gigadevice/gd32/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/gigadevice/gd32", + .name = "port/gigadevice/gd32", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/gigadevice/gd32/src/boards/longan_nano.zig b/port/gigadevice/gd32/src/boards/longan_nano.zig similarity index 100% rename from bsp/gigadevice/gd32/src/boards/longan_nano.zig rename to port/gigadevice/gd32/src/boards/longan_nano.zig diff --git a/bsp/gigadevice/gd32/src/chips/GD32VF103.json b/port/gigadevice/gd32/src/chips/GD32VF103.json similarity index 100% rename from bsp/gigadevice/gd32/src/chips/GD32VF103.json rename to port/gigadevice/gd32/src/chips/GD32VF103.json diff --git a/bsp/gigadevice/gd32/src/hals/GD32VF103.zig b/port/gigadevice/gd32/src/hals/GD32VF103.zig similarity index 100% rename from bsp/gigadevice/gd32/src/hals/GD32VF103.zig rename to port/gigadevice/gd32/src/hals/GD32VF103.zig diff --git a/bsp/gigadevice/gd32/src/hals/GD32VF103/gpio.zig b/port/gigadevice/gd32/src/hals/GD32VF103/gpio.zig similarity index 100% rename from bsp/gigadevice/gd32/src/hals/GD32VF103/gpio.zig rename to port/gigadevice/gd32/src/hals/GD32VF103/gpio.zig diff --git a/bsp/gigadevice/gd32/src/hals/GD32VF103/hal.zig b/port/gigadevice/gd32/src/hals/GD32VF103/hal.zig similarity index 100% rename from bsp/gigadevice/gd32/src/hals/GD32VF103/hal.zig rename to port/gigadevice/gd32/src/hals/GD32VF103/hal.zig diff --git a/bsp/gigadevice/gd32/src/hals/GD32VF103/pins.zig b/port/gigadevice/gd32/src/hals/GD32VF103/pins.zig similarity index 100% rename from bsp/gigadevice/gd32/src/hals/GD32VF103/pins.zig rename to port/gigadevice/gd32/src/hals/GD32VF103/pins.zig diff --git a/bsp/gigadevice/gd32/src/hals/GD32VF103/uart.zig b/port/gigadevice/gd32/src/hals/GD32VF103/uart.zig similarity index 100% rename from bsp/gigadevice/gd32/src/hals/GD32VF103/uart.zig rename to port/gigadevice/gd32/src/hals/GD32VF103/uart.zig diff --git a/bsp/gigadevice/gd32/test/programs/minimal.zig b/port/gigadevice/gd32/test/programs/minimal.zig similarity index 100% rename from bsp/gigadevice/gd32/test/programs/minimal.zig rename to port/gigadevice/gd32/test/programs/minimal.zig diff --git a/bsp/microchip/atsam/LICENSE b/port/microchip/atsam/LICENSE similarity index 100% rename from bsp/microchip/atsam/LICENSE rename to port/microchip/atsam/LICENSE diff --git a/bsp/microchip/atsam/README.md b/port/microchip/atsam/README.md similarity index 100% rename from bsp/microchip/atsam/README.md rename to port/microchip/atsam/README.md diff --git a/bsp/microchip/atsam/build.zig b/port/microchip/atsam/build.zig similarity index 100% rename from bsp/microchip/atsam/build.zig rename to port/microchip/atsam/build.zig diff --git a/bsp/microchip/atsam/build.zig.zon b/port/microchip/atsam/build.zig.zon similarity index 87% rename from bsp/microchip/atsam/build.zig.zon rename to port/microchip/atsam/build.zig.zon index f69289117..12c1cd6c1 100644 --- a/bsp/microchip/atsam/build.zig.zon +++ b/port/microchip/atsam/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/microchip/atsam", + .name = "port/microchip/atsam", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/microchip/atsam/src/chips/ATSAMD51J19A.atdf b/port/microchip/atsam/src/chips/ATSAMD51J19A.atdf similarity index 100% rename from bsp/microchip/atsam/src/chips/ATSAMD51J19A.atdf rename to port/microchip/atsam/src/chips/ATSAMD51J19A.atdf diff --git a/bsp/microchip/avr/LICENSE b/port/microchip/avr/LICENSE similarity index 100% rename from bsp/microchip/avr/LICENSE rename to port/microchip/avr/LICENSE diff --git a/bsp/microchip/avr/README.md b/port/microchip/avr/README.md similarity index 100% rename from bsp/microchip/avr/README.md rename to port/microchip/avr/README.md diff --git a/bsp/microchip/avr/build.zig b/port/microchip/avr/build.zig similarity index 100% rename from bsp/microchip/avr/build.zig rename to port/microchip/avr/build.zig diff --git a/bsp/microchip/avr/build.zig.zon b/port/microchip/avr/build.zig.zon similarity index 87% rename from bsp/microchip/avr/build.zig.zon rename to port/microchip/avr/build.zig.zon index 27717ed0b..4093199d8 100644 --- a/bsp/microchip/avr/build.zig.zon +++ b/port/microchip/avr/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/microchip/avr", + .name = "port/microchip/avr", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/microchip/avr/src/boards.zig b/port/microchip/avr/src/boards.zig similarity index 100% rename from bsp/microchip/avr/src/boards.zig rename to port/microchip/avr/src/boards.zig diff --git a/bsp/microchip/avr/src/boards/arduino_nano.zig b/port/microchip/avr/src/boards/arduino_nano.zig similarity index 100% rename from bsp/microchip/avr/src/boards/arduino_nano.zig rename to port/microchip/avr/src/boards/arduino_nano.zig diff --git a/bsp/microchip/avr/src/boards/arduino_uno.zig b/port/microchip/avr/src/boards/arduino_uno.zig similarity index 100% rename from bsp/microchip/avr/src/boards/arduino_uno.zig rename to port/microchip/avr/src/boards/arduino_uno.zig diff --git a/bsp/microchip/avr/src/boards/itsybitsy_32u4.zig b/port/microchip/avr/src/boards/itsybitsy_32u4.zig similarity index 100% rename from bsp/microchip/avr/src/boards/itsybitsy_32u4.zig rename to port/microchip/avr/src/boards/itsybitsy_32u4.zig diff --git a/bsp/microchip/avr/src/chips.zig b/port/microchip/avr/src/chips.zig similarity index 100% rename from bsp/microchip/avr/src/chips.zig rename to port/microchip/avr/src/chips.zig diff --git a/bsp/microchip/avr/src/chips/ATmega328P.json b/port/microchip/avr/src/chips/ATmega328P.json similarity index 100% rename from bsp/microchip/avr/src/chips/ATmega328P.json rename to port/microchip/avr/src/chips/ATmega328P.json diff --git a/bsp/microchip/avr/src/chips/ATmega32U4.json b/port/microchip/avr/src/chips/ATmega32U4.json similarity index 100% rename from bsp/microchip/avr/src/chips/ATmega32U4.json rename to port/microchip/avr/src/chips/ATmega32U4.json diff --git a/bsp/microchip/avr/src/hals/ATmega328P.zig b/port/microchip/avr/src/hals/ATmega328P.zig similarity index 100% rename from bsp/microchip/avr/src/hals/ATmega328P.zig rename to port/microchip/avr/src/hals/ATmega328P.zig diff --git a/bsp/microchip/avr/src/hals/ATmega32U4.zig b/port/microchip/avr/src/hals/ATmega32U4.zig similarity index 100% rename from bsp/microchip/avr/src/hals/ATmega32U4.zig rename to port/microchip/avr/src/hals/ATmega32U4.zig diff --git a/bsp/microchip/avr/test/programs/minimal.zig b/port/microchip/avr/test/programs/minimal.zig similarity index 100% rename from bsp/microchip/avr/test/programs/minimal.zig rename to port/microchip/avr/test/programs/minimal.zig diff --git a/bsp/nordic/nrf5x/LICENSE b/port/nordic/nrf5x/LICENSE similarity index 100% rename from bsp/nordic/nrf5x/LICENSE rename to port/nordic/nrf5x/LICENSE diff --git a/bsp/nordic/nrf5x/README.md b/port/nordic/nrf5x/README.md similarity index 100% rename from bsp/nordic/nrf5x/README.md rename to port/nordic/nrf5x/README.md diff --git a/bsp/nordic/nrf5x/build.zig b/port/nordic/nrf5x/build.zig similarity index 100% rename from bsp/nordic/nrf5x/build.zig rename to port/nordic/nrf5x/build.zig diff --git a/bsp/nordic/nrf5x/build.zig.zon b/port/nordic/nrf5x/build.zig.zon similarity index 88% rename from bsp/nordic/nrf5x/build.zig.zon rename to port/nordic/nrf5x/build.zig.zon index 5d9e3186e..5809e7cf2 100644 --- a/bsp/nordic/nrf5x/build.zig.zon +++ b/port/nordic/nrf5x/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/nordic/nrf5x", + .name = "port/nordic/nrf5x", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/nordic/nrf5x/src/boards/nrf52840-dongle.zig b/port/nordic/nrf5x/src/boards/nrf52840-dongle.zig similarity index 100% rename from bsp/nordic/nrf5x/src/boards/nrf52840-dongle.zig rename to port/nordic/nrf5x/src/boards/nrf52840-dongle.zig diff --git a/bsp/nordic/nrf5x/src/chips/nrf52.json b/port/nordic/nrf5x/src/chips/nrf52.json similarity index 100% rename from bsp/nordic/nrf5x/src/chips/nrf52.json rename to port/nordic/nrf5x/src/chips/nrf52.json diff --git a/bsp/nordic/nrf5x/src/chips/nrf52840.json b/port/nordic/nrf5x/src/chips/nrf52840.json similarity index 100% rename from bsp/nordic/nrf5x/src/chips/nrf52840.json rename to port/nordic/nrf5x/src/chips/nrf52840.json diff --git a/bsp/nordic/nrf5x/test/nrf52840.robot b/port/nordic/nrf5x/test/nrf52840.robot similarity index 100% rename from bsp/nordic/nrf5x/test/nrf52840.robot rename to port/nordic/nrf5x/test/nrf52840.robot diff --git a/bsp/nordic/nrf5x/test/programs/minimal.zig b/port/nordic/nrf5x/test/programs/minimal.zig similarity index 100% rename from bsp/nordic/nrf5x/test/programs/minimal.zig rename to port/nordic/nrf5x/test/programs/minimal.zig diff --git a/bsp/nxp/lpc/LICENSE b/port/nxp/lpc/LICENSE similarity index 100% rename from bsp/nxp/lpc/LICENSE rename to port/nxp/lpc/LICENSE diff --git a/bsp/nxp/lpc/README.md b/port/nxp/lpc/README.md similarity index 100% rename from bsp/nxp/lpc/README.md rename to port/nxp/lpc/README.md diff --git a/bsp/nxp/lpc/build.zig b/port/nxp/lpc/build.zig similarity index 100% rename from bsp/nxp/lpc/build.zig rename to port/nxp/lpc/build.zig diff --git a/bsp/nxp/lpc/build.zig.zon b/port/nxp/lpc/build.zig.zon similarity index 90% rename from bsp/nxp/lpc/build.zig.zon rename to port/nxp/lpc/build.zig.zon index ac098f1e3..e4e0a32aa 100644 --- a/bsp/nxp/lpc/build.zig.zon +++ b/port/nxp/lpc/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/nxp/lpc", + .name = "port/nxp/lpc", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/nxp/lpc/src/boards/mbed_LPC1768.zig b/port/nxp/lpc/src/boards/mbed_LPC1768.zig similarity index 100% rename from bsp/nxp/lpc/src/boards/mbed_LPC1768.zig rename to port/nxp/lpc/src/boards/mbed_LPC1768.zig diff --git a/bsp/nxp/lpc/src/chips/LPC176x5x.json b/port/nxp/lpc/src/chips/LPC176x5x.json similarity index 100% rename from bsp/nxp/lpc/src/chips/LPC176x5x.json rename to port/nxp/lpc/src/chips/LPC176x5x.json diff --git a/bsp/nxp/lpc/src/hals/LPC176x5x.zig b/port/nxp/lpc/src/hals/LPC176x5x.zig similarity index 100% rename from bsp/nxp/lpc/src/hals/LPC176x5x.zig rename to port/nxp/lpc/src/hals/LPC176x5x.zig diff --git a/bsp/nxp/lpc/src/tools/patchelf.zig b/port/nxp/lpc/src/tools/patchelf.zig similarity index 100% rename from bsp/nxp/lpc/src/tools/patchelf.zig rename to port/nxp/lpc/src/tools/patchelf.zig diff --git a/bsp/nxp/lpc/test/programs/minimal.zig b/port/nxp/lpc/test/programs/minimal.zig similarity index 100% rename from bsp/nxp/lpc/test/programs/minimal.zig rename to port/nxp/lpc/test/programs/minimal.zig diff --git a/bsp/raspberrypi/rp2040/LICENSE b/port/raspberrypi/rp2040/LICENSE similarity index 100% rename from bsp/raspberrypi/rp2040/LICENSE rename to port/raspberrypi/rp2040/LICENSE diff --git a/bsp/raspberrypi/rp2040/README.md b/port/raspberrypi/rp2040/README.md similarity index 100% rename from bsp/raspberrypi/rp2040/README.md rename to port/raspberrypi/rp2040/README.md diff --git a/bsp/raspberrypi/rp2040/build.zig b/port/raspberrypi/rp2040/build.zig similarity index 100% rename from bsp/raspberrypi/rp2040/build.zig rename to port/raspberrypi/rp2040/build.zig diff --git a/bsp/raspberrypi/rp2040/build.zig.zon b/port/raspberrypi/rp2040/build.zig.zon similarity index 88% rename from bsp/raspberrypi/rp2040/build.zig.zon rename to port/raspberrypi/rp2040/build.zig.zon index 77d064b7a..7de026a2a 100644 --- a/bsp/raspberrypi/rp2040/build.zig.zon +++ b/port/raspberrypi/rp2040/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/raspberrypi/rp2040", + .name = "port/raspberrypi/rp2040", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ diff --git a/bsp/raspberrypi/rp2040/rp2040.ld b/port/raspberrypi/rp2040/rp2040.ld similarity index 100% rename from bsp/raspberrypi/rp2040/rp2040.ld rename to port/raspberrypi/rp2040/rp2040.ld diff --git a/bsp/raspberrypi/rp2040/src/boards/raspberry_pi_pico.zig b/port/raspberrypi/rp2040/src/boards/raspberry_pi_pico.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/raspberry_pi_pico.zig rename to port/raspberrypi/rp2040/src/boards/raspberry_pi_pico.zig diff --git a/bsp/raspberrypi/rp2040/src/boards/shared/bootrom.zig b/port/raspberrypi/rp2040/src/boards/shared/bootrom.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/shared/bootrom.zig rename to port/raspberrypi/rp2040/src/boards/shared/bootrom.zig diff --git a/bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_eth.zig b/port/raspberrypi/rp2040/src/boards/waveshare_rp2040_eth.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_eth.zig rename to port/raspberrypi/rp2040/src/boards/waveshare_rp2040_eth.zig diff --git a/bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_matrix.zig b/port/raspberrypi/rp2040/src/boards/waveshare_rp2040_matrix.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_matrix.zig rename to port/raspberrypi/rp2040/src/boards/waveshare_rp2040_matrix.zig diff --git a/bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_16m.zig b/port/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_16m.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_16m.zig rename to port/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_16m.zig diff --git a/bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_4m.zig b/port/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_4m.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_4m.zig rename to port/raspberrypi/rp2040/src/boards/waveshare_rp2040_plus_4m.zig diff --git a/bsp/raspberrypi/rp2040/src/bootroms/at25sf128a.S b/port/raspberrypi/rp2040/src/bootroms/at25sf128a.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/at25sf128a.S rename to port/raspberrypi/rp2040/src/bootroms/at25sf128a.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/generic_03h.S b/port/raspberrypi/rp2040/src/bootroms/generic_03h.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/generic_03h.S rename to port/raspberrypi/rp2040/src/bootroms/generic_03h.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/is25lp080.S b/port/raspberrypi/rp2040/src/bootroms/is25lp080.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/is25lp080.S rename to port/raspberrypi/rp2040/src/bootroms/is25lp080.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/legacy.S b/port/raspberrypi/rp2040/src/bootroms/legacy.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/legacy.S rename to port/raspberrypi/rp2040/src/bootroms/legacy.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/addressmap.h b/port/raspberrypi/rp2040/src/bootroms/shared/addressmap.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/addressmap.h rename to port/raspberrypi/rp2040/src/bootroms/shared/addressmap.h diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/asm_helper.S b/port/raspberrypi/rp2040/src/bootroms/shared/asm_helper.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/asm_helper.S rename to port/raspberrypi/rp2040/src/bootroms/shared/asm_helper.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/exit_from_boot2.S b/port/raspberrypi/rp2040/src/bootroms/shared/exit_from_boot2.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/exit_from_boot2.S rename to port/raspberrypi/rp2040/src/bootroms/shared/exit_from_boot2.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/m0plus.h b/port/raspberrypi/rp2040/src/bootroms/shared/m0plus.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/m0plus.h rename to port/raspberrypi/rp2040/src/bootroms/shared/m0plus.h diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/pads_qspi.h b/port/raspberrypi/rp2040/src/bootroms/shared/pads_qspi.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/pads_qspi.h rename to port/raspberrypi/rp2040/src/bootroms/shared/pads_qspi.h diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/read_flash_sreg.S b/port/raspberrypi/rp2040/src/bootroms/shared/read_flash_sreg.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/read_flash_sreg.S rename to port/raspberrypi/rp2040/src/bootroms/shared/read_flash_sreg.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/regs.h b/port/raspberrypi/rp2040/src/bootroms/shared/regs.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/regs.h rename to port/raspberrypi/rp2040/src/bootroms/shared/regs.h diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/ssi.h b/port/raspberrypi/rp2040/src/bootroms/shared/ssi.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/ssi.h rename to port/raspberrypi/rp2040/src/bootroms/shared/ssi.h diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/stage2.ld b/port/raspberrypi/rp2040/src/bootroms/shared/stage2.ld similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/stage2.ld rename to port/raspberrypi/rp2040/src/bootroms/shared/stage2.ld diff --git a/bsp/raspberrypi/rp2040/src/bootroms/shared/wait_ssi_ready.S b/port/raspberrypi/rp2040/src/bootroms/shared/wait_ssi_ready.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/shared/wait_ssi_ready.S rename to port/raspberrypi/rp2040/src/bootroms/shared/wait_ssi_ready.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/w25q080.S b/port/raspberrypi/rp2040/src/bootroms/w25q080.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/w25q080.S rename to port/raspberrypi/rp2040/src/bootroms/w25q080.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/w25q32jvssiq.S b/port/raspberrypi/rp2040/src/bootroms/w25q32jvssiq.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/w25q32jvssiq.S rename to port/raspberrypi/rp2040/src/bootroms/w25q32jvssiq.S diff --git a/bsp/raspberrypi/rp2040/src/bootroms/w25x10cl.S b/port/raspberrypi/rp2040/src/bootroms/w25x10cl.S similarity index 100% rename from bsp/raspberrypi/rp2040/src/bootroms/w25x10cl.S rename to port/raspberrypi/rp2040/src/bootroms/w25x10cl.S diff --git a/bsp/raspberrypi/rp2040/src/chips/rp2040.svd b/port/raspberrypi/rp2040/src/chips/rp2040.svd similarity index 100% rename from bsp/raspberrypi/rp2040/src/chips/rp2040.svd rename to port/raspberrypi/rp2040/src/chips/rp2040.svd diff --git a/bsp/raspberrypi/rp2040/src/hal.zig b/port/raspberrypi/rp2040/src/hal.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal.zig rename to port/raspberrypi/rp2040/src/hal.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/adc.zig b/port/raspberrypi/rp2040/src/hal/adc.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/adc.zig rename to port/raspberrypi/rp2040/src/hal/adc.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/clocks.zig b/port/raspberrypi/rp2040/src/hal/clocks.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/clocks.zig rename to port/raspberrypi/rp2040/src/hal/clocks.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/clocks/common.zig b/port/raspberrypi/rp2040/src/hal/clocks/common.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/clocks/common.zig rename to port/raspberrypi/rp2040/src/hal/clocks/common.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/clocks/rp2040.zig b/port/raspberrypi/rp2040/src/hal/clocks/rp2040.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/clocks/rp2040.zig rename to port/raspberrypi/rp2040/src/hal/clocks/rp2040.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/compat.zig b/port/raspberrypi/rp2040/src/hal/compat.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/compat.zig rename to port/raspberrypi/rp2040/src/hal/compat.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/dma.zig b/port/raspberrypi/rp2040/src/hal/dma.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/dma.zig rename to port/raspberrypi/rp2040/src/hal/dma.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/flash.zig b/port/raspberrypi/rp2040/src/hal/flash.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/flash.zig rename to port/raspberrypi/rp2040/src/hal/flash.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/gpio.zig b/port/raspberrypi/rp2040/src/hal/gpio.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/gpio.zig rename to port/raspberrypi/rp2040/src/hal/gpio.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/hw.zig b/port/raspberrypi/rp2040/src/hal/hw.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/hw.zig rename to port/raspberrypi/rp2040/src/hal/hw.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/i2c.zig b/port/raspberrypi/rp2040/src/hal/i2c.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/i2c.zig rename to port/raspberrypi/rp2040/src/hal/i2c.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/irq.zig b/port/raspberrypi/rp2040/src/hal/irq.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/irq.zig rename to port/raspberrypi/rp2040/src/hal/irq.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/multicore.zig b/port/raspberrypi/rp2040/src/hal/multicore.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/multicore.zig rename to port/raspberrypi/rp2040/src/hal/multicore.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pins.zig b/port/raspberrypi/rp2040/src/hal/pins.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pins.zig rename to port/raspberrypi/rp2040/src/hal/pins.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio.zig b/port/raspberrypi/rp2040/src/hal/pio.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio.zig rename to port/raspberrypi/rp2040/src/hal/pio.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler.zig b/port/raspberrypi/rp2040/src/hal/pio/assembler.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler.zig rename to port/raspberrypi/rp2040/src/hal/pio/assembler.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/Expression.zig b/port/raspberrypi/rp2040/src/hal/pio/assembler/Expression.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/Expression.zig rename to port/raspberrypi/rp2040/src/hal/pio/assembler/Expression.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests.zig b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests.zig rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/README.md b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/README.md similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/README.md rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/README.md diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/addition.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/apa102.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/blink.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/clocked_input.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/differential_manchester.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hello.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/hub75.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/i2c.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/manchester_encoding.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_burst.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_carrier_control.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/nec_receive.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pio_serialiser.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/pwm.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/quadrature_encoder.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/resistor_dac.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/spi.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_fast.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_test.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_test.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_test.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_test.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/squarewave_wrap.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio.h b/port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio.h similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio.h rename to port/raspberrypi/rp2040/src/hal/pio/assembler/comparison_tests/ws2812.pio.h diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/encoder.zig b/port/raspberrypi/rp2040/src/hal/pio/assembler/encoder.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/encoder.zig rename to port/raspberrypi/rp2040/src/hal/pio/assembler/encoder.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pio/assembler/tokenizer.zig b/port/raspberrypi/rp2040/src/hal/pio/assembler/tokenizer.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pio/assembler/tokenizer.zig rename to port/raspberrypi/rp2040/src/hal/pio/assembler/tokenizer.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pll.zig b/port/raspberrypi/rp2040/src/hal/pll.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pll.zig rename to port/raspberrypi/rp2040/src/hal/pll.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/pwm.zig b/port/raspberrypi/rp2040/src/hal/pwm.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/pwm.zig rename to port/raspberrypi/rp2040/src/hal/pwm.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/random.zig b/port/raspberrypi/rp2040/src/hal/random.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/random.zig rename to port/raspberrypi/rp2040/src/hal/random.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/resets.zig b/port/raspberrypi/rp2040/src/hal/resets.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/resets.zig rename to port/raspberrypi/rp2040/src/hal/resets.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/rom.zig b/port/raspberrypi/rp2040/src/hal/rom.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/rom.zig rename to port/raspberrypi/rp2040/src/hal/rom.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/spi.zig b/port/raspberrypi/rp2040/src/hal/spi.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/spi.zig rename to port/raspberrypi/rp2040/src/hal/spi.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/time.zig b/port/raspberrypi/rp2040/src/hal/time.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/time.zig rename to port/raspberrypi/rp2040/src/hal/time.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/uart.zig b/port/raspberrypi/rp2040/src/hal/uart.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/uart.zig rename to port/raspberrypi/rp2040/src/hal/uart.zig diff --git a/bsp/raspberrypi/rp2040/src/hal/usb.zig b/port/raspberrypi/rp2040/src/hal/usb.zig similarity index 100% rename from bsp/raspberrypi/rp2040/src/hal/usb.zig rename to port/raspberrypi/rp2040/src/hal/usb.zig diff --git a/bsp/raspberrypi/rp2040/tools/rp2040-flash.zig b/port/raspberrypi/rp2040/tools/rp2040-flash.zig similarity index 100% rename from bsp/raspberrypi/rp2040/tools/rp2040-flash.zig rename to port/raspberrypi/rp2040/tools/rp2040-flash.zig diff --git a/bsp/stmicro/stm32/LICENSE b/port/stmicro/stm32/LICENSE similarity index 100% rename from bsp/stmicro/stm32/LICENSE rename to port/stmicro/stm32/LICENSE diff --git a/bsp/stmicro/stm32/README.md b/port/stmicro/stm32/README.md similarity index 100% rename from bsp/stmicro/stm32/README.md rename to port/stmicro/stm32/README.md diff --git a/bsp/stmicro/stm32/build.zig b/port/stmicro/stm32/build.zig similarity index 100% rename from bsp/stmicro/stm32/build.zig rename to port/stmicro/stm32/build.zig diff --git a/bsp/stmicro/stm32/build.zig.zon b/port/stmicro/stm32/build.zig.zon similarity index 94% rename from bsp/stmicro/stm32/build.zig.zon rename to port/stmicro/stm32/build.zig.zon index e0249630f..738059541 100644 --- a/bsp/stmicro/stm32/build.zig.zon +++ b/port/stmicro/stm32/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "bsp/stmicro/stm32", + .name = "port/stmicro/stm32", .version = "0.0.0", .dependencies = .{ .@"microzig/build" = .{ .path = "../../../build" }, diff --git a/bsp/stmicro/stm32/src/boards/STM3240G_EVAL.zig b/port/stmicro/stm32/src/boards/STM3240G_EVAL.zig similarity index 100% rename from bsp/stmicro/stm32/src/boards/STM3240G_EVAL.zig rename to port/stmicro/stm32/src/boards/STM3240G_EVAL.zig diff --git a/bsp/stmicro/stm32/src/boards/STM32F3DISCOVERY.zig b/port/stmicro/stm32/src/boards/STM32F3DISCOVERY.zig similarity index 100% rename from bsp/stmicro/stm32/src/boards/STM32F3DISCOVERY.zig rename to port/stmicro/stm32/src/boards/STM32F3DISCOVERY.zig diff --git a/bsp/stmicro/stm32/src/boards/STM32F429IDISCOVERY.zig b/port/stmicro/stm32/src/boards/STM32F429IDISCOVERY.zig similarity index 100% rename from bsp/stmicro/stm32/src/boards/STM32F429IDISCOVERY.zig rename to port/stmicro/stm32/src/boards/STM32F429IDISCOVERY.zig diff --git a/bsp/stmicro/stm32/src/boards/STM32F4DISCOVERY.zig b/port/stmicro/stm32/src/boards/STM32F4DISCOVERY.zig similarity index 100% rename from bsp/stmicro/stm32/src/boards/STM32F4DISCOVERY.zig rename to port/stmicro/stm32/src/boards/STM32F4DISCOVERY.zig diff --git a/bsp/stmicro/stm32/src/chips.zig b/port/stmicro/stm32/src/chips.zig similarity index 100% rename from bsp/stmicro/stm32/src/chips.zig rename to port/stmicro/stm32/src/chips.zig diff --git a/bsp/stmicro/stm32/src/chips/all.zig b/port/stmicro/stm32/src/chips/all.zig similarity index 100% rename from bsp/stmicro/stm32/src/chips/all.zig rename to port/stmicro/stm32/src/chips/all.zig diff --git a/bsp/stmicro/stm32/src/generate.zig b/port/stmicro/stm32/src/generate.zig similarity index 100% rename from bsp/stmicro/stm32/src/generate.zig rename to port/stmicro/stm32/src/generate.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F103.zig b/port/stmicro/stm32/src/hals/STM32F103.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F103.zig rename to port/stmicro/stm32/src/hals/STM32F103.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F103/gpio.zig b/port/stmicro/stm32/src/hals/STM32F103/gpio.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F103/gpio.zig rename to port/stmicro/stm32/src/hals/STM32F103/gpio.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F103/hal.zig b/port/stmicro/stm32/src/hals/STM32F103/hal.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F103/hal.zig rename to port/stmicro/stm32/src/hals/STM32F103/hal.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F103/pins.zig b/port/stmicro/stm32/src/hals/STM32F103/pins.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F103/pins.zig rename to port/stmicro/stm32/src/hals/STM32F103/pins.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F303.zig b/port/stmicro/stm32/src/hals/STM32F303.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F303.zig rename to port/stmicro/stm32/src/hals/STM32F303.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F407.zig b/port/stmicro/stm32/src/hals/STM32F407.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F407.zig rename to port/stmicro/stm32/src/hals/STM32F407.zig diff --git a/bsp/stmicro/stm32/src/hals/STM32F429.zig b/port/stmicro/stm32/src/hals/STM32F429.zig similarity index 100% rename from bsp/stmicro/stm32/src/hals/STM32F429.zig rename to port/stmicro/stm32/src/hals/STM32F429.zig diff --git a/bsp/stmicro/stm32/test/programs/minimal.zig b/port/stmicro/stm32/test/programs/minimal.zig similarity index 100% rename from bsp/stmicro/stm32/test/programs/minimal.zig rename to port/stmicro/stm32/test/programs/minimal.zig diff --git a/bsp/stmicro/stm32/test/stm32f103.robot b/port/stmicro/stm32/test/stm32f103.robot similarity index 100% rename from bsp/stmicro/stm32/test/stm32f103.robot rename to port/stmicro/stm32/test/stm32f103.robot diff --git a/tools/package-test/build.zig b/tools/package-test/build.zig index b046009ac..3c41818f9 100644 --- a/tools/package-test/build.zig +++ b/tools/package-test/build.zig @@ -7,6 +7,6 @@ pub fn build(b: *std.Build) void { }); b.getInstallStep().dependOn(microzig_dep.builder.getInstallStep()); - const test_bsps_step = b.step("run-bsp-tests", "Run all platform agnostic tests for BSPs"); - test_bsps_step.dependOn(µzig_dep.builder.top_level_steps.get("run-bsp-tests").?.step); + const test_ports_step = b.step("run-port-tests", "Run all platform agnostic tests for Ports"); + test_ports_step.dependOn(µzig_dep.builder.top_level_steps.get("run-port-tests").?.step); } diff --git a/tools/parts_db.zig b/tools/parts_db.zig index 09526506a..2e6ab4315 100644 --- a/tools/parts_db.zig +++ b/tools/parts_db.zig @@ -19,13 +19,9 @@ pub fn main() !void { const output_path = args[1]; - - var chips = std.ArrayList(MicroZig.Chip).init(allocator); var boards = std.ArrayList(MicroZig.Board).init(allocator); - inline for (bsps) |bsp| { - - } + inline for (port) |port| {} const json_str = std.json.stringifyAlloc(b.allocator, parts_db, .{}) catch @panic("OOM");