Nia Waldvogel
8ef36ed939
machine: fix usb truncation?
...
Remove the sendUSBPacket maxLen param because this greatly confused the compiler.
It also fixes a bug where the length provided to the hardware may not match the length of the packet.
sendUSBPacket now panics if the sent packet is too big.
I also fixed some of the string descriptor logic where we could create a packet without fully populating it.
RP2* systems might require some more work since they are implemented very differently?
I don't have any of those to test with yet, so maybe someone can deal with them in a seperate PR?
2026-01-03 10:59:50 +00:00
Michael Smith
ba274008d5
machine: implement usb receive message throttling
2025-06-11 07:46:02 +02:00
Michael Smith
b059de857c
machine: declare usb endpoints per-platform
2025-06-11 07:46:02 +02:00
Michael Smith
133e32c1c4
machine/rp2: merge common usb code ( #4856 )
...
* machine/rp2: merge common usb code
* chore: add note on noinline reason
2025-04-15 11:07:47 +02:00
sago35
3ad2530ee7
atsamd21, atsamd51: add support for USB INTERRUPT OUT
2023-09-16 09:30:05 +02:00
sago35
45f119de34
machine/atsamd51: remove extra BK0RDY clear
2023-03-08 09:40:01 +01:00
Yurii Soldak
8d4d3c6201
build: drop deprecated build tags
2022-12-19 23:20:11 +01:00
deadprogram
3c2d2a93d3
machine/usb: refactorings to move functionality under machine/usb package
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2022-07-14 07:20:50 +02:00
sago35
d434058aef
samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc ( #2972 )
...
* samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc
2022-07-10 11:33:52 +02:00
sago35
f1e6997018
atsamd21,atsamd51,nrf52840: improve usb-device initialization
2022-07-07 21:04:41 +02:00
sago35
335a7ad0b7
samd21,samd51,nrf52840: refactor handleStandardSetup and initEndpoint ( #2968 )
...
* samd21,samd51,nrf52840: refactor handleStandardSetup and initEndpoint
2022-07-07 16:43:57 +02:00
sago35
17deac116f
samd21,samd51,nrf52840: change usbSetup and sendZlp to public
2022-07-07 08:25:02 +02:00
sago35
2fa24ef752
samd21,samd51,nrf52840: refactor usb initialization
2022-07-06 17:55:25 +02:00
sago35
fcefcb191c
samd21,samd51,nrf52840: unify bootloader entry process
2022-07-06 09:14:11 +02:00
sago35
401bd89664
samd21, samd51: move USB-CDC code
2022-07-05 14:41:51 +02:00