Core header files and there use.

New to XMOS and XCore? Get started here.
Post Reply
AJB2K3
Member++
Posts: 27
Joined: Sat Dec 14, 2013 1:03 pm

Core header files and there use.

Post by AJB2K3 »

Where do I find a list of all the header files and which are needed for what function?
I spent an hr trying to work out why something wasn't working, only to find out that I was not including a header file.

Never mind, the core programming guide is quite hard to find but can you consider releasing it in epub and .mobi?


User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Post by Bianco »

The two most important ones are:

xs1.h - contains architecture specifics
platform.h - contains board specifics, this is not a static header file, it is generated on each build to match your target

Furthermore

xclib.h - contains bitrev, byterev and clz (count leading zeros)
xccompat.h - XC types compatibility for use in C/C++
flashlib.h - needed to use libflash functions
xscope.h - needed to use the xscope functions.

Furthermore there are the more common ones like stdio.h etc..
The header files can be found here: xTIMEcomposer\Community_13.0.1\target\include
Post Reply