You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
..
src usb: unify handling of length parameters (#177) 7 months ago
tools Moves raspberrypi-rp2040 to board-support/raspberrypi-rp2040 9 months ago
LICENSE Moves raspberrypi-rp2040 to board-support/raspberrypi-rp2040 9 months ago
README.adoc Moves raspberrypi-rp2040 to board-support/raspberrypi-rp2040 9 months ago
build.zig Fixes build script enough to make next-gen example build. 8 months ago
microzig-package.json Adds some basic package metadata. 9 months ago
rp2040.ld Moves raspberrypi-rp2040 to board-support/raspberrypi-rp2040 9 months ago

README.adoc

= raspberrypi-rp2040

HAL and register definitions for the RP2040.

== What version of Zig to use

0.11.0

== Supported devices ==

- Raspberry Pi RP2040 (`chips.rp2040`)
- Raspberry Pi Pico (`boards.raspberry_pi.pico`)
- (*experimental*) Waveshare RP2040-Plus (4M Flash) (`boards.waveshare.rp2040_plus_4m`)
- (*experimental*) Waveshare RP2040-Plus (16M Flash) (`boards.waveshare.rp2040_plus_16m`)
- (*experimental*) Waveshare RP2040-ETH Mini (`boards.waveshare.rp2040_eth`)
- (*experimental*) Waveshare RP2040-Matrix (`boards.waveshare.rp2040_matrix`)