Move defines and checks to expected places

This commit is contained in:
Sam Chesney
2016-12-07 11:41:05 +00:00
parent 5e09197c15
commit 4b9e323593
3 changed files with 41 additions and 26 deletions

View File

@@ -72,4 +72,10 @@ Warnings relating to configuration defines located in this XC source file rather
#error NUM_USB_CHAN_IN_FS expected to be less than or equal to NUM_USB_CHAN_IN
#endif
#if (NUM_USB_CHAN_IN && (NUM_USB_CHAN_IN < (I2S_CHANS_ADC + NUM_PDM_MICS)))
#error Not enough USB input channels to support number of I2S and PDM inputs
#endif
#if (NUM_USB_CHAN_IN && (NUM_USB_CHAN_IN < (NUM_PDM_MICS + PDM_MIC_INDEX)))
#error PDM mic inputs mapping exceeds bounds of USB input channel
#endif