diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/main.c b/apps/main.c index 677eeb5b21..1eed068f14 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -127,7 +127,8 @@ static void init(void); | |||
127 | #ifdef SIMULATOR | 127 | #ifdef SIMULATOR |
128 | void app_main(void) | 128 | void app_main(void) |
129 | #else | 129 | #else |
130 | static void app_main(void) | 130 | int main(void) __attribute__((noreturn)); |
131 | int main(void) | ||
131 | #endif | 132 | #endif |
132 | { | 133 | { |
133 | int i; | 134 | int i; |
@@ -640,17 +641,5 @@ void cop_main(void) | |||
640 | } | 641 | } |
641 | #endif /* CPU_PP */ | 642 | #endif /* CPU_PP */ |
642 | 643 | ||
643 | int main(void) | ||
644 | { | ||
645 | app_main(); | ||
646 | |||
647 | while(1) { | ||
648 | #if (CONFIG_LED == LED_REAL) | ||
649 | led(true); sleep(HZ/10); | ||
650 | led(false); sleep(HZ/10); | ||
651 | #endif | ||
652 | } | ||
653 | return 0; | ||
654 | } | ||
655 | #endif | 644 | #endif |
656 | 645 | ||