17 Commits (c48ca0e86b5353d4e4ebf78803354bb46c928c46)

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
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 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 "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
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 bb2b13227b Snapshot for transfer 9 months ago
Felix "xq" Queißner 9a3b06aa31 Moves microzig-examples to examples/ 9 months ago