XUD Port Usage

If you have a simple question and just want an answer.
Maran
Junior Member
Posts: 6
Joined: Wed Nov 19, 2014 4:48 pm

XUD Port Usage

Post by Maran »

Hello,

at the moment I´m trying the use the ports 1N,1O,1P as output ports within the usb audio 2.0(2ioxx).

If I declare the ports as "out buffered port:1 my_port = XS1_PORT_1P"  there is the error message " Symbol flag 2_port is a duplicate port declaration","previously declared as my_port".

By commenting i.e. the line "flag2_port = PORT_USB_FLAG2"in the XUD_PORTS.xc and the "#define PORT_USB_FLAG2 on USB_TILE:XS1_PORT_1P" in the xud.h there is the next error:"../libsrc/XUD_Manager.xc:Error: Undefined reference to flag2_port"

but in my opinion the XUD doesn´t need to use this ports, in my hardware configuration they are just empty and in my workspace I can´t find any reference to this ports.

Thank you for your requests.

 

User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

Ports N, O and P are disabled when USB is on. Please refer to XMOS USB Device (XUD) Library for more information.