|
我用的是omapl138开发板。当我运行ad7606_dsp的demo程序的时候,同时在arm端运行watchdog程序,发现一旦打开watchdog设备文件后,dsp端的计时器就停止工作了。dsp端的配置文件是部分内容是这样的
@4 J5 Z3 h: L! I% I9 U$ P1 Y/* configure SysBios to use the lower half of Timer 1 */4 ~% S- q2 i# n: c
var Timer = xdc.useModule('ti.sysbios.timers.timer64.Timer');
/ | R$ m1 Q D3 y1 j4 ?var Clock = xdc.useModule('ti.sysbios.knl.Clock');! H" H# A9 p, J
Timer.timerSettings[1].master = true;
0 T' U0 L, _; L% e8 o& JTimer.defaultHalf = Timer.Half_LOWER;
0 w) T5 |( d9 h/ {( o5 A7 yClock.timerId = 1;9 h' n$ D5 g2 m8 m
Clock.tickPeriod = 5; //5us
+ p. `1 n0 y" j- Q2 f7 D/ iarm端的watchdog程序和dsp端的计时器发生冲突了么?他们是共用了一个计时器么?这个cpu上一共几个定时器,怎么使用才能避免冲突呢?
9 q2 m* F8 ~$ J, F& q我将Clock.timerId 分别改成0 、2 、3,结果发现只有改成3的时候才可以,为什么呢?还有,我在使用Clock_create()的时候,我并没有
" ~0 S( ? F( y" }指定使用哪个timer,难道是默认的使用Clock.timeId指定的timer吗?这样一来不就只能在DSP中使用同一个timer了?我要是想同时使用其他的timer该怎么办呢?
3 K/ U" B1 O* i7 `. C E谢谢!
, ^! c' |2 g. r; ]4 M U$ A' X5 z7 j' h+ g# L+ Z
/ U& e: O+ ?% b7 p, a, P! `/ f, C; }+ S, p
$ q1 G( L- f {" m. _. N# A5 U* \
|
|