diff options
Diffstat (limited to 'bootloader/rk27xx.c')
-rw-r--r-- | bootloader/rk27xx.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/bootloader/rk27xx.c b/bootloader/rk27xx.c new file mode 100644 index 0000000000..37778db6dc --- /dev/null +++ b/bootloader/rk27xx.c | |||
@@ -0,0 +1,45 @@ | |||
1 | #include "config.h" | ||
2 | #include <stdlib.h> | ||
3 | #include <stdio.h> | ||
4 | #include <string.h> | ||
5 | #include "inttypes.h" | ||
6 | #include "string.h" | ||
7 | #include "cpu.h" | ||
8 | #include "system.h" | ||
9 | #include "lcd.h" | ||
10 | #include "kernel.h" | ||
11 | #include "thread.h" | ||
12 | #include "backlight.h" | ||
13 | #include "backlight-target.h" | ||
14 | #include "font.h" | ||
15 | #include "common.h" | ||
16 | #include "version.h" | ||
17 | |||
18 | extern int show_logo( void ); | ||
19 | void main(void) | ||
20 | { | ||
21 | |||
22 | _backlight_init(); | ||
23 | |||
24 | system_init(); | ||
25 | kernel_init(); | ||
26 | enable_irq(); | ||
27 | |||
28 | lcd_init_device(); | ||
29 | _backlight_on(); | ||
30 | font_init(); | ||
31 | lcd_setfont(FONT_SYSFIXED); | ||
32 | |||
33 | show_logo(); | ||
34 | sleep(HZ*2); | ||
35 | |||
36 | while(1) | ||
37 | { | ||
38 | reset_screen(); | ||
39 | printf("GPIOA: 0x%0x", GPIO_PADR); | ||
40 | printf("GPIOB: 0x%0x", GPIO_PBDR); | ||
41 | printf("GPIOC: 0x%0x", GPIO_PCDR); | ||
42 | printf("GPIOD: 0x%0x", GPIO_PDDR); | ||
43 | sleep(HZ/10); | ||
44 | } | ||
45 | } | ||