3817 Commits

Author SHA1 Message Date
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
Jerzy Kasenberg
d36bfddc30 DA146xx: Allow transmitting of packets larger then 64 bytes
FIFO is limited to 64 bytes yet MCU is capable of transmitting
larger packets provided that FIFO will be filled on the fly
and USB_USB_TXCx_REG_USB_LAST_Msk bit is set after FIFO is
filled with all the data that should be transmitted.

This change allows to use FIFO level warning interrupt to fill
FIFO. When DMA is available it will be used instead of interrupts.
Some function names were changed to better reflect what each function
does.
2020-10-08 13:20:58 +02:00
Jerzy Kasenberg
33a5081bd1 DA146xx: Add support for ISO endpoints
Few changes were needed to have working ISO endpoints.
2020-10-08 13:20:58 +02:00
Jerzy Kasenberg
6615dd9062 DA146xx: 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-08 13:20:58 +02:00
Jerzy Kasenberg
9edf4334c4 DA146xx: Allow receiving of packets larger then 64 bytes
Internal FIFO for each endpoint is limited to 64 bytes.
It is possible to have longer packets if respective FIFO
is read during actual packet transmission.
This change updates receive data path to allow packets (and
endpoint size) larger then 64 bytes.
If DMA is not used yet DMA is setup for reception of big packets.
If DMA is already assigned to some transfer, code enables FIFO level
warning interrupts and tries to read data before FIFO is filled up.
2020-10-08 13:20:58 +02: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
Reinhard Panhuber
f700c08aed Remove CFG_TUD_AUDIO_TX_DMA_RINGBUFFER_SIZE which is not needed any more 2020-10-07 10:57:12 +02:00
PanRe
230c93a641
Merge pull request #3 from hathach/PanRe-uac2-fix-build
Pan re uac2 fix build
2020-10-07 10:19:58 +02: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
hathach
74a1404bea tab -> spaces 2020-10-07 13:36:27 +07:00
hathach
3f54c27afa fix audio_test build 2020-10-07 13:36:03 +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
hathach
d41248900b Merge branch 'uac2' of https://github.com/PanRe/tinyusb into PanRe-uac2 2020-10-06 22:32:22 +07: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
Niklas Hauser
788dcc200d Change CFG_TUSB_CONFIG_FILE mechanism to improve header file scanning 2020-10-03 20:17:53 +02:00
Niklas Hauser
e41d9202b8 Allow overwriting TU_ASSERT etc macros 2020-10-03 20:17:53 +02:00
Niklas Hauser
51fb659533 Use tu_printf instead of printf 2020-10-03 20:17:53 +02:00
Niklas Hauser
78477077b4 Use C++11 static_assert when available 2020-10-03 20:17:36 +02:00
Reinhard Panhuber
2050dc0dc7 Revert #define CFG_TUSB_DEBUG 2 to #define CFG_TUSB_DEBUG 0
Change 1 << 31 to 0x100000000 in audio.h
2020-10-03 09:46:22 +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
Reinhard Panhuber
603ce17696 Change AUDIO_CS_INTERFACE_HEADER to AUDIO_CS_AC_INTERFACE_HEADER 2020-10-01 17:49:30 +02: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
13a9cbde79 Change AUDIO_FUNC_PROTOCOL_CODE_UNDEF for midi in usbd.h 2020-09-29 23:30:35 +02:00
Reinhard Panhuber
da1c3c226b Change AUDIO_PROTOCOL_V1 to AUDIO_FUNC_PROTOCOL_CODE_UNDEF in midi.c.
The USB specification does not define any AUDIO_PROTOCOL_V1!
2020-09-28 22:44:09 +02:00
Reinhard Panhuber
9c837300f1 Fix minor issue.
- Change set_EP0_max_pkt_size() to set_EP0_max_pkt_size(void).
2020-09-28 19:23:38 +02:00
Reinhard Panhuber
529622710c Cleanup for PR. 2020-09-28 18:10:57 +02:00