/** * @file * @ingroup Audio * @brief I2S Driver * * This uses the SPI hardware and DMA to pull I2S words (one channel only) * into a circular buffer. * * @date 2018-04-21 * @author Chris Pflieger */ #ifndef I2S_H_ #define I2S_H_ #include "stdinc.h" #include "cic_filter.h" //! In words, keep as a power of two (I think). #define I2S_BUFFER_SIZE (64U) //! 640000 is the slowest this will go. #define PDM_BITRATE (CIC_DECIMATION_RATIO * AUDIO_SAMPLE_RATE_HERTZ) /** * Start the non-stop I2S process. * */ void i2s_init(void); #endif /* I2S_H_ */