summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c16
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
40char appsversion[]=APPSVERSION; 40char appsversion[]=APPSVERSION;
41 41
42int init(void);
43
42void app_main(void) 44void app_main(void)
43{ 45{
46 init();
44 browse_root(); 47 browse_root();
45} 48}
46 49
47#ifndef SIMULATOR 50#ifdef SIMULATOR
51
52int 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 */
50extern int poolstart[]; 63extern int poolstart[];
@@ -90,7 +103,6 @@ int init(void)
90 103
91int main(void) 104int main(void)
92{ 105{
93 init();
94 app_main(); 106 app_main();
95 107
96 while(1) { 108 while(1) {