I2_CHANS_PER_FRAME default define moved from audio.xc to devicedefines.xc

This commit is contained in:
Ross Owen
2014-12-02 14:22:11 +00:00
parent 7ac0e87e0b
commit 4ab8cff9a4
2 changed files with 14 additions and 7 deletions

View File

@@ -101,6 +101,20 @@
#endif
#endif
/**
* @brief Channels per I2S frame. *
*
* Default: 2 i.e standard stereo I2S (8 if using TDM i.e. I2S_MODE_TDM).
*
**/
#ifndef I2S_CHANS_PER_FRAME
#ifdef I2S_MODE_TDM
#define I2S_CHANS_PER_FRAME 8
#else
#define I2S_CHANS_PER_FRAME 2
#endif
#endif
/**
* @brief Max supported sample frequency for device (Hz). Default: 192000
*/