[nostalgia/core/gba] Fix timer frequency
This commit is contained in:
parent
0318ba92ce
commit
d73bbfb37a
@ -31,7 +31,7 @@ static void initIrq() {
|
|||||||
static void initTimer() {
|
static void initTimer() {
|
||||||
// make timer0 a ~1 millisecond timer
|
// make timer0 a ~1 millisecond timer
|
||||||
REG_TIMER0 = TicksMs59ns;
|
REG_TIMER0 = TicksMs59ns;
|
||||||
REG_TIMER0CTL = 0b11000011;
|
REG_TIMER0CTL = 0b11000000;
|
||||||
// enable interrupt for timer0
|
// enable interrupt for timer0
|
||||||
REG_IE |= Int_timer0;
|
REG_IE |= Int_timer0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user