I2S_MODE_TDM handling

This commit is contained in:
xross
2018-01-17 14:25:27 +00:00
parent 2e35d2804d
commit fe93288b1f

View File

@@ -84,6 +84,12 @@
#define DSD_CHANS_DAC 0
#endif
/* TODO not required */
#ifndef I2S_MODE_TDM
#define I2S_MODE_TDM 0
#endif
/**
* @brief Channels per I2S frame. *
*
@@ -91,7 +97,7 @@
*
**/
#ifndef I2S_CHANS_PER_FRAME
#ifdef I2S_MODE_TDM
#if (I2S_MODE_TDM == 1)
#define I2S_CHANS_PER_FRAME 8
#else
#define I2S_CHANS_PER_FRAME 2