Code Monkey home page Code Monkey logo

microzig's Introduction

MicroZig Logo

Chat Downloads Continuous Integration

NOTE: This is in development; breaks in the API are bound to happen.

What version of Zig to use

Zig 0.13.0

Getting Started With MicroZig

I Want To Use MicroZig

IMPORTANT: You don't have to clone this repository to get started!

MicroZig uses a monorepo architecture, but provides a lot of different packages. If you just want to get started, head over to downloads.microzig.tech and download an example for the chip family you desire.

We support several chip families like the RP2 family by RaspberryPi Foundation, STM32 by STMicroelectronics, and many others.

Unpack the example, and run zig build in the resulting example folder gives you zig-out/firmware which contains the resulting files.

Right now, you gotta figure out how to flash the MCU yourself, but as people say: Google is your friend. But you can also ask for help on our Discord server.

I Want To Contribute To MicroZig

Please see the project page, it’s used as a place to brainstorm and organize work in ZEG. There will be issues marked as good first issue or drafts for larger ideas that need scoping/breaking ground on.

More words on contribution and development on MicroZig are further down below.

Introduction

This repo contains the infrastructure for getting started in an embedded Zig project; it "gets you to main()". Specifically, it offers:

  • a single easy-to-use builder function that:
    • generates your linker script
    • sets up packages and startup code
  • generalized interfaces for common devices, such as UART.
  • device drivers for interacting with external hardware
  • an uncomplicated method to define xref:interrupts[interrupts]

Design

For MicroZig internals please see the Design Document.

Repository structure

  • build/ contains the build components of MicroZig.
  • core/ contains the shared components of MicroZig.
  • bsp/ 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

Versioning Scheme

MicroZig versions are tightly locked with Zig versions.

The general scheme is ${zig_version}-${commit}-${count}, so the MicroZig versions will look really similar to Zigs versions, but with our own commit abbreviations and counters.

As MicroZig sticks to tagged Zig releases, ${zig_version} will show to which Zig version the MicroZig build is compatible.

Consider the version 0.11.0-abcdef-123 means that this MicroZig version has a commit starting with abcdef, which was the 123rd commit of the version that is compatible with Zig 0.11.0.

microzig's People

Contributors

mattnite avatar ikskuh avatar vesim987 avatar rbino avatar jacobly0 avatar marnix avatar r4gus avatar kuon avatar psnszsn avatar tobiaskohlbau avatar philippwendel avatar grazfather avatar matthiasportzel avatar fmaggi avatar biom4st3r avatar binarycraft007 avatar obenjamint avatar freiguy1 avatar dnedic avatar arkadiuszwojcik avatar ardelean-calin avatar jinnosukekato avatar l1ucas avatar leap0x7b avatar matevzmihalic avatar kassane avatar mattyhall avatar nancyjlau avatar paul-vandell avatar burgrp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.