Moved I2S_UPSAMPLE_FACTOR_OUT default to devicedefines.h from the

top of audio_io.xc.
This commit is contained in:
louis
2017-01-27 10:29:43 +00:00
parent 195f1a3611
commit 2a28119513
2 changed files with 13 additions and 4 deletions

View File

@@ -134,6 +134,19 @@
#endif
#endif
/**
* @brief Outgoing I2S (host to device) channels can be upsampled by a factor of 3.
*
* Default: 1 i.e. upsampling is disabled.
*/
#ifndef I2S_UPSAMPLE_FACTOR_OUT
#define I2S_UPSAMPLE_FACTOR_OUT (1)
#else
#if (I2S_UPSAMPLE_FACTOR_OUT != 3) && (I2S_UPSAMPLE_FACTOR_OUT != 1)
#error Unsupported I2S input upsampling configuration
#endif
#endif
/**
* @brief Only downsample one channel per input I2S frame.
*