Commit Graph

3949 Commits

Author SHA1 Message Date
Jeremiah McCarthy 164d3e82e3 Fix incorrect DNLOAD request len passed to app
Fixes bug where the app callback was getting the length of the status
request transfer rather than the length of the data stage payload.

TODO: Right now this returns the expected length, when it really should
be returning the transfer length.
2021-04-05 11:13:42 -04:00
Jeremiah McCarthy fb7b47cf07 Minor cleanup 2021-03-26 17:32:03 -04:00
Jeremiah McCarthy 1138f8cc70 Add DFU Class per Version 1.1 Spec 2021-03-26 15:30:43 -04:00
Jeremiah McCarthy 161b8587bd Revert "Add Linux support to tmc example"
This reverts commit dc2f00cca1.
2021-03-17 14:24:14 -04:00
Jeremiah McCarthy ec08dcf61a Implement requested changes for PR724 2021-03-17 09:25:01 -04:00
Jeremiah McCarthy dc2f00cca1 Add Linux support to tmc example
Replaces visa include with pyvisa, as visa use with PyVISA is being
deprecated.
2021-03-16 17:04:40 -04:00
Michael Bruno 62d4652f86
Update usbtmc_device.c
Fix buffer alignment in TMC device class
2021-03-16 10:48:42 -04:00
Jeremiah McCarthy 21f1cd4ec7 Implement requested PR changes
Removes CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, and makes the manual padding
behavior standard.  Replaced unused variable name with TU_RESERVED.
2021-02-18 13:26:03 -05:00
Jeremiah McCarthy f8fbc0930b Add alternate bitfield padding option
Adds configuration option CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, which
substitutes bitfield variable " : 0" padding syntax with an unused
variable of size equal to the remaining number of bits.

This change resolves aligned access issues for some platforms.

