MAX_FREQ_FS guarded by ifndef so can be over-ridden

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

View File

@@ -1331,6 +1331,7 @@ enum USBEndpointNumber_Out
#endif
/* Apply sample-rate restrictions to full-speed operation */
#ifndef MAX_FREQ_FS
#if (NUM_USB_CHAN_OUT_FS > 0) && (NUM_USB_CHAN_IN_FS > 0)
#if(MAX_FREQ > 48000)
#define MAX_FREQ_FS 48000
@@ -1344,9 +1345,12 @@ enum USBEndpointNumber_Out
#define MAX_FREQ_FS MAX_FREQ
#endif
#endif
#endif
#define MIN_FREQ_FS MIN_FREQ
/* Setup DEFAULT_MCLK_FREQ based on MCLK_ and DEFAULT_FREQ defines */
#if ((MCLK_441 % DEFAULT_FREQ) == 0)
#define DEFAULT_MCLK_FREQ MCLK_441