#including 3rd party projects as libraries/modules

New to XMOS and XCore? Get started here.
JohnRobert
Active Member
Posts: 34
Joined: Fri Nov 02, 2012 8:10 am

#including 3rd party projects as libraries/modules

Post by JohnRobert »

G'day,

I was wondering how I might be able to include other projects as a library/module, for example..

Code: Select all

#include <platform.h>
#include <XUart.h>

out port TX = XS1_PORT_1B;
out port RX = XS1_PORT_1C;

void main(){

}
Take note to XUart.h... This is another project in my Eclipse/xTimeComposer workspace. How could I make XUart a library/module?

Thanks for the help.

-John


User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm

Post by Folknology »

Jonh take a look at the Xcore template on github, this is a good place to start.

regards
Al
JohnRobert
Active Member
Posts: 34
Joined: Fri Nov 02, 2012 8:10 am

Post by JohnRobert »

Ahh, thank you very much - this is brilliant!