forked from PAWPAW-Mirror/lib_xua
Conflicted merge: master -> DEV_X200_BRINGUP
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
</outputEntries>
|
||||
</builder>
|
||||
<tool id = "com.xmos.cdt.xc.compiler.55196333" name="com.xmos.cdt.xc.compiler" superClass="com.xmos.cdt.xc.compiler">
|
||||
<option id = "com.xmos.c.compiler.option.defined.symbols.36159420" name="com.xmos.c.compiler.option.defined.symbols" superClass="com.xmos.c.compiler.option.defined.symbols" valueType="definedSymbols">
|
||||
<option id = "com.xmos.xc.compiler.option.defined.symbols.36159420" name="com.xmos.xc.compiler.option.defined.symbols" superClass="com.xmos.xc.compiler.option.defined.symbols" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="__SHRT_MAX__=32767"/>
|
||||
<listOptionValue builtIn="false" value="__SCHAR_MAX__=127"/>
|
||||
<listOptionValue builtIn="false" value="__SIZE_TYPE__=unsigned"/>
|
||||
|
||||
@@ -469,7 +469,7 @@
|
||||
* @brief Device firmware version number in Binary Coded Decimal format: 0xJJMN where JJ: major, M: minor, N: sub-minor version number.
|
||||
*/
|
||||
#ifndef BCD_DEVICE_N
|
||||
#define BCD_DEVICE_N 1
|
||||
#define BCD_DEVICE_N 2
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,47 +4,47 @@ def genstrings(outputChanCount, chanString, portString, structureString, adc_dac
|
||||
|
||||
for i in range(1,outputChanCount):
|
||||
|
||||
print "#if (NUM_USB_CHAN_{c} > {i}-1) \n\
|
||||
print "#if (NUM_USB_CHAN_{c} > {i}-1)\n\
|
||||
.{s}ChanStr_{i} = \"\"\n\
|
||||
#if ({i} < I2S_CHANS_{adcdac}+1) \n\
|
||||
\"Analogue {i}\" \n\
|
||||
#endif \n\
|
||||
#if (({i} < SPDIF_{p}_INDEX+2+1) && ({i} > SPDIF_{p}_INDEX)) && defined(SPDIF_{p}) \n\
|
||||
#if ({i} < I2S_CHANS_{adcdac}+1) \n\
|
||||
\"/\" \n\
|
||||
#endif \n\
|
||||
#if({i} - SPDIF_TX_INDEX == 1) \n\
|
||||
#if ({i} < I2S_CHANS_{adcdac}+1)\n\
|
||||
\"Analogue {i}\"\n\
|
||||
#endif\n\
|
||||
#if (({i} < SPDIF_{p}_INDEX+2+1) && ({i} > SPDIF_{p}_INDEX)) && defined(SPDIF_{p})\n\
|
||||
#if ({i} < I2S_CHANS_{adcdac}+1)\n\
|
||||
\"/\"\n\
|
||||
#endif\n\
|
||||
#if({i} - SPDIF_{p}_INDEX == 1)\n\
|
||||
\"SPDIF 1\"\n\
|
||||
#elif({i} - SPDIF_TX_INDEX == 2) \n\
|
||||
#elif({i} - SPDIF_{p}_INDEX == 2)\n\
|
||||
\"SPDIF 2\"\n\
|
||||
#endif\n\
|
||||
#endif\n\
|
||||
#if (({i} < ADAT_{p}_INDEX+8+1) && ({i} > ADAT_{p}_INDEX)) && defined(ADAT_{p}) \n\
|
||||
#if (({i} < SPDIF_{p}_INDEX+2+1) && ({i} > SPDIF_{p}_INDEX)) && defined(SPDIF_{p}) || ({i} < I2S_CHANS_{adcdac}+1) \n\
|
||||
\"/\" \n\
|
||||
#endif \n\
|
||||
#if({i} - ADAT_TX_INDEX == 1) \n\
|
||||
#if (({i} < ADAT_{p}_INDEX+8+1) && ({i} > ADAT_{p}_INDEX)) && defined(ADAT_{p})\n\
|
||||
#if (({i} < SPDIF_{p}_INDEX+2+1) && ({i} > SPDIF_{p}_INDEX)) && defined(SPDIF_{p}) || ({i} < I2S_CHANS_{adcdac}+1)\n\
|
||||
\"/\"\n\
|
||||
#endif\n\
|
||||
#if({i} - ADAT_TX_INDEX == 1)\n\
|
||||
\"ADAT 1\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 2) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 2)\n\
|
||||
\"ADAT 2\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 3) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 3)\n\
|
||||
\"ADAT 3\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 4) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 4)\n\
|
||||
\"ADAT 4\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 5) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 5)\n\
|
||||
\"ADAT 5\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 6) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 6)\n\
|
||||
\"ADAT 6\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 7) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 7)\n\
|
||||
\"ADAT 7\"\n\
|
||||
#elif({i} - ADAT_TX_INDEX == 8) \n\
|
||||
#elif({i} - ADAT_TX_INDEX == 8)\n\
|
||||
\"ADAT 8\"\n\
|
||||
#endif\n \
|
||||
#endif\n\
|
||||
, \n#endif \n".format(i=i, c=chanString, p=portString, s=structureString, adcdac=adc_dac);
|
||||
#endif\n\
|
||||
#endif\n\
|
||||
,\n#endif\n".format(i=i, c=chanString, p=portString, s=structureString, adcdac=adc_dac);
|
||||
return;
|
||||
|
||||
print "/* AUTOGENERATED using chanstringgen.py */ \n"
|
||||
print "/* AUTOGENERATED using chanstringgen.py */\n"
|
||||
print "/* Not very nice looking but the standard preprocessor is not very powerful\n and we save some memory over doing this all at runtime */"
|
||||
|
||||
print "/* Output Strings */\n\n"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -120,7 +120,7 @@ on tile[SPDIF_TX_TILE] : buffered out port:32 p_spdif_tx = PORT_SPDIF_OUT;
|
||||
#endif
|
||||
|
||||
#ifdef ADAT_TX
|
||||
on stdcore[AUDIO_IO_TILE] : buffered out port:32 p_adat_tx = PORT_ADAT_OUT;
|
||||
on stdcore[AUDIO_IO_TILE] : buffered out port:32 p_adat_tx = PORT_ADAT_OUT;
|
||||
#endif
|
||||
|
||||
#ifdef ADAT_RX
|
||||
|
||||
@@ -620,7 +620,7 @@ static void mixer2(chanend c_mixer1, chanend c_audio)
|
||||
{
|
||||
#pragma xta endpoint "mixer2_req"
|
||||
request = inuint(c_audio);
|
||||
|
||||
|
||||
/* Forward the request on */
|
||||
outuint(c_mixer1, request);
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
/* use REF for ADAT_RX on U-series */
|
||||
/* #define CLKBLK_ADAT_RX XS1_CLKBLK_3 */
|
||||
/* Note, U-series XUD uses clock blocks 4 and 5 - see XUD_Ports.xc */
|
||||
|
||||
#define CLKBLK_I2S_BIT XS1_CLKBLK_3
|
||||
#endif
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ void handle_audio_request(chanend c_mix_out)
|
||||
|
||||
/* Input word that triggered interrupt and handshake back */
|
||||
unsigned underflowSample = inuint(c_mix_out);
|
||||
|
||||
|
||||
outuint(c_mix_out, 0);
|
||||
|
||||
/* If in overflow condition then receive samples and throw away */
|
||||
|
||||
Reference in New Issue
Block a user