Fix potential bug in support FIFO sizes

This commit is contained in:
Reinhard Panhuber
2021-04-03 16:53:29 +02:00
parent 9559796337
commit 4af5189492
3 changed files with 33 additions and 3 deletions

View File

@@ -94,8 +94,6 @@ extern "C" {
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
#define CFG_TUD_AUDIO_OUT_PATH (CFG_TUD_AUDIO)
#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN TUD_AUDIO_HEADSET_STEREO_DESC_LEN
// Audio format type I specifications
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
#define CFG_TUD_AUDIO_FUNC_1_N_BYTES_PER_SAMPLE_TX 2

View File

@@ -87,6 +87,8 @@ uint8_t const * tud_descriptor_device_cb(void)
#define EPNUM_AUDIO 0x01
#endif
#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN TUD_AUDIO_HEADSET_STEREO_DESC_LEN
uint8_t const desc_configuration[] =
{
// Interface count, string index, total length, attribute, power in mA