Selecting tiles using only C Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
mkhairy
New User
Posts: 2
Joined: Wed Oct 04, 2023 3:47 pm

Selecting tiles using only C

Post by mkhairy »

Hello,
It's my first time discovering XMOS device.
I went directly for lib_xcore and full C (it seems to be the future of the SDK ?).
I was wondering if I have a way in C to select tile for running my code (I want to access specific port/GPIO)
or if I still have to use an XC main to dispatch the job to different tiles ?

Thanks a lot,


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

Post by Ross »

My advice would be to use an xc main to make calls to your c functions/tasks. Even if its just:

Code: Select all

main()
{
   par
   {
      on tile[0]: tile0_tasks();

      on tile[1]: tile1_tasks();
   }
}
User avatar
mkhairy
New User
Posts: 2
Joined: Wed Oct 04, 2023 3:47 pm

Post by mkhairy »

I'll do that then.

Thanks a lot :)