mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
AS3525: we won't use threads in the bootloader
Disable tick_start() Call kernel_init() _after_ system_init() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19028 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
94c06c7e95
commit
6e645cc4eb
2 changed files with 5 additions and 1 deletions
|
|
@ -32,6 +32,9 @@ void INT_TIMER2(void)
|
|||
|
||||
void tick_start(unsigned int interval_in_ms)
|
||||
{
|
||||
#ifdef BOOTLOADER
|
||||
(void) interval_in_ms;
|
||||
#else
|
||||
int phi = 0; /* prescaler bits */
|
||||
int prescale = 1;
|
||||
int cycles = 64000 * interval_in_ms; /* pclk is clocked at 64MHz */
|
||||
|
|
@ -54,4 +57,5 @@ void tick_start(unsigned int interval_in_ms)
|
|||
/* /!\ bit 4 (reserved) must not be modified
|
||||
* periodic mode, interrupt enabled, 16 bits counter */
|
||||
TIMER2_CONTROL = (TIMER2_CONTROL & (1<<4)) | 0xe0 | (phi<<2);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue