aboutsummaryrefslogtreecommitdiff
path: root/estorm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'estorm/main.c')
-rw-r--r--estorm/main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/estorm/main.c b/estorm/main.c
new file mode 100644
index 0000000..34a99db
--- /dev/null
+++ b/estorm/main.c
@@ -0,0 +1,19 @@
+/* Electric storm main code.
+ *
+ * This gets called as the payload of the crt0.
+ */
+
+#include "at91sam7s256.h"
+#include "crt0.h"
+
+#include "sys_timer.h"
+
+/*
+ * This is the first function to get executed after the bootstrapper
+ * does the bare metal board initialization. We arrive in this routine
+ * with interrupts disabled, so we're free to do all the setup we
+ * like.
+ */
+void kernel_main(void) {
+ sys_timer_init();
+}