Reinhard Panhuber
8904874f76
Exclude #include "osal/osal.h" for OPT_OS_NONE
2021-02-18 20:52:57 +01:00
Reinhard Panhuber
31bf73517e
Add #include "osal/osal.h" in tu_fifo.h
2021-02-18 20:16:57 +01: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
6cb9a6ebb1
Add (void *) for pointer cast.
2021-02-17 23:04:19 +01:00
Reinhard Panhuber
d8481ac7e4
Fix wrong pointer call in dcd_samg.c
2021-02-17 22:52:59 +01:00
Reinhard Panhuber
666e0fad35
Fix wrong tu_fifo_read_n() call in dcd_stm32_fsdev.c
2021-02-17 22:50:49 +01:00
Reinhard Panhuber
402005c9e0
Fix missing pointer operator in dcd_nuc505.c
2021-02-17 22:49:10 +01:00
Reinhard Panhuber
94bf4f54da
Fix missing FIFO definitions
2021-02-17 22:29:51 +01:00
Reinhard Panhuber
53a796a92e
Fix wrong pointer type.
2021-02-17 22:29:40 +01:00
Reinhard Panhuber
ae20d11124
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
2021-02-17 22:08:21 +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
Reinhard Panhuber
2d7b61972c
Implement dcd_edpt_iso_xfer() for dcd_stm32_fsdev
...
Implemented a special copy strategy to copy directly from the FIFO. This
function, however, is untested and should be regarded as unreliable
until somebody was able to test it
2021-02-17 20:46:31 +01:00
Reinhard Panhuber
c87357c025
Improve tu_fifo capabilites
...
Added tu_fifo_get_linear_write_info(), tu_fifo_backward_write_pointer(),
and tu_fifo_backward_read_pointer()
2021-02-17 20:44:26 +01: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
Reinhard Panhuber
a5d7b6266d
Implement dcd_edpt_iso_xfer() for msp430
2021-02-14 14:05:15 +01:00
Reinhard Panhuber
893f997dcb
Change FIFO use indication to ff == NULL to avoid future errors.
...
This way people don't need to pay attention for the buffer pointer
2021-02-14 09:25:34 +01:00
Reinhard Panhuber
b634b5958b
Implement dcd_edpt_iso_xfer() for INTERRUPT driven dcd_nuc505
2021-02-13 21:00:55 +01:00
Reinhard Panhuber
0c3dc8f99b
Implement dcd_edpt_iso_xfer() for dcd_nuc121.c
2021-02-13 17:44:59 +01:00
Reinhard Panhuber
126e46e38a
Fix not increment xfer->buffer if xfer->buffer == NULL in dcd_samg.c
2021-02-13 17:37:13 +01:00
Reinhard Panhuber
e681678402
Implement dcd_edpt_iso_xfer() for dcd_nuc120.c
2021-02-13 17:06:27 +01:00
Reinhard Panhuber
7ab389db21
Implement dcd_edpt_iso_xfer() for dcd_samg.c. NOTE: ISO EP not supported
2021-02-13 16:36:32 +01:00
Reinhard Panhuber
59d6ed9ea4
Implement dcd_edpt_iso_xfer() for dcd_esp32s2.c
2021-02-13 12:13:10 +01: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
3df61d6755
Fix a ; in #define definition
2021-02-12 18:25:01 +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
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