I'm currently using the startKit to demo my hardware. I'm creating a device that drives a linear CCD and bursts the data to an FTDI device at around 8MBs. I was envisaging the main thread of the program to generate the CCD clock signals based on the configuration data I send from the PC before the scanner starts. Every pixel I want this thread to call a function to execute on another core that reads and handles the data from the ADC - the data returned from it will go into an array the same length as the image sensor array. After every line this main thread should call the function to send the 2kB of data, again on another core. My question is about disjointedness I believe.
So if I call the function:
Code: Select all
bytesWritten = FT_Write(data, bytesToWrite, timeOut);
Code: Select all
on stdcore[1] : bytesWritten = FT_Write(data, bytesToWrite, timeOut);
Could someone point me to a good place to read about concurrency on Xmos devices?
Thanks