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.

TMU测试,在例程中有一个函数为__sinpuf32,有些不明所以,可以解释一下含义吗

TMU测试,在例程中有一个函数为__sinpuf32,有些不明所以,可以解释一下含义吗

函数如下:

// TMU_runTest - Execute SIN generation test (TMU)
//
float TMU_runTest(float *inputVector,float *tmuOutput,
int16_t size)
{
int16_t i;
float start_time = 0.0;
float stop_time = 0.0;

START_TIMER(start_time);
for(i = 0; i < size ; i++)
{
tmuOutput[i] = __sinpuf32(inputVector[i]);
}
STOP_TIMER(stop_time);

return(start_time - stop_time);
}

图中红色部分的sin函数与RTS中的sin函数有什么有区别?运用TMU进行运算是需要对三角函数名重命名来加以区分还是什么意思?