mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 00:52:38 -05:00
Bootloader USB mode for PP502x. Enable only on GoGear SA9200 for the time being. Add HAVE_BOOTLOADER_USB_MODE to config if BOOTLOADER is defined to enable it. Clean up some kernel stuff a little to support it. Mess up a bunch of other stuff (hopefully not too badly).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29053 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
53db95417d
commit
3a1127785b
26 changed files with 842 additions and 160 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include "system.h"
|
||||
#include "kernel.h"
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
#if !defined(BOOTLOADER) || defined(HAVE_BOOTLOADER_USB_MODE)
|
||||
void TIMER1(void)
|
||||
{
|
||||
/* Run through the list of tick tasks (using main core) */
|
||||
|
|
@ -42,7 +42,7 @@ void TIMER1(void)
|
|||
/* Must be last function called init kernel/thread initialization */
|
||||
void tick_start(unsigned int interval_in_ms)
|
||||
{
|
||||
#ifndef BOOTLOADER
|
||||
#if !defined(BOOTLOADER) || defined(HAVE_BOOTLOADER_USB_MODE)
|
||||
TIMER1_CFG = 0x0;
|
||||
TIMER1_VAL;
|
||||
/* enable timer */
|
||||
|
|
@ -54,3 +54,11 @@ void tick_start(unsigned int interval_in_ms)
|
|||
(void)interval_in_ms;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_BOOTLOADER_USB_MODE
|
||||
void tick_stop(void)
|
||||
{
|
||||
CPU_INT_DIS = TIMER1_MASK;
|
||||
TIMER1_CFG = 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue