Fix CFG_TUD_AUDIO_EP_IN/OUT_SW_BUFFER_SIZE to be defined anyway
This commit is contained in:
@@ -64,21 +64,25 @@
|
|||||||
#ifndef CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE
|
#ifndef CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE
|
||||||
#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_IN // TX
|
#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_IN // TX
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CFG_TUD_AUDIO_EPSIZE_OUT
|
#if CFG_TUD_AUDIO_EPSIZE_OUT
|
||||||
#ifndef CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE
|
#ifndef CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE
|
||||||
#define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_OUT // RX
|
#define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_OUT // RX
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// General information of number of TX and/or RX channels - is used in case support FIFOs (see below) are used and can be used for descriptor definitions
|
// General information of number of TX and/or RX channels - is used in case support FIFOs (see below) are used and can be used for descriptor definitions
|
||||||
#ifndef CFG_TUD_AUDIO_N_CHANNELS_TX
|
#ifndef CFG_TUD_AUDIO_N_CHANNELS_TX
|
||||||
#define CFG_TUD_AUDIO_N_CHANNELS_TX 0
|
#define CFG_TUD_AUDIO_N_CHANNELS_TX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CFG_TUD_AUDIO_N_CHANNELS_RX
|
#ifndef CFG_TUD_AUDIO_N_CHANNELS_RX
|
||||||
#define CFG_TUD_AUDIO_N_CHANNELS_RX 0
|
#define CFG_TUD_AUDIO_N_CHANNELS_RX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Use of TX/RX support FIFOs
|
// Use of TX/RX support FIFOs
|
||||||
|
Reference in New Issue
Block a user