|
TICK 的修改在 dsp.cfg 文件中
# Y/ o" l6 a0 N2 C/ C, M
, e4 ?: g6 c+ }+ g& ?2 S151 /* configure SysBios to use the lower half of Timer 1 */
0 R* h% K! x! u1 B6 \8 x. N; q152 var Timer = xdc.useModule('ti.sysbios.timers.timer64.Timer');! L* s) Z, ^3 n5 J9 \ L. k
153 var Clock = xdc.useModule('ti.sysbios.knl.Clock');& P$ _: }9 N- ~% O* c L
154 Timer.timerSettings[1].master = true;6 k6 `7 B$ A8 f6 O- g6 g1 h
155 Timer.defaultHalf = Timer.Half_LOWER;7 J; _, r( |5 s! u. k1 a! j
156 Clock.timerId = 1;
( o1 s% h+ g" I, {/ `, P: w157 Clock.tickPeriod = 5; //5us
4 _/ o2 R [ \; E* n6 k
6 f; u1 O3 _% O修改后重新编译程序
* R8 \* J6 R8 } |
|