diff --git a/examples/raspberrypi/rp2xxx/build.zig b/examples/raspberrypi/rp2xxx/build.zig index 595488b7..e7ca851e 100644 --- a/examples/raspberrypi/rp2xxx/build.zig +++ b/examples/raspberrypi/rp2xxx/build.zig @@ -39,8 +39,8 @@ pub fn build(b: *std.Build) void { }; const chip_agnostic_examples: []const ChipAgnosticExample = &.{ - .{ .name = "spi-host", .file = "src/rp2040_only/spi_host.zig" }, - .{ .name = "spi-slave", .file = "src/rp2040_only/spi_slave.zig" }, + .{ .name = "spi-master", .file = "src/spi_master.zig" }, + .{ .name = "spi-slave", .file = "src/spi_slave.zig" }, .{ .name = "squarewave", .file = "src/squarewave.zig" }, .{ .name = "ws2812", .file = "src/ws2812.zig" }, .{ .name = "blinky", .file = "src/blinky.zig" }, diff --git a/examples/raspberrypi/rp2xxx/src/rp2040_only/spi_host.zig b/examples/raspberrypi/rp2xxx/src/spi_master.zig similarity index 93% rename from examples/raspberrypi/rp2xxx/src/rp2040_only/spi_host.zig rename to examples/raspberrypi/rp2xxx/src/spi_master.zig index 5ac8b472..a9ebb305 100644 --- a/examples/raspberrypi/rp2xxx/src/rp2040_only/spi_host.zig +++ b/examples/raspberrypi/rp2xxx/src/spi_master.zig @@ -8,7 +8,7 @@ const gpio = rp2xxx.gpio; const BUF_LEN = 0x100; const spi = rp2xxx.spi.instance.SPI0; -// These will change depending on which GPIO pins you have your SPI device routed to. +// These may change depending on which GPIO pins you have your SPI device routed to. const CS_PIN = 17; const SCK_PIN = 18; // NOTE: rp2xxx doesn't label pins as MOSI/MISO. Instead a pin is always for diff --git a/examples/raspberrypi/rp2xxx/src/rp2040_only/spi_slave.zig b/examples/raspberrypi/rp2xxx/src/spi_slave.zig similarity index 100% rename from examples/raspberrypi/rp2xxx/src/rp2040_only/spi_slave.zig rename to examples/raspberrypi/rp2xxx/src/spi_slave.zig