3907 Commits

Author SHA1 Message Date
Jacob Potter
c87ed8eff1 Allow use of internal FS PHY on OTG_HS interface
Some ST parts (like STM32F74xxx / STM32F75xxx) allow the USB_OTG_HS core to be used with
either an external high-speed ULPI PHY or an internal full-speed-only (12mbps) PHY. Currently
the code assumes than an ULPI PHY is used unless the chip has an internal high-speed PHY
(`#if defined(USB_HS_PHYC)`), with no provision to use the internal FS PHY.
2020-10-18 17:01:17 -06:00
Ha Thach
43cb5fabfd
Merge pull request #538 from kasjer/kasjer/uac2
audio: Add headset example
2020-10-16 22:08:07 +07:00
Jerzy Kasenberg
a5581b10df audio: Add headset example
This example code creates USB Audio 2.0 headset device.
Device has two audio interfaces first stereo speaker
with 48kHz stereo stream.
Second interface for microphone with 48kHz mono stream.

This example can be used to start working on audio device.
It can be also used to verify ISO endpoints for boards.

Speaker adaptive clock (bound to SOF).
Microphone for now has asynchronous clock.

Volume and mute control while present are not used for data stream
modification.
2020-10-16 08:52:26 +02:00
Ha Thach
9aba24343c
Merge pull request #539 from majbthrd/nettweaks
net_lwip_webserver: efficiency tweaks
2020-10-16 10:05:09 +07:00
Jerzy Kasenberg
8669fd7383 audio: Add two channel feature unit descriptor
Feature unit descriptor size depends on number of channels.
So far only single channel feature unit was present.
This change adds feature unit descriptor for two channels.
2020-10-15 15:37:40 +02:00
hathach
4e4aa26fb6 add samd21 xplained pro to boards.md doc 2020-10-15 11:57:30 +07:00
Ha Thach
723070bf88
Merge pull request #534 from majbthrd/atsamd21_xpro
bsp: add ATSAMD21-XPRO eval board
2020-10-15 11:53:32 +07:00
Peter Lawrence
56277ce216 net_lwip_webserver: efficiency tweaks 2020-10-14 20:26:40 -05:00
Peter Lawrence
042ca2375e bsp: atsamd21_xpro: removed no longer needed workaround 2020-10-14 09:15:26 -05:00
Ha Thach
41083cb67a
Merge pull request #536 from kasjer/kasjer/fix-osal-queue-definition
osal_none: Fix queue definition
2020-10-13 23:04:33 +07:00
Jerzy Kasenberg
db70a35044 osal_none: Fix queue definition
OSAL_QUEUE_DEF was not updated while FIFO was changed
to use unmasked pointers.

Two fields that are crucial to new functionality were left
uninitialized resulting in FIFO slowing down in time.
2020-10-13 16:34:44 +02:00
hathach
3623f578a4 more clean up 2020-10-13 14:11:17 +07:00
hathach
d92d1a03ca clean up 2020-10-13 13:45:22 +07:00
hathach
437ccac696 implement tuh_msc_scsi_inquiry() / tuh_msc_read_capacity() / tuh_msc_get_maxlun() 2020-10-13 13:23:33 +07:00
hathach
9c07a2a4e2 rework msc host
- msc host enum is now async
- implement async tuh_msc_scsi_command() / tuh_msc_request_sense() /
tuh_msc_test_unit_ready()
2020-10-13 00:07:51 +07:00
hathach
87b989e8b4 add usbh_edpt_claim/release
implement USBH_EVENT_FUNC_CALL
2020-10-12 00:35:45 +07:00
Peter Lawrence
e10358bfab bsp: add ATSAMD21-XPRO eval board 2020-10-11 12:06:15 -05:00
hathach
b5d4c8185d Merge branch 'master' into host-async-control 2020-10-11 16:22:12 +07:00
Ha Thach
6ce5395947
Merge pull request #525 from kasjer/kasjer/da1469x-iso
da1469x iso support
2020-10-11 16:12:20 +07:00
Ha Thach
80c509a0f3
Merge pull request #520 from salkinium/feature/misc_enhancements
STM32F3 IRQ remap option and some minor improvements
2020-10-11 14:55:06 +07:00
Niklas Hauser
7fda95f508 Remap USB IRQs on STM32F303 BSP 2020-10-11 09:27:43 +02:00
Ha Thach
736a6ff09a
Merge pull request #535 from hathach/update-microchip-driver
update microchip driver
2020-10-11 13:48:07 +07:00
hathach
b8e7e2b7c9 update microchip driver
also skip audio_test for same5x for now due to assert() macro conflict
2020-10-11 13:33:06 +07:00
Ha Thach
b8dcc90f2e
Merge pull request #533 from majbthrd/netsmartphone
net_lwip_webserver: tweak main.c comments with smartphone suggestions
2020-10-11 12:56:47 +07:00
Peter Lawrence
35fae201fb net_lwip_webserver: tweak main.c comments with smartphone suggestions 2020-10-10 16:49:45 -05:00
Ha Thach
762b390433
Merge pull request #521 from PanRe/uac2
Uac2
2020-10-10 14:33:42 +07:00
Niklas Hauser
f914e48d25 Dynamically check STM32F3 IRQ remap option 2020-10-10 05:02:37 +02:00
Reinhard Panhuber
a85c4ee11d Fix unused parameter in audio test. 2020-10-09 21:59:52 +02:00
Reinhard Panhuber
14ff7313ee Fix minor issue in audio example. 2020-10-09 20:36:35 +02:00
Reinhard Panhuber
63f18cef19 Extend example s.t. a saw tooth is sent. 2020-10-09 20:15:57 +02:00
Reinhard Panhuber
032e84c9be Revert dcd_alloc_mem_for_conf() but keep changes from @kasjer for ISO EP
Add tud_audio_set_itf_close_EP_cb()
2020-10-09 19:50:05 +02:00
Ha Thach
8a07b9b9c0
Merge pull request #532 from hathach/house-keeping
House keeping
2020-10-09 21:25:17 +07:00
hathach
3fd38ddf04 fix ci build 2020-10-09 21:10:59 +07:00
hathach
8cf1ed6e4e try GITHUB_PATH for ci 2020-10-09 21:01:52 +07:00
hathach
8ba0c362cc update tud_hid_boot_mode_cb/tud_hid_set_idle_cb support mul interfaces
also clean up code
2020-10-09 20:51:20 +07:00
hathach
13abcb953f rename multiple hid callback 2020-10-09 20:24:10 +07:00
hathach
2e464c5015 clean up example 2020-10-09 13:57:23 +07:00
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
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