{"id":26745196,"url":"https://github.com/ghostiam/ch32_zig","last_synced_at":"2025-03-28T08:15:50.677Z","repository":{"id":279327068,"uuid":"938405833","full_name":"ghostiam/ch32_zig","owner":"ghostiam","description":"WCH CH32 HAL in Zig. Compile simply with `zig build`.","archived":false,"fork":false,"pushed_at":"2025-03-26T20:57:17.000Z","size":20209,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T21:34:00.235Z","etag":null,"topics":["ch32","ch32v","ch32v003","embedded","embedded-zig","wch","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostiam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-24T22:49:14.000Z","updated_at":"2025-03-26T20:57:21.000Z","dependencies_parsed_at":"2025-02-25T02:29:51.759Z","dependency_job_id":"4d572dea-7958-4898-b699-eb6d5a736722","html_url":"https://github.com/ghostiam/ch32_zig","commit_stats":null,"previous_names":["ghostiam/ch32v003_zig","ghostiam/ch32_zig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fch32_zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fch32_zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fch32_zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostiam%2Fch32_zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostiam","download_url":"https://codeload.github.com/ghostiam/ch32_zig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991584,"owners_count":20706129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ch32","ch32v","ch32v003","embedded","embedded-zig","wch","zig","ziglang"],"created_at":"2025-03-28T08:15:50.194Z","updated_at":"2025-03-28T08:15:50.666Z","avatar_url":"https://github.com/ghostiam.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WCH CH32 HAL in Zig\n\nHAL(Hardware Abstraction Layer) for the WCH CH32 series of microcontrollers written in Zig.\n\n## TODO\n\nThe [minichlink](tools/minichlink) flasher is also included and can be\ncompiled using `zig build` as well.\n\n## Getting Started\n\n\u003e \\[!NOTE\\]\n\u003e If you are using `nix`, you can simply run `nix develop` in the root of the project, and it will automatically install\n\u003e `zig`, `zigscient`, `minichlink` and `wch-openocd` in your environment.\n\u003e And you can skip to the [Build and upload the example](#build-and-upload-the-example) section.\n\n### Install Zig\n\nCurrently, the examples are tested with `0.14.0`.\\\nYou can download the latest version from:\nhttps://ziglang.org/download/\n\n### Build the flasher\n\n```shell\ncd tools/minichlink\nzig build\n\n# Add the `minichlink` to your `PATH`:\nexport PATH=$PATH:$(pwd)/zig-out/bin\n```\n\n### Build and upload the example\n\n```shell\ncd examples/blink\nzig build\nminichlink -w zig-out/firmware/ch32v003_blink.bin flash -b\n```\n\n## Basic Examples\n\nIf you want to learn more about how everything works, I recommend checking out the repository with basic examples that\nare based on the use of registers without\nabstractions: [ch32v003_basic_zig](https://github.com/ghostiam/ch32v003_basic_zig)\n\n## Size benchmark\n\nSee [SIZE_BENCHMARK.md](SIZE_BENCHMARK.md)\n\n## Useful Notes\n\nSee [USEFUL_NOTES.md](USEFUL_NOTES.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostiam%2Fch32_zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostiam%2Fch32_zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostiam%2Fch32_zig/lists"}