mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Beginning of an M:Robe 500i port. Currently only in the bootloader stage. Needs another piece of code to start the boot process - will be in the wiki.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14763 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a80c0e8b83
commit
7b97fe21c0
34 changed files with 2651 additions and 93 deletions
|
@ -105,7 +105,7 @@ static void remove_from_list(struct thread_entry **list,
|
|||
struct thread_entry *thread) ICODE_ATTR;
|
||||
*/
|
||||
|
||||
void switch_thread(bool save_context, struct thread_entry **blocked_list)
|
||||
void switch_thread(bool save_context, struct thread_entry **blocked_list)
|
||||
ICODE_ATTR;
|
||||
|
||||
static inline void store_context(void* addr) __attribute__ ((always_inline));
|
||||
|
@ -195,6 +195,11 @@ static inline void core_sleep(void)
|
|||
CLKCON |= (1 << 2); /* set IDLE bit */
|
||||
for(i=0; i<10; i++); /* wait for IDLE */
|
||||
CLKCON &= ~(1 << 2); /* reset IDLE bit when wake up */
|
||||
}
|
||||
#else
|
||||
static inline void core_sleep(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue