TIMER_Handle TimerHandle0;
void timer1()
{
////////////定时器///////////////////////
TimerHandle0 = TIMER_open(TIMER_DEV0, TIMER_OPEN_RESET);
IRQ_setVecs(vectors);
IRQ_globalEnable();
IRQ_nmiEnable();
//Map TIMER events to physical interrupt number
IRQ_map(IRQ_EVT_TINT0, 14);
//Reset the timer events
IRQ_reset(IRQ_EVT_TINT0);
TIMER_configArgs(TimerHandle0,
0x00000200,/*ctl*/
0x11e1a300,/*prd*/ //10ms-0x000b71b0 可以发300帧, 30ms-0x00225510
0x00000000/*cnt*/
);
IRQ_enable(IRQ_EVT_TINT0);
}
interrupt void timer0_isr()
{
// cnt_timer=(cnt_timer+1)%9;
//////////中断处理程序/////////////////////////////
IRQ_clear(IRQ_EVT_TINT0);
IRQ_enable(IRQ_EVT_TINT0);
}