#173943 - Pete_Lockwood - Sun May 09, 2010 1:09 pm
Got a timer firing every second:
I want to reset it, say, 3/4 of a second into a tick so that the next tick will be 1 second later instead of 1/4 of a second later. I tried a pair of likely looking addresses off GBATEK but no dice. Anyone?
_________________
It's not an illusion, it just looks like one.
Code: |
TIMER_CR(1) = 0; TIMER_DATA(1) = 32768; TIMER_CR(1) = TIMER_ENABLE | TIMER_DIV_1024 | TIMER_IRQ_REQ; irqSet(IRQ_TIMER1, somefn); irqEnable(IRQ_TIMER1); |
I want to reset it, say, 3/4 of a second into a tick so that the next tick will be 1 second later instead of 1/4 of a second later. I tried a pair of likely looking addresses off GBATEK but no dice. Anyone?
_________________
It's not an illusion, it just looks like one.