Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Adds more working devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix "xq" Queißner committed Sep 21, 2023
1 parent 9e40dda commit 991d757
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * *'

jobs:
build:
Expand Down
25 changes: 25 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const std = @import("std");
const rp2040 = @import("rp2040");
const stm32 = @import("stm32");
const lpc = @import("lpc");
const gd32 = @import("gd32");
const nrf5x = @import("nrf5x");

pub fn build(b: *std.Build) void {
const microzig = @import("microzig").init(b, "microzig");
Expand Down Expand Up @@ -28,6 +31,28 @@ pub fn build(b: *std.Build) void {
.{ .name = "stm32f4discovery", .target = stm32.boards.stm32f4discovery },
.{ .name = "stm3240geval", .target = stm32.boards.stm3240geval },
.{ .name = "stm32f429idiscovery", .target = stm32.boards.stm32f429idiscovery },

// NXP LPC
// TODO: Add checksum postprocessing
.{ .name = "lpc176x5x", .target = lpc.chips.lpc176x5x },
.{ .name = "mbed-lpc1768", .target = lpc.boards.mbed.lpc1768 },

// GigaDevice GD32
.{ .name = "gd32vf103xb", .target = gd32.chips.gd32vf103xb },
.{ .name = "gd32vf103x8", .target = gd32.chips.gd32vf103x8 },
.{ .name = "sipeed-longan_nano", .target = gd32.boards.sipeed.longan_nano },

// Nordic Nrf5x
.{ .name = "nrf52832", .target = nrf5x.chips.nrf52832 },
.{ .name = "nrf52840", .target = nrf5x.chips.nrf52840 },
.{ .name = "nrf52840-dongle", .target = nrf5x.boards.nordic.nRF52840_Dongle }, // TODO: Add support for DFU files!

// Espressif ESP
// .{ .name = "nrf52832", .target = nrf5x.chips.nrf52832 },
// TODO: Add support for Espressif Update Binaries

// Microchip ATmega
// TODO: Fix compiler bugs
};

for (available_targets) |dest| {
Expand Down
20 changes: 20 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,25 @@
.url = "https://github.com/ZigEmbeddedGroup/stmicro-stm32/archive/cb2893707efa6aa289fa72f02959ad5f2d9db2a1.tar.gz",
.hash = "12208cab5f60ef97cac4165ad694f3ba0c7b28f279538c1539b74f7c152f34fe306d",
},
.lpc = .{
.url = "https://github.com/ZigEmbeddedGroup/nxp-lpc/archive/be4280a8b55690e8446fd4c3186dcd6673118cd3.tar.gz",
.hash = "1220891bc5fa43b30cd024a628f8915f54691e5664d2a34e6653bf92722b222b7c7e",
},
.gd32 = .{
.url = "https://github.com/ZigEmbeddedGroup/gigadevice-gd32/archive/9324753cc3b8e7afe83fcda085bcfe76681a3be3.tar.gz",
.hash = "122043ff4dcbc342f25dbb936b0d9eaa701ac3509e2cbe6764be37b90d31c7a385d0",
},
.nrf5x = .{
.url = "https://github.com/ZigEmbeddedGroup/nordic-nrf5x/archive/0ab136860ccf7eb1d07969c3ef523f3cd898e2ff.tar.gz",
.hash = "1220980da06f9634dcff06afefa7aa111bd030018fea49f79e86657dab69621e1d08",
},
.esp = .{
.url = "https://github.com/ZigEmbeddedGroup/espressif-esp/archive/f7e47d07996565036501f55ed781a5f6e786b2f7.tar.gz",
.hash = "12209b0365f56df4ce83b1300da86bef605bd299e94b87f373571351f71fa2ccd461",
},
.atmega = .{
.url = "https://github.com/ZigEmbeddedGroup/microchip-atmega/archive/46dfd08ad13e0a9a84351cfd595b1e6e341d4839.tar.gz",
.hash = "1220b2df269bf997b77bebcebea63a8e39aea354a7075cf99878423e304394bc28eb",
},
},
}
8 changes: 6 additions & 2 deletions ezpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ exec ezpkg \
microzig.uf2=/home/felix/projects/zeg/uf2 \
microzig.regz=/home/felix/projects/zeg/regz \
rp2040=/home/felix/projects/zeg/device-support-package/rp2040 \
stm32=/home/felix/projects/zeg/device-support-package/stmicro-stm32

stm32=/home/felix/projects/zeg/device-support-package/stmicro-stm32 \
lpc=/home/felix/projects/zeg/device-support-package/nxp-lpc \
gd32=/home/felix/projects/zeg/device-support-package/gigadevice-gd32 \
esp=/home/felix/projects/zeg/device-support-package/espressif-esp \
nrf5x=/home/felix/projects/zeg/device-support-package/nordic-nrf5x \
atmega=/home/felix/projects/zeg/device-support-package/microchip-atmega

0 comments on commit 991d757

Please sign in to comment.