Commit Graph

3531 Commits

Author SHA1 Message Date
hathach 2219068371 rename hid multiple interface 2020-10-09 13:50:55 +07:00
hathach 89bf4fa04c Merge branch 'master' into house-keeping 2020-10-09 13:49:05 +07:00
hathach 344d589a35 use pyocd for iMXRT boards 2020-10-09 13:48:08 +07:00
Ha Thach 6f8d0d2c34
Merge pull request #531 from majbthrd/mimxrt1010stack
mimxrt1010_evk: double stack size to allow net_lwip_webserver to run
2020-10-09 00:48:08 +07:00
Ha Thach c2a0612885
Merge pull request #524 from zlittell/f_MultipleHIDInterfaces
Feature multiple hid interfaces
2020-10-09 00:28:13 +07:00
Zachery Littell a4ba1f0827 Fix tu_verify args 2020-10-08 12:08:13 -05:00
Zachery Littell 298aa1b669 Cleanup per review on PR 2020-10-08 11:59:12 -05:00
hathach e8b3af038e add flash-pyocd support 2020-10-08 17:19:48 +07:00
hathach ec018fbf4e clean up jlink default interface 2020-10-08 17:17:37 +07:00
Ha Thach 30c23719f6
Merge pull request #528 from jgressmann/port-atsame51-to-tinyusb
Adds files for the open source D5035-01 hardware
2020-10-08 13:46:41 +07:00
Zachery Littell db3fe97f62 fix variable names. add itf n callbacks to multihid 2020-10-07 20:36:00 -05:00
Peter Lawrence ed94e944c9 mimxrt1010_evk: double stack size to allow net_lwip_webserver to run 2020-10-07 13:15:58 -05:00
Jean Gressmann 3295b5692b D5035-01 bsp: fix typo 2020-10-07 19:27:55 +02:00
Jean Gressmann f02b5bfdfa Address various issues raised by TinyUSB maintainers
- remove OPT_MCU_SAME51 in favor of OPT_MCU_SAME5X and working around
  differences in the Atmel bsp locally in the D5035-01 bsp.

- rename board folder to d5035_01 for consistency with other boards
2020-10-07 19:19:30 +02:00
Ha Thach 6442f5afdb
Merge pull request #530 from hathach/fix-idf-latest
fix usb pin config with idf latest
2020-10-07 21:04:56 +07:00
hathach d407341d1e fix usb pin config with idf latest 2020-10-07 19:15:53 +07:00
Ha Thach 440e23c491
Merge pull request #529 from gh2o/stm32-race
stm32 fsdev: fix ISTR and CTR_RX/TX race conditions
2020-10-07 15:16:55 +07:00
Gavin Li 020ad47bb0 stm32: fix ISTR and CTR_RX/TX race conditions 2020-10-06 14:43:10 -07:00
Jean Gressmann f92fe1e23e D5035-01: more natural Makefile variable use 2020-10-06 17:39:36 +02:00
Jean Gressmann a2379060b6 Adds D5035-01 to the list of supported boards 2020-10-06 17:36:11 +02:00
Jean Gressmann 1730a5dcba D5035-01 bsp: fix paths, default to hw rev 1 (automated build) 2020-10-05 20:30:04 +02:00
Jean Gressmann 862f6ac81e Update Microchip submodule commit 2020-10-05 20:17:27 +02:00
Ha Thach 0686bd9369
Merge pull request #516 from PanRe/tusb_fifo_unmaksed_pointers
Tusb fifo unmaksed pointers
2020-10-06 00:01:51 +07:00
Jean Gressmann 61aacf07d6 Adds files for the open source D5035-01 hardware
The board's files are here:

	https://github.com/RudolphRiedel/USB_CAN-FD
2020-10-05 18:35:35 +02:00
Zachery Littell 081af79009 fix simple pull request comments. Implement descriptor index hack. 2020-10-02 16:02:00 -05:00
Ha Thach 9c4aceaaa8
Merge pull request #518 from kasjer/kasjer/nrf5x-iso-support
nrf5x iso support
2020-10-02 21:17:24 +07:00
Zachery Littell 34775d909d Add pipeline task for example 2020-10-01 13:37:54 -05:00
Zachery Littell e21ab8d4a9 create hid multiple interface example 2020-10-01 13:15:37 -05:00
Zachery Littell b7208d6f7e add index to report descriptor callback. this is breaking and needs to be reviewed 2020-10-01 12:51:48 -05:00
Zachery Littell 849681724a create N functions and inlines for multi hid interfaces 2020-10-01 11:51:33 -05:00
Jerzy Kasenberg 96da1ca4b8 nrf5x: Add support for ISO endpoints
ISO endpoints were not covered so far by the driver code.
This adds support for ISO IN and OUT endpoint handling.
Registers for ISO IN(OUT) endpoints are placed just after normal IN(OUT)
so in some cases common code could be used for handling all type of
transfers.
Generally code synchronizes ISO endpoint handling to SOF interrupt.
This code does not change the way of how non-ISO endpoints are treated.

