Try to resolve include hassle in uac2_headset
This commit is contained in:
parent
2e65d1543f
commit
fa0d71f2cf
|
@ -35,6 +35,8 @@ extern "C" {
|
||||||
// COMMON CONFIGURATION
|
// COMMON CONFIGURATION
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "usb_descriptors.h"
|
||||||
|
|
||||||
// defined by compiler flags for flexibility
|
// defined by compiler flags for flexibility
|
||||||
#ifndef CFG_TUSB_MCU
|
#ifndef CFG_TUSB_MCU
|
||||||
#error CFG_TUSB_MCU must be defined
|
#error CFG_TUSB_MCU must be defined
|
||||||
|
@ -94,7 +96,8 @@ extern "C" {
|
||||||
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
|
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
|
||||||
#define CFG_TUD_AUDIO_OUT_PATH (CFG_TUD_AUDIO)
|
#define CFG_TUD_AUDIO_OUT_PATH (CFG_TUD_AUDIO)
|
||||||
|
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN 220 // This equals TUD_AUDIO_HEADSET_STEREO_DESC_LEN, however, including it from usb_descriptors.h is not possible due to some strange include hassle
|
//#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN 220 // This equals TUD_AUDIO_HEADSET_STEREO_DESC_LEN, however, including it from usb_descriptors.h is not possible due to some strange include hassle
|
||||||
|
#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN TUD_AUDIO_HEADSET_STEREO_DESC_LEN
|
||||||
|
|
||||||
// Audio format type I specifications
|
// Audio format type I specifications
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef _USB_DESCRIPTORS_H_
|
#ifndef _USB_DESCRIPTORS_H_
|
||||||
#define _USB_DESCRIPTORS_H_
|
#define _USB_DESCRIPTORS_H_
|
||||||
|
|
||||||
#include "tusb.h"
|
// #include "tusb.h"
|
||||||
|
|
||||||
// Unit numbers are arbitrary selected
|
// Unit numbers are arbitrary selected
|
||||||
#define UAC2_ENTITY_CLOCK 0x04
|
#define UAC2_ENTITY_CLOCK 0x04
|
||||||
|
|
Loading…
Reference in New Issue