mrobe500 bootloader fix
Change-Id: I0ab99a427df34ef6c5899a280953250660ffc156
This commit is contained in:
parent
cddd8d66e2
commit
105a0eb0b7
1 changed files with 6 additions and 14 deletions
|
@ -18,7 +18,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "inttypes.h"
|
#include "inttypes.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
@ -31,21 +31,13 @@
|
||||||
#include "font.h"
|
#include "font.h"
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
#include "backlight-target.h"
|
|
||||||
#include "button.h"
|
#include "button.h"
|
||||||
#include "panic.h"
|
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "rb-loader.h"
|
#include "rb-loader.h"
|
||||||
#include "loader_strerror.h"
|
#include "loader_strerror.h"
|
||||||
#include "rbunicode.h"
|
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
#include "spi.h"
|
|
||||||
#include "uart-target.h"
|
|
||||||
#include "tsc2100.h"
|
|
||||||
#include "time.h"
|
|
||||||
#include "system-arm.h"
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
|
@ -60,7 +52,7 @@ void main(void)
|
||||||
set_fiq_status(FIQ_DISABLED);
|
set_fiq_status(FIQ_DISABLED);
|
||||||
system_init();
|
system_init();
|
||||||
kernel_init();
|
kernel_init();
|
||||||
|
|
||||||
/* Now enable interrupts */
|
/* Now enable interrupts */
|
||||||
set_irq_level(IRQ_ENABLED);
|
set_irq_level(IRQ_ENABLED);
|
||||||
set_fiq_status(FIQ_ENABLED);
|
set_fiq_status(FIQ_ENABLED);
|
||||||
|
@ -70,8 +62,8 @@ void main(void)
|
||||||
font_init();
|
font_init();
|
||||||
button_init();
|
button_init();
|
||||||
usb_init();
|
usb_init();
|
||||||
|
|
||||||
|
|
||||||
power_init();
|
power_init();
|
||||||
// enable_irq();
|
// enable_irq();
|
||||||
// enable_fiq();
|
// enable_fiq();
|
||||||
|
@ -112,7 +104,7 @@ void main(void)
|
||||||
reset_screen();
|
reset_screen();
|
||||||
lcd_update();
|
lcd_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(50);
|
sleep(50);
|
||||||
|
|
||||||
printf("ATA");
|
printf("ATA");
|
||||||
|
@ -146,5 +138,5 @@ void main(void)
|
||||||
rc = kernel_entry();
|
rc = kernel_entry();
|
||||||
|
|
||||||
/* Should not get here! */
|
/* Should not get here! */
|
||||||
return rc;
|
while(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue