aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsamd/main.c')
-rw-r--r--src/atsamd/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/atsamd/main.c b/src/atsamd/main.c
index a5b7196b..d3943e6a 100644
--- a/src/atsamd/main.c
+++ b/src/atsamd/main.c
@@ -4,12 +4,14 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
+#include "board/armcm_boot.h" // armcm_main
+#include "internal.h" // SystemInit
#include "sched.h" // sched_main
-// Main entry point
-int
-main(void)
+// Main entry point - called from armcm_boot.c:ResetHandler()
+void
+armcm_main(void)
{
+ SystemInit();
sched_main();
- return 0;
}