hathach
31373fd55c
use !tu_fifo_empty() instead of tu_fifo_count()
2021-03-12 12:55:18 +07:00
hathach
4310941daa
Merge branch 'cdc_read' of https://github.com/HiFiPhile/tinyusb into HiFiPhile-cdc_read
2021-03-12 12:49:44 +07:00
HiFiPhile
5caad485f1
Add fifo empty check.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-03-11 20:36:46 +01:00
Reinhard Panhuber
8cb3bd3cd3
Merge remote-tracking branch 'upstream/edpt_ISO_xfer' into edpt_ISO_xfer
2021-03-10 19:33:11 +01:00
Reinhard Panhuber
d5a5a1cab6
Implement audio PCM type I enc./decoding acc. to 2.3.1.5 Audio Streams
...
Extending capabilities of support FIFOs
Removing copy from to FIFO
Adjusting audio examples
Remove peek/read into other FIFO
2021-03-10 19:32:13 +01:00
hathach
794083b647
Merge branch 'master' into edpt_ISO_xfer
2021-03-10 17:10:49 +07:00
HiFiPhile
7fc99a9e11
Call One time tu_fifo_write_n on cdcd_xfer_cb
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-03-10 10:19:45 +01:00
Reinhard Panhuber
7e56f46957
Extend FIFO mutex to use separate write and read mutexes.
...
Adjust all USB drivers using FIFO and mutexes.
2021-03-04 13:52:14 +01:00
hathach
33a29c9e4c
add midi comment
2021-03-04 19:30:08 +07:00
Reinhard Panhuber
7b8a08d2e1
Rename dcd_edpt_iso_xfer() to dcd_edpt_xfer_fifo()
2021-03-02 20:00:39 +01:00
Reinhard Panhuber
fc35b3f72d
Switch back OPT_MCU_DA1469X to use linear buffers
2021-03-02 17:24:58 +01:00
Reinhard Panhuber
8ec99694d2
audio_decive clean up and bootstrapping of linear (formerly evade) buff.
2021-03-01 09:09:15 +01:00
boggyb
55a46a5c3b
Update cdc_device.h
...
Minor api callback change as requested
2021-02-26 11:00:34 +05:30
amit verma
07a04255da
initial break request handling
2021-02-25 23:13:21 +05:30
Reinhard Panhuber
5ebe53f02d
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-02-24 20:54:35 +01:00
hathach
a070626729
add itf argument to hid API to support multiple instances
...
following API signature is changed:
- tud_hid_descriptor_report_cb()
- tud_hid_get_report_cb()
- tud_hid_set_report_cb()
- tud_hid_boot_mode_cb()
- tud_hid_set_idle_cb()
2021-02-24 14:27:20 +07:00
Reinhard Panhuber
e223d46033
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
src/osal/osal_none.h
2021-02-23 19:47:57 +01:00
Reinhard Panhuber
313dd1439d
Implement dcd_edpt_iso_xfer() for dcd_da146xx.c BUT WITHOUT DMA SUPPORT
2021-02-23 19:41:21 +01:00
hathach
5108d76136
host msc: call read_capacity as part of enumeration
...
- add tuh_msc_get_block_count(), tuh_msc_get_block_size()
- rename tuh_msc_mounted_cb/tuh_msc_unmounted_cb to
tuh_msc_mount_cb/tuh_msc_unmount_cb to match device stack naming
- change tuh_msc_is_busy() to tuh_msc_ready()
- add CFG_TUH_MSC_MAXLUN (default to 4) to hold lun capacities
- add host msc configured to for state check.
2021-02-23 19:41:11 +07:00
hathach
386a386345
clean up host msc
2021-02-23 12:20:30 +07:00
Ha Thach
cea31c346d
Merge pull request #575 from nwlab/yaa/msc_read
...
Added MSC read10 and write10 function
2021-02-23 11:51:48 +07:00
hathach
ade4bf74ea
update function comment
2021-02-23 11:38:15 +07:00
hathach
f2ed2ae09a
rename tuh_msc_scsi_inquiry() to tuh_msc_inquiry()
2021-02-23 11:14:19 +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
hathach
aa85099171
fix tud_midi_write24 typo
...
rename jack_id to cable_num in function argument
2021-02-19 10:51:47 +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
Reinhard Panhuber
c098da9803
Implement left and right justifications for 24 to 32 bit PCM encoding
2021-02-18 19:25:08 +01:00
Reinhard Panhuber
681cfd0bf2
Correct for wrong pointer type in audio_device.c
2021-02-18 11:12:16 +01:00
Reinhard Panhuber
53a796a92e
Fix wrong pointer type.
2021-02-17 22:29:40 +01:00
Reinhard Panhuber
eee47493a3
Fix bug in evasion buffer list
2021-02-17 21:59:32 +01:00
Reinhard Panhuber
e407ce463d
Add SAMD MCUs to buffer evasion list
2021-02-17 21:47:01 +01:00
Reinhard Panhuber
189b357b54
Implement an evasion linear buffer for MCUs not capable for EP FIFO
...
Also MCUs using DMAs are within this list, however, these can use an EP
FIFO. There is just no time for implementation
2021-02-17 21:42:44 +01: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
Reinhard Panhuber
9e2a1d2e6a
Fix CFG_TUD_AUDIO_EP_IN/OUT_SW_BUFFER_SIZE to be defined anyway
2021-02-12 18:31:54 +01:00
Reinhard Panhuber
cdf600048f
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-02-12 18:05:20 +01:00
Reinhard Panhuber
185414721f
Formating
2021-02-12 18:04:45 +01:00
Reinhard Panhuber
a9fd0a454a
Complete redesign of audio driver.
2021-02-12 16:28:41 +01: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
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
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
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
Reinhard Panhuber
84406f1654
Rework audio driver
2021-01-31 19:08:23 +01:00
Alexander Golovanov
2a34be2eb0
A CDC-like blocking behaviour
2021-01-30 04:11:08 +03:00
Michael Himing
c4f7ea09f1
Fix midi sysex sending bug
2021-01-28 20:31:11 +11:00
Ha Thach
1e134cbb31
Merge branch 'master' into pico
2021-01-21 16:35:13 +07:00
graham sanderson
e0aa405d19
RP2040 support
2021-01-19 19:52:07 -06:00
Reinhard Panhuber
56edc2b261
Change names from edpt_ISO_xfer to edpt_iso_xfer
2021-01-19 10:50:19 +01:00
Reinhard Panhuber
3a3ada0c57
Implement the usage of usbd_edpt_ISO_xfer()
2021-01-18 17:07:15 +01:00
hathach
29f84b1602
change default CFG_TUD_HID_EP_BUFSIZE from 16 to 64
2021-01-07 11:58:05 +07:00