adding modules to existing project

Technical questions regarding the XTC tools and programming with XMOS.
stdefeber
Active Member
Posts: 35
Joined: Wed Dec 18, 2013 9:20 pm

adding modules to existing project

Post by stdefeber »

I want to use the startkit_gpio module in an existing project.
How can I add it in xTIMEcomposer ?



grtz

Simon
richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

If you click on the Community tab (by default you can find this in the pane on bottom left hand side of the screen), you can find the GPIO driver under startKIT -> I/O. Dragging the GPIO driver into the Project Explorer will automatically import . Alternatively you could clone the github repo (https://github.com/xcore/sw_startkit_examples) and import it by opening the menu File -> Import... and then chosing General -> Existing Projects into Workspace.

Once the module is imported into the workspace you can add it to an app by double clicking on the Makefile in the app and adding it to the used modules.