How to include header files in XMOS FreeRTOS port?

All technical discussions and projects around startKIT
User avatar
jeevanicherukuri
Member++
Posts: 17
Joined: Fri Dec 26, 2014 4:41 pm

How to include header files in XMOS FreeRTOS port?

Post by jeevanicherukuri »

In FreeRTOS port to the XMOS XS1 XCORE folder,I am trying to execute those programs.It's showing errors in header files that no such files are found. what must i do to include those header files? for example, 'freertos.h' file is not found.
d1.docx
You do not have the required permissions to view the files attached to this post.


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

Post by Bianco »

You will want to add the following directories to your include path:

XMOS_FreeRTOS/Source/portable/XCC/XMOS_XS1/
XMOS_FreeRTOS/Source/include/
XMOS_FreeRTOS/Demo/Common/include/

I'm not sure if this is easy to do in the graphical interface.
Alternatively you can modify the project makefile and use the -I parameter to add these paths to for example the following makefile variables: XCC_FLAGS_full andXCC_FLAGS_lite

Alternatively you can avoid any trouble by just using my makefile as a start. Best results are on the command line. Just navigate to the demo directory and run 'xmake all', thats all!