Added an error for MIN_FREQ > MAX_FREQ

This commit is contained in:
Ross Owen
2015-11-25 19:26:25 +00:00
parent d9c54be4b9
commit 16d527de04

View File

@@ -1309,7 +1309,9 @@ enum USBEndpointNumber_Out
#define STREAM_FORMAT_INPUT_SUBSLOT_2_USED 0
#endif
#if MAX_FREQ < MIN_FREQ
#error MAX_FREQ should be >= MIN_FREQ!!
#endif
/* For Audio Class 1.0 and Full-speed Audio 2.0 we default having at most 2 channels */
#ifndef NUM_USB_CHAN_OUT_FS