516 Commits (1bfba96a8a574c20609d7f5ed23663a681b3cda9)
 

Author SHA1 Message Date
Matt Knight 6f4850dab7 fix mmio int generation (#25) 7 months ago
Matt Knight 780a75268f add reset value and reset mask register properties (#24)
* add reset value and reset mask register properties

* usize => u64
7 months ago
Matt Knight 3d0c1ece64 use unmanaged datastructures (#23) 7 months ago
Riccardo Binetti 8ba737656a Add support for dimensioned register fields (#20)
Signed-off-by: Riccardo Binetti <rbino@gmx.com>
7 months ago
Matt Knight e34f293fec Update README.md 7 months ago
Matt Knight edf25671b9 add parsing the access type for svd (#22) 7 months ago
Matt Knight 2eb508c318 Register properties size (#21)
* snapshot

* size from register properties now passes tests

* finish moving to named index types
7 months ago
Matt Knight 96bf099d2e Update README.md 7 months ago
Matt Knight 4f4c1e693e Update README.md
don't need --recursive to clone ;)
7 months ago
Matt Knight d10482c9bd Vendor (#19)
* vendor dependencies
7 months ago
Matt Knight 1c676cbcfb support windows builds (#14)
* support windows builds

* add gitattributes for line ending
7 months ago
Matt Knight e7539b24ae Add build wrapper for regz (#13)
* regz can now be used as a build step
7 months ago
Matt Knight d6d34e21b0 remove indenting, just let the ast parser format the code (#11) 7 months ago
Matt Knight 2de91f6ca5 Test framework (#8)
* add template for PRs

* add CI workflow

* add test step and some empty tests

* reduce targets in workflow, add example svd

* added first test

* added line

* don't crosscompile from windows for now
7 months ago
Matt Knight d6bdd69ab4 extern struct for vector table (#4) 7 months ago
Matt Knight ae94209b57 inline functions for MMIOs (#3) 7 months ago
Matt Knight 4b7c5c531b ATDF (#2)
* snapshotting so that I can work on this as I travel

* add atdf parsing

* update readme

* fix register generation edge case and skip fields named RESERVED
7 months ago
Gregory Anders b6821bf8c1 Update clap usage for most recent HEAD version 7 months ago
Matt Knight 1a1a281c01 description word wrapping and fixed unhandled interrupt function 7 months ago
Matt Knight fed1a8f3fd big initial commit, thanks kprotty for helping with MmioInt() 7 months ago
Matt Knight 39f633642d Initial commit 7 months ago
Tobias Kohlbau 096fda843a
usb: unify handling of length parameters (#177)
* usb: unify handling of length parameters

The length parameters in USB packets are strict and the existing
implementation does already hardcode the length within the serialize
functions. Therefore the user should not provide these lengths during
creation time. In order to make this more verbose use defaults values
within the structs and reference these defaults values within the
serialization functions. It's not possible to remove these fields
completly as this fields are used within deserialization from the
hardware itself.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>

* Remove length fields as they are obsolete. The lengths is only required
during the serialization and therefore is already hardcoded. The only
other convinience is the calculation of the descriptor size, but this is
already wrong. extern structs are padded and therefore do not have the
right sizes.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>

* cleanup some accidentially added changes

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>

---------

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
7 months ago
Grazfather 245401a0ca
wip: rp2040: Add support for PIO's jmp_pin (#174)
This field is a bit tricky: It belongs to the EXECCTRL register, while
most of the other fields can determined based on the directives used in
the assembled program, this one has to be set explicitly. This makes it
so that we have to plumb some way to explicitly set the field. I did
this by making `LoadAndStartProgramOptions` take `ExecOptions`, but this
isn't perfect, because if a user sets other fields, they will be ignored
in favour of the values set in the program.
7 months ago
Grazfather a7ff8ed32b
rp2040: Fix DMA not respecting transfer_size_bytes (#176) 7 months ago
Felix Queißner 5742d0e4b3
Better readme (#173)
* Adds better docs to README.md
* Adds tar, gzip to bundle.py checked dependencies.
* Adds fancy rendering of .data/chip-families.svg in output for embedding.
7 months ago
Grazfather 4c44611f20
Fix requirements.txt and update README (#172) 7 months ago
Grazfather b1cbd1bf34
hal: dma: Cast channel index in claim_unused_channel (#170)
`i` is `usize` but `channel()` expects a `u4`.
7 months ago
Felix Queißner 196bbd8094
Fixes CI Badge in README.md (#164)
* Fixes CI Badge in README.md

* Removes additional fetching from git

* More work on the CI script

* Adds requirements.txt for tools, fixes CI script even more

---------

Co-authored-by: Felix "xq" Queißner <git@random-projects.net>
7 months ago
Tobias Kohlbau 829f860b8c
fix documentation for patch tool (#165)
The patch tool expects the build.zig.zon file as
it's argument not the project folder.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
7 months ago
Tobias Kohlbau e9859fbab2
support bundling only specific boards (#166)
Support bundling only specified boards and skipping
the examples. This speedsup the process in case
the developer is only working on specific boards
at a time. By default every example and every board
are bundled.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
7 months ago
Felix "xq" Queißner be113c7adc Updates README.md 7 months ago
Felix Queißner cb45e3309c
Update README.md 7 months ago
Felix "xq" Queißner 37319a93ca Moves some files out of core 7 months ago
Felix "xq" Queißner 7817cdd27e Implements continous deployment 7 months ago
Felix "xq" Queißner a4ac2d1858 Adds deployment+example test to CI 8 months ago
Felix "xq" Queißner 1643c30d7d Makes AVR example fit, but still crashes compiler 8 months ago
Felix "xq" Queißner 2878ae6e19 Makes microchip/atsam example and bsp work 8 months ago
Felix "xq" Queißner 7dd20383fb Adds examples for espressif/esp, gigadevice/gd32 8 months ago
Felix "xq" Queißner 2ef68047de Adds up navigation in dev server 8 months ago
Felix "xq" Queißner 71e60e3c44 Makes nxp/lpc and nordic/nrf5x examples, fixes bug in build.zig.zon generation 8 months ago
Felix "xq" Queißner 7a33e6fd55 Makes stm32 module build again. 8 months ago
Felix "xq" Queißner 2e9df6032d Tiny change in the rp2040 build 8 months ago
Felix "xq" Queißner 243c263150 Ports raspberrypi-rp2040 to microzig-package.json style, reorders fields to have nicer file. 8 months ago
Felix "xq" Queißner a253584a01 Merge branch 'main' of github.com:ZigEmbeddedGroup/microzig-monorepo 8 months ago
Felix Queißner 2bb3a50b1d
Merge pull request #1 from tobiaskohlbau/examples/fixRaspberryPi
rework raspberry pico examples
8 months ago
Felix "xq" Queißner b26ccf6645 Adds new structure for output: split into /examples/ and /packages/ 8 months ago
Tobias Kohlbau d2c46f3d66 rework raspberry pico examples
Rework raspberry pico examples to support new
microzig architecture. This involves using newly
added target selection by bsp projects.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
8 months ago
Felix "xq" Queißner b1e189b4f4 Adds step/option for printing the available targets, shortens target list. 8 months ago
Felix "xq" Queißner 4480b7c17a Fixes build script enough to make next-gen example build. 8 months ago
Felix "xq" Queißner 99e8d09cf0 Adds auto-discovery of BSPs. 8 months ago