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.

TMS320C6748: sysbios 工程定时器的使用

Part Number: TMS320C6748


1、在使用定时器的时候,出现运行一次后重启之后不在进行中断服务程序。
设计思路是定时器运行一次后停止,通过任务运行开启。
配置timer如下:
            // 配置周期
    timerParams.runMode = Timer_RunMode_ONESHOT;
    timerParams.period = Period*3;
    timerParams.periodType = Timer_PeriodType_MICROSECS;
    // 实例化定时器
    Timer2 = Timer_create(2, DevTimer_Isr2, &timerParams, &eb);
任务函数(5S运行一次)中代码中增加启动定时器:
            Timer_start(Timer2);
是否哪里配置有问题还是缺少部分呢。
2、上面代码是在C文件在配置定时器。如在cfg配置定时器的话,如何在代码获取到对应的定时器句柄呢。