From 60d8a9472033cd0c86cebf9470ba779e6d8ff557 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 23 Jan 2014 12:37:48 +0000 Subject: [PATCH] Added checks and build errors for FS behaviour --- module_usb_audio/devicedefines.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module_usb_audio/devicedefines.h b/module_usb_audio/devicedefines.h index 8eebcfed..f5130951 100644 --- a/module_usb_audio/devicedefines.h +++ b/module_usb_audio/devicedefines.h @@ -162,6 +162,14 @@ #undef FULL_SPEED_AUDIO_2 #endif +#if defined(FULL_SPEED_AUDIO_2) && defined(AUDIO_CLASS_FALLBACK) +#error FULL_SPEED_AUDIO_2 and AUDIO_CLASS_FALLBACK enablaed! +#endif + +#if (AUDIO_CLASS == 1) && defined(FULL_SPEED_AUDIO_2) +#error AUDIO_CLASS set to 1 and FULL_SPEED_AUDIO_2 enabled! +#endif + /* Number of IS2 chans to DAC */ #ifndef I2S_CHANS_DAC #error I2S_CHANS_DAC not defined