Part Number: TMS320F28377D
只在cla计算内部使用的变量,而不需要在cpu和cla之间调用的变量,还需要类似这种(#pragma DATA_SECTION(IA,"Cla1ToCpuMsgRAM");)的定义位置吗,能像.c文件中 直接定义吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS320F28377D
只在cla计算内部使用的变量,而不需要在cpu和cla之间调用的变量,还需要类似这种(#pragma DATA_SECTION(IA,"Cla1ToCpuMsgRAM");)的定义位置吗,能像.c文件中 直接定义吗?
float a; float b; //... and so on
interrupt void Cla1Task1 (void)
{ //do stuff with a, b, ... and so on }
interrupt void Cla1Task8 (void)
{ a=0; b=0; //... and so on }
类似如此,我在.cal文件开头对变量进行定义,然后我只在task1和task8之间进行调用(task8的计算需要改变task1之间的调用)
请问我仅这样定义行吗 还需要单独对每个变量在.c文件中进行类似#pragma DATA_SECTION(IA,"Cla1ToCpuMsgRAM");)这种定义吗