Reinhard Panhuber
930eca0748
Add 4 channel microphone audio example using software encoding
2021-04-08 19:56:26 +02:00
Jeremiah McCarthy
ae851bba31
Resolve gcc warnings for no parameter functions
2021-04-07 17:15:26 -04:00
Jeremiah McCarthy
2e2dc7bdc5
Revise per initial comments
...
Returns the RT driver to the function state of previous iteration, which
did not support the will_detach. Behavior should be fine without this
feature. This removes much of the added bloat to track state, and
handle requests in the APP_DETACH state which is no longer required.
Removes the optional bloat added to the RT driver, such as responding to
GETSTATE requests.
Fixes the DFU Mode to extract the attr bits from the functional
descriptor when opened.
Fixes some incorrect bitwise if checks.
Also, updates some naming of functions to be consistent with the rest of
the library.
2021-04-07 17:05:04 -04:00
Reinhard Panhuber
8eacdffebd
Optimize encode/decode - refactor unnecessary repetitive division
2021-04-07 20:07:28 +02:00
hathach
d9a0cc9e9f
more cleanup
2021-04-07 16:50:45 +07:00
hathach
893919a848
remove tu_fifo_backward_write/read_pointer API
...
since it is illegal from fifo perspective
2021-04-07 13:27:28 +07:00
hathach
2468f9e26d
more _ff_pull/push clean up
2021-04-07 13:15:25 +07:00
hathach
9042e973d3
clean up _ff_push_n
2021-04-07 12:52:57 +07:00
hathach
d6737fb5fe
use tu_unaligned_write32() for _ff_push_const_addr
2021-04-07 12:34:00 +07:00
hathach
d0fa4d5189
rename
2021-04-07 12:24:24 +07:00
hathach
8ac156622d
fix cast-align warning
2021-04-07 00:38:12 +07:00
hathach
a3c06aa7bc
more clean up for _ff_pull_const_addr_in_full_words()
2021-04-06 23:39:39 +07:00
hathach
d82ee2f8c0
refactor _ff_pull_n() with const addr
2021-04-06 23:12:04 +07:00
hathach
58bab86d79
minor clean up
2021-04-06 21:09:23 +07:00
hathach
c5db2282ad
Merge branch 'master' of github.com:hathach/tinyusb into edpt_ISO_xfer
2021-04-06 19:35:01 +07:00
Ha Thach
1d20c84798
add tu_unaligned_read32/write32 ( #772 )
...
* add tu_unaligned_read32/write32
* added tu_unaligned_read16/write16
* add TU_ATTR_ALWAYS_INLINE, add to most of simple inline function
2021-04-06 19:32:01 +07:00
hathach
8b79040c38
code format
2021-04-06 15:34:50 +07:00
Jeremiah McCarthy
c39b7b8177
Add DFU runtime and mode "class"
...
With the runtime and mode portions in separate classes, a single
application should only be building with one or the other enabled. In
some applications both might be desired at build time.
The CFG_TUD_DFU_RUNTIME_AND_MODE option creates a DFU class, which asks
the application which mode to initialize to. This allows a runtime
change between RT and DFU mode, by just reinitializing tusb.
2021-04-05 17:52:33 -04:00
Jeremiah McCarthy
bc2cb99780
Remove unreachable callback
2021-04-05 17:06:27 -04:00
Jeremiah McCarthy
fdc91f8d2c
Fix bug during initialization of DFU Mode
2021-04-05 16:48:09 -04:00
Jeremiah McCarthy
c5b8ef1529
Separate DFU RT and Mode. Untested
2021-04-05 16:32:58 -04:00
hathach
68687ed0f4
fix build
2021-04-06 01:16:51 +07:00
hathach
7ab8da949e
audio driver only use USE_LINEAR_BUFFER = 0 for stm32 synopsys driver
2021-04-06 01:07:32 +07:00
hathach
3acf0c2d73
revert dcd_edpt_xfer_fifo() implementation for esp32s2
2021-04-06 01:00:00 +07:00
hathach
69ad092fce
revert dcd_edpt_xfer_fifo() implementation for nuc120 121
2021-04-06 00:13:12 +07:00
hathach
49b2d8f26c
revert dcd_edpt_xfer_fifo() implementation for msp430
2021-04-06 00:07:17 +07:00
Jeremiah McCarthy
164d3e82e3
Fix incorrect DNLOAD request len passed to app
...
Fixes bug where the app callback was getting the length of the status
request transfer rather than the length of the data stage payload.
TODO: Right now this returns the expected length, when it really should
be returning the transfer length.
2021-04-05 11:13:42 -04:00
hathach
8d2dfe872c
revert dcd_edpt_xfer_fifo() implementation for stm32_fsdev
2021-04-05 19:19:49 +07:00
hathach
bebe2f0bbf
revert dcd_edpt_xfer_fifo() implementation for nuc505
2021-04-04 22:50:26 +07:00
hathach
586a46c7d3
revert dcd_edpt_xfer_fifo() implementation for samg
...
samg fifo is accessed byte by byte (although the register is 32 bit).
2021-04-04 21:33:19 +07:00
Reinhard Panhuber
1ac9e7e3a7
Fix wrong read mutexes in audio_device.c
2021-04-03 18:22:19 +02:00
Reinhard Panhuber
e0cb415954
Fix uac2_headset include hassle be declaring value by hand
2021-04-03 18:07:18 +02:00
Reinhard Panhuber
b3e548d2d6
Fix uac2_headset
2021-04-03 17:57:23 +02:00
Reinhard Panhuber
f6ba58e370
Fix wrong pointer type in audio_device.c
2021-04-03 17:50:30 +02:00
Reinhard Panhuber
6f2f5320f2
Fix uac2_headset example
2021-04-03 16:58:05 +02:00
Reinhard Panhuber
4af5189492
Fix potential bug in support FIFO sizes
2021-04-03 16:53:29 +02:00
Reinhard Panhuber
9559796337
Fix typo in uac2_headset
2021-04-03 16:29:44 +02:00
Reinhard Panhuber
c57369ee83
Fix old defines in uac2_headset
2021-04-03 16:22:35 +02:00
Reinhard Panhuber
475badd087
Add missing #defines in uac2_headset example
2021-04-03 16:10:46 +02:00
Reinhard Panhuber
5eb893011c
Fix #define error in uac2_headset
2021-04-03 15:59:42 +02:00
Reinhard Panhuber
fc65f39ff2
Fix error in #defines in uac2_headset
2021-04-03 15:58:41 +02:00
Reinhard Panhuber
fcb97bd4e9
Fix #define in audio_test
2021-04-03 15:48:09 +02:00
Reinhard Panhuber
ec6b240de2
Fix #define error in audio_device.h
2021-04-03 15:44:44 +02:00
Reinhard Panhuber
6236effb14
Fix #define error in audio_device.h
2021-04-03 15:29:39 +02:00
Reinhard Panhuber
8b90c08b35
Fix #define errors in audio_device.h
2021-04-03 15:24:38 +02:00
Reinhard Panhuber
40b2ffcb52
Delete old settings
2021-04-03 10:09:40 +02:00
Reinhard Panhuber
a1efd41649
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-04-03 09:50:08 +02:00
Reinhard Panhuber
9b2ddd9cc6
Generalize audio driver for 3 audio functions plus a lot more.
...
- Audio format and parameters are parsed from descriptors thus user no
longer needs to give them explicitely
- Tested for 4 channel software type I PCM encoding with 16 bit with 1
channel per FIFO and 2 channels per FIFO (this is I2S specific)
2021-04-03 09:49:27 +02:00
Ha Thach
ab4d30fd6b
update readme and contributors for renesas rx63n and silabs efm32gg12 port ( #767 )
...
* update readme and contributors for renesas rx63n and silabs efm32gg12 port
also add some doc for changelog
* typo
* update more boards
* more typo
* typo 3
2021-04-02 16:32:48 +07:00
Ha Thach
eb92986b88
Merge pull request #766 from hathach/enhance-midi
...
Enhance midi
2021-04-02 15:47:40 +07:00