Where is the typedef of tileref? Topic is solved

If you have a simple question and just want an answer.
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm

Where is the typedef of tileref?

Post by Caleb »

Hi, where is the source or definition of the type tileref as used in xs1.h (for read_periph_32..., etc)?



View Solution
User avatar
Ross
XCore Expert
Posts: 966
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Please see here: https://www.xmos.com/en/xn-specification?secure=1

Specifically: 

A Declaration element provides a symbolic name for one or more xCORE Tiles. A single name or an array of names is supported with the form:

tileref identifier

tileref identifier [ constant-expression ]


An equivalent declaration is exported to the header file <platform.h> for use in XC programs. A tileref declaration is associated with physical xCORE tiles by the reference attribute of a Tile element .