diff --git a/module_usb_audio/warnings.xc b/module_usb_audio/warnings.xc index 6617ab42..59acf5cf 100644 --- a/module_usb_audio/warnings.xc +++ b/module_usb_audio/warnings.xc @@ -1,5 +1,9 @@ -/* Warnings relating to defines have been moved to this XC file to avoid multiple warnings being issued from the devicedefines.h header file */ +/* +Warnings relating to configuration defines located in this XC source file rather than the devicedefines.h header file in order to avoid multiple warnings being issued when the devicedefines.h header file is included in multiple files. +*/ + +#include "customdefines.h" #ifndef DEFAULT_FREQ #warning DEFAULT_FREQ not defined. Using MIN_FREQ @@ -34,7 +38,7 @@ #endif #ifndef BCD_DEVICE -#warning BCD_DEVICE not defined. Using 0x0620 +#warning BCD_DEVICE not defined. Using XMOS release version number #endif #if (AUDIO_CLASS==1) || defined(AUDIO_CLASS_FALLBACK) @@ -52,6 +56,6 @@ #endif #ifndef AUDIO_CLASS_FALLBACK -#warning AUDIO_CLASS_FALLBACK not defined, using 0 +#warning AUDIO_CLASS_FALLBACK not defined, using 0 (i.e. disabled) #endif