From 03555c7eaba27095ffdce625b6ab01f229bbbe6c Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 27 Mar 2015 11:28:01 +0000 Subject: [PATCH] Added single port i2c struct to main --- module_usb_audio/main.xc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index cd9c4af3..adab684f 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -192,9 +192,13 @@ on tile[XUD_TILE] : clock clk = CLKBLK_USB_RST; #endif #ifdef IAP -/* I2C ports - in a struct for use with module_i2s_simple */ +/* I2C ports - in a struct for use with module_i2c_shared & module_i2c_simple/module_i2c_single_port */ +#ifdef PORT_I2C +on tile [IAP_TILE] : struct r_i2c r_i2c = {PORT_I2C}; +#else on tile [IAP_TILE] : struct r_i2c r_i2c = {PORT_I2C_SCL, PORT_I2C_SDA}; #endif +#endif /* Endpoint type tables for XUD */