aboutsummaryrefslogtreecommitdiff
path: root/playground/include
diff options
context:
space:
mode:
Diffstat (limited to 'playground/include')
-rw-r--r--playground/include/init_high.h7
-rw-r--r--playground/include/playground.h14
2 files changed, 12 insertions, 9 deletions
diff --git a/playground/include/init_high.h b/playground/include/init_high.h
index c6da514..7b1d555 100644
--- a/playground/include/init_high.h
+++ b/playground/include/init_high.h
@@ -3,13 +3,6 @@
extern "C" {
-void init_high();
-
-/**
- * Declare all the interrupt/event handlers as weak symbols and make them aliases of the default handler.
- */
-extern void Default_Handler() __attribute__((weak));
-
extern void _Reset_Handler();
extern void NMI_Handler();
diff --git a/playground/include/playground.h b/playground/include/playground.h
index c224908..3ccfeeb 100644
--- a/playground/include/playground.h
+++ b/playground/include/playground.h
@@ -1,10 +1,20 @@
#ifndef PLAYGROUND_H
#define PLAYGROUND_H
-extern "C" void halt();
+extern "C"
+void halt();
+
+extern "C"
+void init_high();
+
+extern "C"
+int main();
+
+extern "C"
+void Default_Handler();
template<typename T, size_t N>
-static inline
+static inline constexpr
size_t SizeOfArray(const T(&)[N]) {
return N;
}