9 Commits (263528061d919ad30ec8b229424dab3c5a0ab787)

Author SHA1 Message Date
Arkadiusz Wójcik 3af91ea8f9
USB CDC ACM support + code refactor (#211)
* part1: code refactor

* part2: config serialization

* usb cdc acm support

---------

Co-authored-by: Arkadiusz Wójcik <wojcik.arkadiusz@outlook.com>

@ikskuh
2 months ago
Matthias bb8888944f
Use app provided panic handler if it exists (#209) 3 months ago
Arkadiusz Wójcik 301ac942e7
USB driver: support chunked data (#201)
* USB driver: support chunked data
* USB driver: increase tmp buffer size
* Improved buffer API (aligned with FixedBufferReader from std.dwarf)
* Added API documentation
* Bug fix: Send empty packet at very end

---------

Co-authored-by: Arkadiusz Wójcik <wojcik.arkadiusz@outlook.com>
3 months ago
Matt Knight ea809c6b7f
some predefined registers for Cortex M (#190) 4 months ago
Matt Knight 12ff1b76e4 updates for zig 0.12.0 5 months ago
Matt Knight 185e906e54 Update microzig to work on zig master 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
Felix "xq" Queißner 1643c30d7d Makes AVR example fit, but still crashes compiler 8 months ago
Felix "xq" Queißner a92518c99f Moves microzig to core/ 9 months ago