Commit Graph

3967 Commits

Author SHA1 Message Date
Peter Lawrence 999ef227d0 rp2040: requested code mode in rp2040_usb.h 2021-02-25 08:45:47 -06:00
Peter Lawrence e00178a1af rp2040: don't compile in host code when in device mode 2021-02-23 14:04:56 -06:00
Ha Thach 99d3a32ba2
Merge pull request #671 from kamtom480/bus_reset_speed
Pass the correct speed on Spresense
2021-02-22 17:46:05 +07:00
Kamil Tomaszewski b591a66b3d Pass the correct speed on Spresense 2021-02-22 11:24:16 +01:00
Ha Thach d3195414dc
Merge pull request #657 from ndinsmore/RP2040_enable_isochronous_buffer_size
RP2040:Enable full size isochronous buffers
2021-02-22 12:47:48 +07:00
hathach 43ca626774 merge iso and cbi transaction size to max ep size 2021-02-22 12:27:02 +07:00
hathach 44916bcacf Merge branch 'RP2040_enable_isochronous_buffer_size' of https://github.com/ndinsmore/tinyusb into ndinsmore-RP2040_enable_isochronous_buffer_size 2021-02-22 12:21:52 +07:00
Ha Thach 30085592d4
Merge pull request #665 from jgressmann/same54xplainedpro
Adds support for Microchip SAM E54 Xplained Pro
2021-02-22 11:30:23 +07:00
Jean Gressmann 16c8f75637 Adds support for Microchip SAM E54 Xplained Pro 2021-02-20 16:00:27 +01:00
ndinsmore cb5b9eb2f6
Remove stray. commented out line 2021-02-19 08:33:06 -05:00
Ha Thach 1bba2c0fc3
Update CONTRIBUTORS.md 2021-02-19 17:19:33 +07:00
Ha Thach 9067926a70
Merge pull request #661 from hathach/improve-fifo
improve tu fifo
2021-02-19 12:24:05 +07:00
hathach 2a04ee68b8 add TU_FIFO_INIT() to help with tu_fifo declaration
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2021-02-19 11:57:56 +07:00
Ha Thach be9f86ca9e
Merge pull request #660 from hathach/fix-typo-midi-write24
Fix typo midi write24
2021-02-19 11:22:21 +07:00
Ha Thach 044d29c927
Merge pull request #654 from xmos-jmccarthy/master
Add alternate bitfield padding option
2021-02-19 11:03:53 +07:00
hathach 8f3f21045b make midi example less ambigous for cable and channel 2021-02-19 10:57:20 +07:00
hathach aa85099171 fix tud_midi_write24 typo
rename jack_id to cable_num in function argument
2021-02-19 10:51:47 +07:00
hathach c245305f72 update adafruit rp2040 board define 2021-02-19 10:50:50 +07: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
Ha Thach f60380cdc8
Merge pull request #658 from lurch/patch-1
rp2040/family.c: allow LED_PIN to be undefined
2021-02-19 00:36:04 +07:00
ndinsmore ac87a4547d
Change to using tu_min32
This was a github edit, not tested
2021-02-18 08:25:04 -05:00
Andrew Scheller 2145ab7664
rp2040/family.c: allow LED_PIN to be undefined 2021-02-18 11:53:18 +00:00
Nicholas R Dinsmore 27f4b6f5a4 Included size check for ISO buffers 2021-02-17 18:22:24 -05:00
Nicholas R Dinsmore 79b360f0a6 Enable iso buffers per rp2040 spec 2021-02-17 13:22:34 -05:00
Ha Thach 1b849fc70a
Merge pull request #655 from ndinsmore/fifo_fix
Fix to fifo pointer overflow mathmatics
2021-02-17 14:07:29 +07:00
Nicholas R Dinsmore b7ec66e33a This fixes the overflow mathmatic in the fifo 2021-02-16 23:08:08 -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