fix audio_test build
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include "device/usbd.h"
|
||||
|
||||
#include "audio.h"
|
||||
#include "tusb_config.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Class Driver Configuration
|
||||
@@ -59,6 +58,10 @@
|
||||
#define CFG_TUD_AUDIO_TX_FIFO_SIZE 0 // Buffer size per channel
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUD_AUDIO_TX_DMA_RINGBUFFER_SIZE
|
||||
#define CFG_TUD_AUDIO_TX_DMA_RINGBUFFER_SIZE 0
|
||||
#endif
|
||||
|
||||
#if CFG_TUD_AUDIO_TX_FIFO_SIZE && CFG_TUD_AUDIO_TX_DMA_RINGBUFFER_SIZE
|
||||
#error TX_FIFOs and TX_DMA_RINGBUFFER can not be used simultaneously!
|
||||
#endif
|
||||
@@ -193,6 +196,10 @@ uint16_t tud_audio_n_write_ep_in_buffer(uint8_t itf, const void * data, uint16_t
|
||||
#endif
|
||||
*/
|
||||
|
||||
#ifndef CFG_TUD_AUDIO_TX_FIFO_COUNT
|
||||
#define CFG_TUD_AUDIO_TX_FIFO_COUNT 1
|
||||
#endif
|
||||
|
||||
#if CFG_TUD_AUDIO_EPSIZE_IN && CFG_TUD_AUDIO_TX_FIFO_SIZE
|
||||
#if CFG_TUD_AUDIO_TX_FIFO_COUNT > 1
|
||||
uint16_t tud_audio_n_write (uint8_t itf, uint8_t channelId, const void * data, uint16_t len);
|
||||
|
||||
Reference in New Issue
Block a user