29 Commits (158ad9eefa0cd747ef78c4646ac3942b7a48c882)

Author SHA1 Message Date
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 b1cbd1bf34
hal: dma: Cast channel index in claim_unused_channel (#170)
`i` is `usize` but `channel()` expects a `u4`.
7 months ago
Felix "xq" Queißner 2878ae6e19 Makes microchip/atsam example and bsp work 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 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
Felix "xq" Queißner cadd5d1b0f Makes examples/next-gen kinda build with experimental setup. Packages are now correct and microzig-build can determine all available targets and BSPs. 8 months ago
Felix "xq" Queißner e5b00e1d93 More docs on the tooling, fixes bug in memory computation. 8 months ago
Felix "xq" Queißner 31f26f57d9 Refactors packaging process from bash to python 9 months ago
Felix "xq" Queißner 6eccd8fd95 Implements board-support info extraction that inspects (and validates) the build.zig file for BSPs 9 months ago
Felix "xq" Queißner 597034bb97 Adds some basic package metadata. 9 months ago
Felix "xq" Queißner 80582f0349 Merge branch 'merge_stm32' 9 months ago
Felix "xq" Queißner 07f7ba8006 Merge branch 'merge_bsp_rp2040' 9 months ago
Felix "xq" Queißner c703e15706 Merge branch 'merge_lpc' 9 months ago
Felix "xq" Queißner 5e44623c5d Merge branch 'merge_nrf52' 9 months ago
Felix "xq" Queißner 81353873ec Merge branch 'merge_avr' 9 months ago
Felix "xq" Queißner 4071968436 Merge branch 'merge_atsam' 9 months ago
Felix "xq" Queißner 447145d03b Merge branch 'merge_gd32' 9 months ago
Felix "xq" Queißner 3373a5e799 Moves ESP to board-support/espressif-esp 9 months ago
Felix "xq" Queißner 4eeb5d95f8 moves gd32 to board-support/gigadevice-gd32 9 months ago
Felix "xq" Queißner 273414c4f5 Moves atsam to board-support/microchip-atsam 9 months ago
Felix "xq" Queißner 34a4df5cb9 Moves AVR to board-support/microchip-avr 9 months ago
Felix "xq" Queißner 1e490a3d67 Moves nrf5x to board-support/nordic-nrf5x 9 months ago
Felix "xq" Queißner c99eb4e1e4 Moves nxp to board-support/nxp-lpc 9 months ago
Felix "xq" Queißner 4ba6016ea0 moves stmicro-stm32 to board-support 9 months ago
Felix "xq" Queißner 6fcd0baa24 Moves raspberrypi-rp2040 to board-support/raspberrypi-rp2040 9 months ago