Code uses strategy outlined in nRF52840 Produce Specification v1.0
sections 6.35.11.1 and 6.35.11.2.
2020-10-01 09:22:55 +02:00
Jerzy Kasenberg 6f5ee09511 nrf5x: Increase size of mps to 16 bits
msp stores max packet size.
For ISO endpoints 8 bits is not enough so it's changed to 16 bits.
2020-10-01 09:22:55 +02:00
Jerzy Kasenberg fceb8853c7 nrf5x: Add dcd_edpt_close
Closing endpoints can be important when there are alternate
instances. This adds functionality of closing endpoints
similar to what exists in other drivers.
2020-10-01 09:22:55 +02:00
Jerzy Kasenberg b2ce7a39b0 device: Make number of endpoints configurable
Currently number of endpoints was hard coded to 8.
NRF52 has 9 IN and 9 OUT endpoints.
ISO endpoints are 0x08 and 0x88 and without this change those
two ISO endpoint could not be used.
2020-10-01 09:22:49 +02:00
Reinhard Panhuber 8dcb104933 Change modulo substitute to while ( idx >= depth) idx -= depth; 2020-09-26 11:00:31 +02:00
Reinhard Panhuber 9ddcfc09d7 Fix wrong comments, rename pos to offset, rename overflow(). 2020-09-25 15:58:28 +02:00
Reinhard Panhuber 52c9a467b4 Fix bug in modulo substitute. 2020-09-23 21:36:30 +02:00
Reinhard Panhuber 9bdeafb295 Change maximum depth to 2^15 which allows for a fast modulo substitute.
Thus, however, overflows are detectable only for one time FIFO depth.
2020-09-23 20:48:03 +02:00
Ha Thach 8b2c822557
Merge pull request #512 from mzero/fix-midi-sysex
Fix a bug in writing SysEx messages.
2020-09-23 11:23:53 +07:00
Reinhard Panhuber 21299f90fa Final cleanup. 2020-09-19 11:46:43 +02:00
Reinhard Panhuber 9dfb78e9d8 Tested, working. 2020-09-15 20:40:41 +02:00
Ha Thach 9a0a78c52e
Merge pull request #514 from kasjer/kasjer/fix-nrf52-edpt_dma_start
nrf52: Fix edpt_dma_start() wrong condition check
2020-09-16 00:43:21 +07:00
Jerzy Kasenberg 62a76c0e04 nrf52: Fix edpt_dma_start() wrong condition check
Operator < used in while condition was obviously incorrect.
Loop starts with checking if unsigned variable is less then 0.
This condition is always false.

This reverses condition to follow intention of of the code.
2020-09-15 16:08:23 +02:00
Ha Thach 745c15d5b5
Merge pull request #508 from hathach/fix-edpt-race
Fix edpt xfer race condition
2020-09-14 23:56:21 +07:00
Reinhard Panhuber 349c0f640e Implementation done, yet to be tested. 2020-09-14 18:24:08 +02:00
hathach 9c0d15fc43 more const 2020-09-14 22:23:59 +07:00
hathach 23e6ee2ea2 cdc device: claim endpoint before checking fifo availability
- add pre-check to reduce mutex lock in usbd_edpt_claim
2020-09-14 22:14:31 +07:00
Mark Lentczner 3b0216d3bf
Update midi_device.c
Fix a bug in writing SysEx messages.

At the start of a new USB packet (4 bytes), while in the middle of a SysEx, the code mistakenly
set the buffer length to 4, not the target length. As a consequence, the 3rd and 4th bytes from
the last packet were included, after every byte of the SysEx after the first packet of three.

The fix is simple, as it was just a typo, as can bee seen from the other branches in the same
section of if/else statements: At the start of a new packet, the code should set up the target
length... the buffer length should be left at 2 (as set on line 180).
2020-09-13 15:05:18 -07:00
Ha Thach 3d393df2d0
Merge pull request #510 from hathach/fix-hid-gamepad-template
correct the TUD_HID_REPORT_DESC_GAMEPAD
2020-09-13 15:15:41 +07:00
hathach 5931d19666 correct the TUD_HID_REPORT_DESC_GAMEPAD 2020-09-13 15:01:20 +07:00