For this code:
Code: Select all
int main() {
// selfTest();
configure_clock_rate(pwmPortClk, 100, 2);
configure_out_port(pwmA, pwmPortClk, 0);
configure_out_port(pwmB, pwmPortClk, 0);
configure_out_port(pwmC, pwmPortClk, 0);
interface PWMFillIf fillPwmIf;
interface PWMCallBackIf cbIf;
interface SetPWMFeederIf setPwmFeederIf;
par {
on tile[0].core[0]: taskSymPWM(PWM_PERIOD, fillPwmIf, cbIf);
on tile[0].core[1]: taskPWMFeeder(
pwmA, pwmB, pwmC, PWM_PERIOD,
setPwmFeederIf, cbIf, fillPwmIf);
}
return 0;
}
When I remove the tile-core assignments I get no error:
Code: Select all
par {
// on tile[0].core[0]:
taskSymPWM(PWM_PERIOD, fillPwmIf, cbIf);
// on tile[0].core[1]:
taskPWMFeeder(
pwmA, pwmB, pwmC, PWM_PERIOD,
setPwmFeederIf, cbIf, fillPwmIf);
}