diff options
Diffstat (limited to 'src/lpc176x/main.c')
-rw-r--r-- | src/lpc176x/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lpc176x/main.c b/src/lpc176x/main.c index 79001e72..7f19f8c0 100644 --- a/src/lpc176x/main.c +++ b/src/lpc176x/main.c @@ -4,6 +4,7 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. +#include "board/armcm_boot.h" // armcm_main #include "internal.h" // enable_pclock #include "sched.h" // sched_main @@ -56,10 +57,10 @@ enable_pclock(uint32_t pclk) } } -// Main entry point -int -main(void) +// Main entry point - called from armcm_boot.c:ResetHandler() +void +armcm_main(void) { + SystemInit(); sched_main(); - return 0; } |