diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index 036a4cca..93966acb 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -138,16 +138,18 @@ on tile[AUDIO_IO_TILE] : clock clk_mst_spd = XS1_CLKBLK_1; #endif /* L Series needs a port to use for USB reset */ -#if defined(ARCH_L) || defined(ARCH_G) -#ifdef PORT_USB_RESET +#if (defined(ARCH_L) || defined(ARCH_G)) && defined(PORT_USB_RESET) /* This define is checked since it could be on a shift reg or similar */ on tile[XUD_TILE] : out port p_usb_rst = PORT_USB_RESET; +#else +/* Reset port not required for U series due to built in Phy */ +#define p_usb_rst null #endif + +#if defined (ARCH_L) || defined(ARCH_G) /* L Series also needs a clock for this port */ on tile[XUD_TILE] : clock clk = XS1_CLKBLK_4; #else -/* Reset port not required for SU1 due to built in Phy */ -#define p_usb_rst null #define clk null #endif