diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index 1150fda0a8..5f05bb54f5 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -39,12 +39,25 @@ | |||
39 | 39 | ||
40 | char appsversion[]=APPSVERSION; | 40 | char appsversion[]=APPSVERSION; |
41 | 41 | ||
42 | int init(void); | ||
43 | |||
42 | void app_main(void) | 44 | void app_main(void) |
43 | { | 45 | { |
46 | init(); | ||
44 | browse_root(); | 47 | browse_root(); |
45 | } | 48 | } |
46 | 49 | ||
47 | #ifndef SIMULATOR | 50 | #ifdef SIMULATOR |
51 | |||
52 | int init(void) | ||
53 | { | ||
54 | init_threads(); | ||
55 | lcd_init(); | ||
56 | show_logo(); | ||
57 | sleep(HZ/2); | ||
58 | } | ||
59 | |||
60 | #else | ||
48 | 61 | ||
49 | /* defined in linker script */ | 62 | /* defined in linker script */ |
50 | extern int poolstart[]; | 63 | extern int poolstart[]; |
@@ -90,7 +103,6 @@ int init(void) | |||
90 | 103 | ||
91 | int main(void) | 104 | int main(void) |
92 | { | 105 | { |
93 | init(); | ||
94 | app_main(); | 106 | app_main(); |
95 | 107 | ||
96 | while(1) { | 108 | while(1) { |