Open henkmuller opened 2 months ago
I would like to get rid of USB_TILE altogether - it's used such that XUD enables ports on the correct tile. I'd like the lib just to enable ports on the tile it resides on.
In the meantime I shall derive lib_xud's USB_TILE from lib_xua's XUD_TILE by adding an xud_conf.h file to lib_xua containing something like
#define EXPAND_MACRO(x) x
#define ADD_TILE(x) tile[x]
#define USB_TILE ADD_TILE(EXPAND_MACRO(XUD_TILE))
It would be nice if XUD_TILE was inherited or linked to the USB_TILE in lib_xud
https://github.com/xmos/lib_xua/blob/d0039cf02b79f353f3a41c3190479ba7871f68b5/lib_xua/api/xua_conf_default.h#L29