Potential fixes to master mode

This commit is contained in:
Ross Owen
2014-05-27 15:31:32 +01:00
parent 3a340d5073
commit d7f0cdd4be

View File

@@ -355,7 +355,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, unsi
p_lrclk when pinseq(0) :> void;
p_lrclk when pinseq(1) :> void;
p_lrclk when pinseq(0) :> void @ tmp;
tmp+=95;
tmp+=97;
#if (I2S_CHANS_DAC != 0)
#pragma loop unroll
for(int i = 0; i < I2S_WIRES_DAC; i++)
@@ -365,11 +365,10 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, unsi
#endif
#if (I2S_CHANS_ADC != 0)
tmp += 33;
#pragma loop unroll
for(int i = 0; i < I2S_WIRES_ADC; i++)
{
asm("setpt res[%0], %1"::"r"(p_i2s_adc[i]),"r"(tmp));
asm("setpt res[%0], %1"::"r"(p_i2s_adc[i]),"r"(tmp-1));
}
#endif