Hurst, Brandon
e6c4c78813
- Fixed USB endpoint descriptor problems. All USB classes should now be usable. - Had to adjust some shared modules to account for MAX32 devices not supporting IN/OUT endpoints on the same EP #
2024-11-25 15:28:41 -08:00
Dan Halbert
8b39b3b6a6
shared-module/usb_hid/Device.c: update tud_hid_set_report_cb()
2024-06-10 18:19:27 -04:00
Dan Halbert
3f4d9310ff
CircuitPython files: replace STATIC with static
2024-05-20 11:02:17 -04:00
Dan Halbert
950b5d09d2
guard2once -s ...
2024-05-19 20:40:44 -04:00
Dan Halbert
747b7619ea
update headers of most CircuitPython-only files
2024-05-17 14:56:28 -04:00
Mariusz Ćwikła
52c38c8914
usb_hid.set_interface_name: use port_malloc to allocate memory for interface name
2024-03-03 09:11:59 +01:00
Mariusz Ćwikła
898708a1cc
usb_hid.set_interface_name
2024-02-28 16:34:34 +01:00
Dan Halbert
9aa73fd43f
shared-module/usb_hid: allow HID to wake sleeping host computer
2024-01-24 11:12:49 -05:00
Taylor Yu
e97b231f0a
shared-module/usb_hid: fix keyboard descriptor
...
Adjust Report Count for the LED field of the Keyboard Report Descriptor
to be consistent with the number of usages.
2024-01-18 22:17:39 -06:00
Scott Shawcroft
8137e2d6d2
Switch all ports to auto-growing split heap
...
This simplifies allocating outside of the VM because the VM doesn't
take up all remaining memory by default.
On ESP we delegate to the IDF for allocations. For all other ports,
we use TLSF to manage an outer "port" heap. The IDF uses TLSF
internally and we use their fork for the other ports.
This also removes the dynamic C stack sizing. It wasn't often used
and is not possible with a fixed outer heap.
Fixes #8512 . Fixes #7334 .
2023-11-01 15:24:16 -07:00
774f6ac6ab
Switch to using MP_ERROR_TEXT instead of translate, globally
2023-10-30 09:49:06 +01:00
Dan Halbert
2c0fa0f7dc
initial merge from v1.20.0; just satisifying conflicts
2023-09-19 11:10:12 -04:00
Dan Halbert
2ff8667e75
wip; remove long-lived functionality; remove PR#2614
...
Trinket M0 compile has no compilation errors, but has link errors to fix.
2023-08-08 20:41:17 -04:00
Dan Halbert
d289329344
Handle HID OUT reports with no report ID
2023-03-28 11:38:38 -04:00
db01dfea20
use a standard length validator
2022-11-30 12:06:19 -06:00
Maxim Kulkin
aab5fac67b
shared-module/usb_hid: Fix behavior of Device.get_last_received_report()
...
Documentation states that get_last_received_report() function should
return None if there was no report received previously, otherwise it
should return report. Moreover, same report should be returned only
once. That makes it possible to reliably process incoming OUT/Feature
reports.
This patch adds an array that stores flags if report with particular
ID was received and updates get_last_received_report() to match its
documentation.
2022-08-24 01:34:51 -04:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO
2022-05-27 12:59:54 -07:00
Dan Halbert
a01dec1df9
message consolidation and more use of validators
2022-05-19 15:38:37 -04:00
Reece Robinson
4b0f80f081
Enable support for extended HID usage page and usage. Related to Support HID Usage Pages and Usages >255 #5529
2022-04-05 13:54:07 +12:00
Dan Halbert
a911cbef51
check that boot device is interface #0 ; remove instrumentation
2021-10-13 12:30:01 -04:00
Dan Halbert
1ae69b5cc5
debugging, with instrumentation
2021-10-07 08:19:53 -04:00
Dan Halbert
24c6295ed4
Boot protocol and feature reports: compiles; needs to be tested
2021-10-04 22:48:18 -04:00
Scott Shawcroft
771b4c7464
Add two space saving knobs
...
* Reduce the number of supported HID reports of IDs per descriptor.
This saves ~200 bytes in the default HID objects.
* (Not enabled) Compute QSTR attrs on init. This trades 1k RAM for
flash. Flash is the default (1).
2021-08-31 13:02:34 -07:00
Dan Halbert
29ae444dc6
Fix usb_hid_gc_collect()
2021-08-27 11:36:56 -04:00
Dan Halbert
1bcf66ff8d
Check buffer existence in tud callbacks (addresses #5020 )
2021-08-17 15:34:48 -04:00
Dan Halbert
38f42818e9
fix gc; update KEYBOARD report descriptor
...
The default KEYBOARD report descriptor had a signed/unsigned error,
and also could have allowed more keycodes. So I changed it, using the
very vanilla descriptor from a very plain extremely common commercial
keyboard, modifying it only have 5 LED's instead of 3, and added a
report ID.
2021-08-16 18:59:41 -04:00
Dan Halbert
f37e1d7bf5
squeeze a couple of boards
2021-08-14 17:36:05 -04:00
Dan Halbert
3dc2b4c2d3
at least original functionality with new API
2021-08-14 12:36:40 -04:00
Dan Halbert
4f8ff12afa
wip
2021-08-14 12:36:40 -04:00
Dan Halbert
0f66832829
Merge branch 'main' into hid_devices-gc
2021-05-24 18:17:52 -04:00
Dan Halbert
c6eb0283dc
Don't set num_hid_devices before it's validated
2021-05-21 17:34:30 -04:00
Dan Halbert
5a81f275cf
Don't change number of HID devices until it's vetted
2021-05-21 17:29:21 -04:00
Dan Halbert
7d0cda2614
gc all pointers in hid_devices properly
2021-05-21 16:32:55 -04:00
Dan Halbert
fa6c06fb38
count in/out endpoints; allow more usb modules on low-endpoint boards
2021-05-13 21:59:02 -04:00
ajs256
3c8b8cdba7
make translate
2021-05-10 16:57:38 -07:00
ajs256
7cd8e98962
Make two error messages sentence case
2021-05-10 16:51:13 -07:00
Dan Halbert
f504af3127
fix HID; fix interface name table creation
2021-05-09 00:42:45 -04:00
Dan Halbert
adc3d7d55e
update Python API according to review comments
2021-05-03 22:29:02 -04:00
Dan Halbert
5b5de4b92e
fix sHID report doc and API
2021-05-03 20:53:31 -04:00
Dan Halbert
be7b2b00a8
uncrustify with newer version of uncrustify
2021-04-30 10:40:12 -04:00
Dan Halbert
abfb020d41
MSC, CDC, HID keyboard definitely working
2021-04-29 17:41:43 -04:00
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04:00
Dan Halbert
587aedd14f
rework storage allocation
2021-04-28 13:00:44 -04:00
Dan Halbert
8500e846c6
partially working
2021-04-27 23:53:23 -04:00
Dan Halbert
f98a54628b
wip: compiles
2021-04-27 14:37:36 -04:00
Dan Halbert
7a40b4daec
very much WIP
2021-04-26 23:54:01 -04:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
Dan Halbert
aea3c4d3ab
wip
2021-04-25 10:23:59 -04:00
Dan Halbert
556a126917
wip: getting closer
2021-04-23 21:44:13 -04:00
Dan Halbert
2b4c88d633
wip: partial HID, still needs rework
2021-04-23 00:18:05 -04:00