Added XUA_I2S_N_BITS (was N_BITS_I2S) and tidied up usage of define

This commit is contained in:
Ross Owen
2023-06-05 14:24:59 +01:00
parent 5d886487fa
commit b27514fd9a
3 changed files with 94 additions and 116 deletions

View File

@@ -193,6 +193,16 @@
#define I2S_DOWNSAMPLE_CHANS_IN I2S_CHANS_ADC
#endif
/**
* @Brief Number of bits per channel for I2S/TDM
*
* Default: 32 bits
*/
#ifndef XUA_I2S_N_BITS
#define XUA_I2S_N_BITS (32)
#endif
/**
* @brief Max supported sample frequency for device (Hz). Default: 192000
*/