Hi all,
Working with the xCore-200, I try to use channel array. First, could someone validate that the current syntax correspond to what I want ?
Code: Select all
chan chanData[NUMBER_OF_CHANNELS];
However when I create threads in a par statement like in the following piece of code, the compiler considers the channel array as only one channel and raise an error
`chanData' used in more than two parallel statements (byte range 0..4).
Code: Select all
par{
mytask1(chanData[0], chanData[1]);
mytask2(chanData[1], chanData[2]);
mytask3(chanData[2], chanData[3]);
}
Did someone got the same error (with the byte range part) ? Or is there a good (better ?) way to use channel arrays ?
Thanks a lot for your help,
Marc