168 Commits

Author SHA1 Message Date
decaday
9806f78ea0 Add information about existing USB IP implementations 2025-03-19 11:37:35 +08:00
Ronald Weber
7a2f038800 doc: Fix "the the" 2025-02-19 17:29:21 +01:00
René van Dorst
d363401ba5 embassy-usb: fix core::intrinsics deprecate warning in nightly.
Replaced `core::intrinsics::copy_nonoverlapping` with the
`core::ptr::copy_nonoverlapping`.

   Compiling embassy-usb v0.4.0 (embassy/embassy-usb)
warning: use of deprecated module `core::intrinsics`: import this function via `std::mem` instead
  --> embassy/embassy-usb/src/class/cdc_ncm/mod.rs:17:23
   |
17 | use core::intrinsics::copy_nonoverlapping;
   |                       ^^^^^^^^^^^^^^^^^^^
2025-02-03 22:08:23 +01:00
Ulf Lilleengen
ed63f80637 chore: bump embassy-sync version
Prepare version 0.6.2 for release
2025-01-15 16:12:36 +01:00
Dario Nieuwenhuis
05df319a82 Release embassy-usb v0.4.0, embassy-usb-logger v0.4.0. 2025-01-15 00:59:15 +01:00
Dániel Buga
44217aa092
Desugar some async fns 2024-12-30 12:13:13 +01:00
9names
adf3134e7d embassy-usb: fix building with optional log feature 2024-12-28 23:48:14 +11:00
Eekle
cac7000882 Update default docs for device class fields 2024-12-24 13:49:55 +01:00
Eekle
0f4b9c7451 Default USB to use composite_with_iads, which "just works" in most cases 2024-12-24 12:53:06 +01:00
sawyer bristol
0b7f9d84be add docs for usb version variants 2024-12-03 09:54:15 -07:00
sawyer bristol
1f9e678066 forgot to expose UsbVersion 2024-12-02 19:41:50 -07:00
sawyer bristol
fe2c82e98c rename BcdUsbVersion -> UsbVersion 2024-12-02 16:07:10 -07:00
sawyer bristol
180d816e00 add fmt 2024-12-02 16:03:38 -07:00
sawyer bristol
4d9ee16f3c fix device_qualifier_descriptor with custom bcd version 2024-12-02 15:58:39 -07:00
sawyer bristol
34899491e5 add named bcd versions 2024-12-02 15:57:58 -07:00
sawyer bristol
8068f7092e fix bug and allow bcd to be .0 2024-12-02 15:44:29 -07:00
sawyer bristol
f25830a5b6 bcd default to 2.1 2024-12-02 15:44:01 -07:00
sawyer bristol
d0b1819aa5 custom bcd usb version 2024-11-29 20:29:43 -07:00
elagil
ffc7b732e9 feat(usb): add USB Audio Class 1 2024-11-24 00:33:08 +01:00
Dániel Buga
c9abff53d7
Bump sync version (#3562)
* Bump sync version

* Use old embassy-sync in rp bluetooth example

* Downgrade update to minor
2024-11-22 21:16:11 +01:00
Dario Nieuwenhuis
ae8caf3f55
Merge pull request #3314 from elagil/add_iso_endpoint_support
Add ISO endpoint support
2024-09-16 19:51:52 +00:00
elagil
a8ca6713e6 feat(usb): make use of ISO endpoint support 2024-09-05 21:29:24 +02:00
Maxime Vincent
abcb39a58b
Allow bos_descriptor_buf to be a zero-length slice 2024-08-29 17:32:43 +02:00
Haobo Gu
a63d46507d feat(usb): add device qualifier descriptor
Signed-off-by: Haobo Gu <haobogu@outlook.com>
2024-08-15 11:26:24 +08:00
Ulf Lilleengen
886580179f update dates 2024-08-05 08:58:56 +02:00
Ulf Lilleengen
61bda59d83 Prepare to release embassy-usb 2024-08-05 08:56:29 +02:00
Ulf Lilleengen
ffb55754c8 Prepare release embassy-net-driver-channel 2024-08-05 08:56:29 +02:00
Dario Nieuwenhuis
2d678d6956 Update to Rust 1.80, make check-cfg unconditional. 2024-07-25 15:53:00 +02:00
Tarun Singh
a716a3f006 Reduced define for 'unreachable!' to a single macro rule 2024-07-17 17:05:52 -04:00
JuliDi
2571e0416f
bump usbd-hid from 0.7.0 to 0.8.1 2024-07-16 12:26:51 +02:00
Dario Nieuwenhuis
6a4ac5bd60 Add collapse_debuginfo to fmt.rs macros.
This makes location info in defmt logs point to the code calling the macro,
instead of always to fmt.rs as before. Fix works with nightlies
starting with today's, and stable 1.81+.
2024-06-17 01:38:57 +02:00
Ulf Lilleengen
cf0d227cca Prepare for embassy-sync 0.6.0 release 2024-05-29 12:09:55 +02:00
James Munns
aa7fcec009
embassy-usb - update 0.2 changelog 2024-05-20 13:27:54 +02:00
Dario Nieuwenhuis
08314b0940
Merge pull request #2862 from AtoVproject/feature/web-usb-class
WebUSB implementation
2024-04-28 21:24:21 +02:00
Chris Maniewski
095af92791
feature: WebUSB capability implementation
This adds the WebUSB implementation as per
https://wicg.github.io/webusb/, using one in-endpoint and one
out-endpoint as well as an example for the RP2040 to illustrate this
capability.
2024-04-27 23:14:16 +02:00
Dario Nieuwenhuis
7bc92584e1
Merge pull request #2858 from jamesmunns/james/embassy-usb-0_2
embassy-usb: Update version and add changelog
2024-04-26 20:22:46 +00:00
James Munns
8c98809f1e Update version and add changelog 2024-04-23 19:44:34 +02:00
Boris Faure
ae4fb433ae usb-hid: all the RequestHandler method accept &mut self 2024-04-15 19:57:18 +02:00
Boris Faure
41415fae0d usb/hid: make RequestHandler::set_report(&mut self,…)
That way, it is possible to change some fields in the RequestHandler based
on outside report.
2024-04-15 19:57:18 +02:00
Vega Deftwing
9053b6b5b3 Fix spelling and white space mistakes 2024-04-11 19:45:38 +00:00
Adam Simpkins
03a87add15 USB: fix comments about the config.max_packet_size_0 field
Fix the comment about the default value: this defaults to 64 rather
than 8 bytes.

It seems like the max packet size for endpoint 0 should normally be
selected automatically, rather than being part of the config.  At best
it seems like this setting should just be a hint that gets used if when
the bus is operating at full speed.  The contents of the device
descriptor should ideally be updated with the correct max packet size
after bus enumeration completes.  In practice always using 64 is
probably fine if low speed environments never need to be supported.
(Super speed requires a max packet size of 512 bytes, which I didn't
list in the comments here.)
2024-04-09 10:31:19 -07:00
Dario Nieuwenhuis
4aa4ea99c2 use private_bounds for sealed traits. 2024-03-23 01:45:19 +01:00
Adam Greig
7cf6490fba
usb: remove device_descriptor buffer, store bytes in UsbDevice.inner instead 2024-03-23 00:35:15 +00:00
Dario Nieuwenhuis
3d842dac85 fmt: disable "unused" warnings. 2024-03-20 14:53:19 +01:00
Haobo Gu
a0afd378f4 update usbd-hid to latest
Signed-off-by: Haobo Gu <haobogu@outlook.com>
2024-02-26 17:28:29 +08:00
Luca Barbato
5270053248
Fix a typo 2024-01-19 18:31:14 +01:00
Dario Nieuwenhuis
4c23f197b3 Fix invalid "async" crates.io category. 2024-01-12 00:39:01 +01:00
Dario Nieuwenhuis
6a1c415a4c Complete cargo.tomls more. 2024-01-12 00:32:47 +01:00
Dario Nieuwenhuis
5304994363 Add docs.rs metadata to all crates. 2024-01-11 23:17:02 +01:00
Dario Nieuwenhuis
0af44292a0 usb: add readme. 2024-01-11 19:10:56 +01:00