5643L,10.7环境,按照说明文档添加ammclib库后,在主程序中可以正常使用库函数,但在中断中却程序跑飞。我在进入中断时只是清除了中断标志位,还需要做其他处理吗?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

5643L,10.7环境,按照说明文档添加ammclib库后,在主程序中可以正常使用库函数,但在中断中却程序跑飞。我在进入中断时只是清除了中断标志位,还需要做其他处理吗?

1,032 Views
amosxue
Contributor II

extern void CLoop100usIsr (void)
{
PIT.CHANNEL[0].TFLG.R=0x1;

...........

tr32InVoltage.f32Arg1 = FRAC32 (12.99/15);
tr32InVoltage.f32Arg2 = FRAC32 (7.5/15);
u32SvmSector = GMCLIB_SvmStd_F32 (&tr32PwmABC,&tr32InVoltage);

..........

1 Reply

887 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please write your question in English? This is international community and also support is located all over the world.

Regards,

Martin