https://github.com/linouth/zig-pico-sdk
Zig wrapper for the Raspberry pico-sdk
https://github.com/linouth/zig-pico-sdk
pico rp2040 rpi-pico zig ziglang
Last synced: about 1 year ago
JSON representation
Zig wrapper for the Raspberry pico-sdk
- Host: GitHub
- URL: https://github.com/linouth/zig-pico-sdk
- Owner: Linouth
- Created: 2022-05-15T17:12:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T14:50:47.000Z (about 4 years ago)
- Last Synced: 2023-12-07T15:36:50.567Z (over 2 years ago)
- Topics: pico, rp2040, rpi-pico, zig, ziglang
- Language: Zig
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zig-pico-sdk
After first attempting to rewrite the SDK from scratch in Zig
([zig-pico](https://github.com/Linouth/zig-pico)), I realized that
this would be way too much work for me right now. Instead, this repo is a
wrapper around the official [pico-sdk](https://github.com/raspberrypi/pico-sdk).
It allows you to compile Zig programs for the Pico microcontroller (RP2040),
while being able to use the official SDK.
The `build.zig` file is setup to use the zig compiler to compile your program to
an object file. Then the pico-sdk will run as normal, and link the libraries
together with this object file into a binary.
Make sure that you have `arm-none-eabi-gcc`, `cmake`, `make`, and
the arm libs installed (`arm-none-eabi-newlib` on arch).
**This wrapper is extremely experimental still!** I expect plenty of bugs and
issues. Feel free to open issues, or to contribute.