forked from PAWPAW-Mirror/lib_xua
Added single port i2c struct to main
This commit is contained in:
@@ -192,9 +192,13 @@ on tile[XUD_TILE] : clock clk = CLKBLK_USB_RST;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IAP
|
#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};
|
on tile [IAP_TILE] : struct r_i2c r_i2c = {PORT_I2C_SCL, PORT_I2C_SDA};
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Endpoint type tables for XUD */
|
/* Endpoint type tables for XUD */
|
||||||
|
|||||||
Reference in New Issue
Block a user