aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-03-20 17:46:41 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:54 -0400
commite486ef1d6d682f2fd4d3605ed873de030d10ae2a (patch)
tree8def7edf3b01401c328226f4f2323cb309b3072b /wirish
parent6b2dfa0f90b3422e4cbfa6f51770acde50b19cfa (diff)
downloadlibrambutan-e486ef1d6d682f2fd4d3605ed873de030d10ae2a.tar.gz
librambutan-e486ef1d6d682f2fd4d3605ed873de030d10ae2a.zip
wirish/boards.cpp: Use __weak instead of GCC attribute.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
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