Default behavior is original if the option is not explicitly enabled.
2021-02-16 10:43:52 -05:00
ndinsmore 09868434cd
Fixes RP2040 buffer reallocation overrun problem (#642)
Fix running out of memory on a device that repeatedly closes and opens an endpoint. This is a workaround at the moment. A better solution would be to implement reclaiming usb buffer memory when closing an endpoint (i.e. implement dcd_edpt_close).
2021-02-12 08:16:46 +00:00
Ha Thach 04ab6b4082
Merge pull request #648 from hathach/rename-dfu-rt-to-runtime
Rename dfu rt to runtime
2021-02-11 15:29:55 +07:00
Ha Thach d4281291e5
Merge pull request #647 from hathach/correct-fs-bulk-epsize
more epsize checking per type
2021-02-11 12:36:19 +07:00
hathach d2f3e70b64 rename examples folder dfu_rt to dfu_runtime 2021-02-11 12:08:09 +07:00
hathach e12c25ec2c rename dfu_rt to dfu_runtime for easy reading
also rename tud_dfu_rt_reboot_to_dfu to tud_dfu_runtime_reboot_to_dfu_cb
2021-02-11 12:05:22 +07:00
Ha Thach 89fcaf1efd
Merge pull request #646 from hathach/detect-clear-set-ep-status-from-class
remove the requirement of std SET/CLEAR_FEATURE must not return zlp status
2021-02-11 11:54:47 +07:00
hathach 9812cfc6c6 clean up 2021-02-11 11:48:34 +07:00
hathach 919bb9ce38 more epsize checking per type 2021-02-11 11:45:24 +07:00
Ha Thach dc64d6ad55
Merge pull request #645 from ipopov/webserial-fix
Fix unintended control transfers in webserial example.
2021-02-11 11:25:55 +07:00
hathach 49bc97b0ca remove the requirement of std SET/CLEAR_FEATURE must not return zlp status 2021-02-11 11:22:02 +07:00
Ivo Popov 5178e2af55 Address review comments:
- every switch must have a default
- revert formatting of unchanged lines
2021-02-10 22:14:29 -05:00
Ha Thach ba11bb2b80
Merge pull request #644 from ipopov/master
Set -DCMAKE_BUILD_TYPE=Debug when building in debug for rp2040.
2021-02-10 21:52:28 +07:00
Ivo Popov ce7fb36337 Fix unintended control transfers in webserial example. 2021-02-10 01:05:37 -05:00
Ivo Popov c8499c89db Set -DCMAKE_BUILD_TYPE=Debug when building in debug for rp2040.
This ensures that the Pico SDK, too, is built in debug mode and with
nice debugging symbols.
2021-02-10 00:48:58 -05:00
Ha Thach a96ee8f1d8
Merge pull request #641 from lurch/fix_capitalisation
Fix capitalisation of Raspberry Pi
2021-02-09 17:23:00 +07:00
Ha Thach 5d20b8f19b
Merge pull request #640 from hathach/add-hid-complete-callback 2021-02-09 17:05:12 +07:00
Andrew Scheller 43acffd41e Fix capitalisation of Raspberry Pi 2021-02-09 09:55:26 +00:00
hathach 9c3a44b6a3 update hid_composite_freertos example 2021-02-09 16:06:38 +07:00
hathach d2b8e591f6 tud_hid_report_complete_cb() API
update hid composite to make use of tud_hid_report_complete_cb() for
sending reports when possible.
2021-02-09 15:57:29 +07:00
Ha Thach ecd16cf24b
Merge pull request #637 from tfx2001/master
add basic support for rt-thread
2021-02-08 20:10:07 +07:00
tfx2001 1b678eccf5 add basic support for rt-thread 2021-02-08 20:46:49 +08:00
Ha Thach ac4555b361
Merge pull request #638 from hathach/add-gamepad
Enhance HID Gamepad with DPad/Hat
2021-02-08 19:40:18 +07:00
hathach 72bcc0685c add tud_hid_n_gamepad_report() helper for gamepad report
- Add gamepad to hid_composite example. Though it needs a bit of extra
work but it will come later as separated PR.
2021-02-08 19:08:16 +07:00
hathach b2019e4d71 enhance gampepad report with dpad/hat support
add hid_gamepad_report_t along with GAMEPAD_BUTTON_ and GAMEPAD_HAT_
enum
2021-02-08 16:10:13 +07:00
hathach bc80d686f5 clean up 2021-02-08 16:05:28 +07:00
Ha Thach f49d47a0aa
Mirror sources only to hathach/tinyusb_src repo (#636)
Mirror sources only to hathach/tinyusb_src repo
2021-02-07 15:55:45 +07:00
Ha Thach be1bd74b4b
Merge pull request #618 from homeodor/master
A CDC-like blocking behaviour for MIDI, incl. SysEx
2021-02-06 12:30:28 +07:00
Alexander Golovanov 9f7143af29 CDC-like blocking behaviour for MIDI
Also added a dummy readout for MIDI into examples
2021-02-06 00:01:46 +03:00
Ha Thach 7b62c71dd5
Merge pull request #634 from hathach/release-0.8.0
Release 0.8.0
2021-02-05 23:00:02 +07:00
hathach 465ea7a66e increase TUSB_VERSION_ to 0.8.0 2021-02-05 22:37:22 +07:00
hathach 56b319d2d5 correct release asset 2021-02-05 21:53:33 +07:00
hathach 449bcc239f upload example as release assets 2021-02-05 21:24:46 +07:00
hathach bb2f93d427 prepare for release 2021-02-05 20:41:41 +07:00
hathach 42dad78dbc add samd11 to ci 2021-02-04 14:17:51 +07:00
Ha Thach 232c1e5915
Merge pull request #627 from ktemkin/luna_d11
Add support for SAMD11 variants of LUNA.
2021-02-04 14:14:09 +07:00
Katherine Temkin 2997e78da3 bsp: rename SAMD21 LUNA variant to luna_d21
We now have SAMD21 and SAMD11 variants of LUNA; so we'll rename the
existing LUNA BSP to be more specific / reflect its version.
2021-02-03 13:35:07 -07:00
Katherine Temkin 6f02e5f1f8 add BSP for SAMD11 variant of Great Scott Gadgets' LUNA boards (SAMD11) 2021-02-03 13:33:40 -07:00
Ha Thach 148a5a9181
Merge pull request #626 from hathach/add-adafruit-samd51-boards
Add adafruit samd51 boards
2021-02-03 17:06:00 +07:00
Ha Thach 064dcb833d
Merge pull request #625 from hathach/update-picosdk-1.0.1
update pico-sdk to 1.0.1
2021-02-03 14:51:29 +07:00
hathach a8bdfadfd0 Merge branch 'update-picosdk-1.0.1' into add-adafruit-samd51-boards 2021-02-03 13:37:20 +07:00
hathach a5403bdbe5 fix ci toolchain installation path 2021-02-03 13:29:59 +07:00