forked from len0rd/rockbox
DM320: Clock source selection for timer happens in bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29228 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
52f985ef6c
commit
161f4465db
1 changed files with 2 additions and 4 deletions
|
@ -27,10 +27,7 @@
|
||||||
|
|
||||||
void tick_start(unsigned int interval_in_ms)
|
void tick_start(unsigned int interval_in_ms)
|
||||||
{
|
{
|
||||||
/* TODO: set up TIMER1 clock settings
|
IO_CLK_MOD2 |= CLK_MOD2_TMR1; /* enable TIMER1 clock */
|
||||||
IO_CLK_MOD2 &= ~CLK_MOD2_TMR1; //disable TIMER1 clock
|
|
||||||
IO_CLK_SEL0 |= (1 << 2); //set TIMER1 clock to PLLIN*/
|
|
||||||
IO_CLK_MOD2 |= CLK_MOD2_TMR1; //enable TIMER1 clock!!!!!!!!!
|
|
||||||
IO_TIMER1_TMMD = CONFIG_TIMER1_TMMD_STOP;
|
IO_TIMER1_TMMD = CONFIG_TIMER1_TMMD_STOP;
|
||||||
|
|
||||||
/* Setup the Prescalar (Divide by 10)
|
/* Setup the Prescalar (Divide by 10)
|
||||||
|
@ -56,3 +53,4 @@ void TIMER1(void)
|
||||||
/* Run through the list of tick tasks */
|
/* Run through the list of tick tasks */
|
||||||
call_tick_tasks();
|
call_tick_tasks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue