Remove unused variable
This commit is contained in:
parent
77803adcac
commit
86b365f065
|
@ -266,7 +266,6 @@ static void trigger_timer(u32 timer_number, u32 value)
|
||||||
if(timer[timer_number].status != TIMER_INACTIVE)
|
if(timer[timer_number].status != TIMER_INACTIVE)
|
||||||
{
|
{
|
||||||
timer[timer_number].status = TIMER_INACTIVE;
|
timer[timer_number].status = TIMER_INACTIVE;
|
||||||
timer[timer_number].stop_cpu_ticks = cpu_ticks;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write_ioreg(REG_TM0CNT + (timer_number * 2), value);
|
write_ioreg(REG_TM0CNT + (timer_number * 2), value);
|
||||||
|
|
1
main.c
1
main.c
|
@ -94,7 +94,6 @@ void init_main(void)
|
||||||
dma[i].direct_sound_channel = DMA_NO_DIRECT_SOUND;
|
dma[i].direct_sound_channel = DMA_NO_DIRECT_SOUND;
|
||||||
timer[i].status = TIMER_INACTIVE;
|
timer[i].status = TIMER_INACTIVE;
|
||||||
timer[i].reload = 0x10000;
|
timer[i].reload = 0x10000;
|
||||||
timer[i].stop_cpu_ticks = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
timer[0].direct_sound_channels = TIMER_DS_CHANNEL_BOTH;
|
timer[0].direct_sound_channels = TIMER_DS_CHANNEL_BOTH;
|
||||||
|
|
1
main.h
1
main.h
|
@ -49,7 +49,6 @@ typedef struct
|
||||||
s32 count;
|
s32 count;
|
||||||
u32 reload;
|
u32 reload;
|
||||||
u32 prescale;
|
u32 prescale;
|
||||||
u32 stop_cpu_ticks;
|
|
||||||
fixed8_24 frequency_step;
|
fixed8_24 frequency_step;
|
||||||
timer_ds_channel_type direct_sound_channels;
|
timer_ds_channel_type direct_sound_channels;
|
||||||
timer_irq_type irq;
|
timer_irq_type irq;
|
||||||
|
|
Loading…
Reference in New Issue