Hi,
This question I have relates mainly to the new CCS12 environment I am using, with an imported project dating from the days of CCS3.3 Platimun.
I am not entirely sure what could be the difference in compilation under CCS12 as opposed to the compilation of the code under CCS3.3, but the following line of code returns an error under CCS12 whereas it was comipling perfectly fine under CCS3.3 using the same compiler version:
(TSK_isTSK()) ? TSK_sleep(TSK_SLEEP_15MS) : wait(150000); // Wait for about 15ms.
The error returned refering to the above line is : line 277: error #32: expression must have arithmetic type
This line used to compile without any issues under CCS3.3.
Changing the above line to :
if(TSK_isTSK())
TSK_sleep(TSK_SLEEP_15MS);
else
wait(150000);
does not return an error. For some reason, it would appear the compiler complains about the TSK_sleep(TSK_SLEEP_15MS) section of the above ternary expression ?!?
The compiler I'm using is v4.4.1, and the DSP/BIOS version is 5.42.2.10.
The code is being compiled for a TMS320C5515/05 device.
I am wondering what is different now that I'm compiling under CCS12 ? Any suggestions would be appreciated.
Regards, Mike