aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/wirish/boards.cpp b/wirish/boards.cpp
index 7d783db..04b359f 100644
--- a/wirish/boards.cpp
+++ b/wirish/boards.cpp
@@ -45,6 +45,7 @@
*/
#include <wirish/boards.h>
+#include <libmaple/libmaple_types.h>
#include <libmaple/flash.h>
#include <libmaple/nvic.h>
#include <libmaple/systick.h>
@@ -71,7 +72,7 @@ void init(void) {
}
/* Provide a default boardInit(). */
-__attribute__((weak)) void boardInit(void) {
+__weak void boardInit(void) {
}
/* You could farm this out to the files in boards/ if e.g. it takes