Code: Select all
Compiling audio.xc
sw_usb_audio-[sw]_6.15.2rc1/sc_usb_audio/module_usb_audio/audio.xc:987:25: error: use of undeclared identifer `xs1_su'
r = write_periph_32(xs1_su, 2, 0x20, 1, data);
^~~~~~
Code: Select all
Compiling audio.xc
sw_usb_audio-[sw]_6.15.2rc1/sc_usb_audio/module_usb_audio/audio.xc:987:25: error: use of undeclared identifer `xs1_su'
r = write_periph_32(xs1_su, 2, 0x20, 1, data);
^~~~~~
the first argument is the tile reference (see xs1.h fro the prototype). This is defined in the xn file:r = write_periph_32(xs1_su, 2, 0x20, 1, data);
so try using the tileref that is in your xn file.<Declarations>
<Declaration>tileref tile[2]</Declaration>
<Declaration>tileref usb_tile</Declaration>
</Declarations>