forked from len0rd/rockbox
Rolo problem fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6787 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9cfa47a226
commit
a0add0c97f
1 changed files with 4 additions and 8 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
|
#include "buffer.h"
|
||||||
#include "rolo.h"
|
#include "rolo.h"
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
#include "powermgmt.h"
|
#include "powermgmt.h"
|
||||||
|
@ -113,6 +114,7 @@ void main(void)
|
||||||
power_init();
|
power_init();
|
||||||
system_init();
|
system_init();
|
||||||
kernel_init();
|
kernel_init();
|
||||||
|
buffer_init();
|
||||||
lcd_init();
|
lcd_init();
|
||||||
show_logo();
|
show_logo();
|
||||||
set_irq_level(0);
|
set_irq_level(0);
|
||||||
|
@ -180,14 +182,8 @@ void main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
{ // rolo the firmware
|
{ // rolo the firmware
|
||||||
int fd;
|
static const char filename[] = "/" BOOTFILE;
|
||||||
static const char filename[] = BOOTFILE;
|
rolo_load((char*)filename); /* won't return if started */
|
||||||
fd = open(filename, O_RDONLY);
|
|
||||||
if(fd >= 0) /* no complaint if it doesn't exit */
|
|
||||||
{
|
|
||||||
close(fd);
|
|
||||||
rolo_load((char*)filename); /* start if it does */
|
|
||||||
}
|
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
lcd_puts(0, 0, "No firmware");
|
lcd_puts(0, 0, "No firmware");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue