forked from PAWPAW-Mirror/lib_xua
Change to new CODEC_MASTER define
This commit is contained in:
@@ -40,7 +40,7 @@ extern buffered in port:32 p_i2s_adc[I2S_WIRES_ADC];
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* I2S LR/Bit clock I/O */
|
/* I2S LR/Bit clock I/O */
|
||||||
#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
|
||||||
@@ -136,7 +136,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CODEC_SLAVE
|
#ifndef CODEC_MASTER
|
||||||
/* Clear I2S port buffers */
|
/* Clear I2S port buffers */
|
||||||
clearbuf(p_lrclk);
|
clearbuf(p_lrclk);
|
||||||
|
|
||||||
@@ -321,7 +321,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CODEC_SLAVE
|
#ifndef CODEC_MASTER
|
||||||
/* Generate clocks LR Clock low - LEFT */
|
/* Generate clocks LR Clock low - LEFT */
|
||||||
switch (divide)
|
switch (divide)
|
||||||
{
|
{
|
||||||
@@ -414,7 +414,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CODEC_SLAVE
|
#ifndef CODEC_MASTER
|
||||||
/* Clock out data (and LR clock) */
|
/* Clock out data (and LR clock) */
|
||||||
switch (divide)
|
switch (divide)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user