Change to new CODEC_MASTER define

This commit is contained in:
Ross Owen
2012-09-17 15:29:28 +01:00
parent db9e2bc353
commit e18e9f060f

View File

@@ -13,7 +13,7 @@ extern buffered in port:32 p_i2s_adc[I2S_WIRES_ADC];
#endif #endif
#if (I2S_CHANS_DAC != 0) || (I2S_CHANS_ADC != 0) #if (I2S_CHANS_DAC != 0) || (I2S_CHANS_ADC != 0)
#ifdef CODEC_SLAVE #ifndef CODEC_MASTER
extern buffered out port:32 p_lrclk; extern buffered out port:32 p_lrclk;
extern buffered out port:32 p_bclk; extern buffered out port:32 p_bclk;
#else #else
@@ -30,7 +30,7 @@ extern clock clk_audio_bclk;
void ConfigAudioPorts(unsigned int divide) void ConfigAudioPorts(unsigned int divide)
{ {
#ifdef CODEC_SLAVE #ifndef CODEC_MASTER
/* Output 0 on BCLK to ensure clock is low /* Output 0 on BCLK to ensure clock is low
* Required as stop_clock will only complete when the clock is low * Required as stop_clock will only complete when the clock is low
*/ */
@@ -110,7 +110,7 @@ void ConfigAudioPorts(unsigned int divide)
/* Pause until output completes */ /* Pause until output completes */
sync(p_bclk); sync(p_bclk);
#else /* CODEC_SLAVE = 1 */ #else /* CODEC_MASTER */
/* Stop bit and master clock blocks */ /* Stop bit and master clock blocks */
stop_clock(clk_audio_bclk); stop_clock(clk_audio_bclk);