mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Make definition of CFG_TUD_AUDIO_CTRL_BUF_SIZE mandatory
This commit is contained in:
parent
fdb156a3bb
commit
141db1278a
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
// Size of control buffer used to receive and send control messages via EP0 - has to be big enough to hold your biggest request structure e.g. range requests with multiple intervals defined or cluster descriptors
|
// Size of control buffer used to receive and send control messages via EP0 - has to be big enough to hold your biggest request structure e.g. range requests with multiple intervals defined or cluster descriptors
|
||||||
#ifndef CFG_TUD_AUDIO_CTRL_BUF_SIZE
|
#ifndef CFG_TUD_AUDIO_CTRL_BUF_SIZE
|
||||||
#define CFG_TUD_AUDIO_CTRL_BUF_SIZE 64
|
#error You must define an audio class control request buffer size!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Use of TX/RX FIFOs - If sizes are not zero, audio.c implements FIFOs for RX and TX (whatever defined).
|
// Use of TX/RX FIFOs - If sizes are not zero, audio.c implements FIFOs for RX and TX (whatever defined).
|
||||||
@ -79,7 +79,7 @@
|
|||||||
#define CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN 0 // Audio interrupt control
|
#define CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN 0 // Audio interrupt control
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN > 0
|
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
|
||||||
#ifndef CFG_TUD_AUDIO_INT_CTR_BUFSIZE
|
#ifndef CFG_TUD_AUDIO_INT_CTR_BUFSIZE
|
||||||
#define CFG_TUD_AUDIO_INT_CTR_BUFSIZE 6 // Buffer size of audio control interrupt EP - 6 Bytes according to UAC 2 specification (p. 74)
|
#define CFG_TUD_AUDIO_INT_CTR_BUFSIZE 6 // Buffer size of audio control interrupt EP - 6 Bytes according to UAC 2 specification (p. 74)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user