aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-05 18:52:33 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-07 03:38:30 -0400
commit9d5c8a6b9a880db7d41fdd0fcf29f7d0eac823fd (patch)
treebe147d56b1b1efb45c16df6bd65c11bced779886 /wirish
parent03722806311d8646cbce46ca6bb2543c56cab56e (diff)
downloadlibrambutan-9d5c8a6b9a880db7d41fdd0fcf29f7d0eac823fd.tar.gz
librambutan-9d5c8a6b9a880db7d41fdd0fcf29f7d0eac823fd.zip
maple/board.cpp: Demo weakness of boardInit().
This shows people what to do to write boardInit(), but also how to save work if they don't need it. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards/maple/board.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/wirish/boards/maple/board.cpp b/wirish/boards/maple/board.cpp
index 1f0e141..42c847b 100644
--- a/wirish/boards/maple/board.cpp
+++ b/wirish/boards/maple/board.cpp
@@ -43,8 +43,13 @@
// When defining your own board.cpp, you can put extra code in this
// function if you have anything you want done on reset, before main()
// or setup() are called.
+//
+// If there's nothing special you need done, feel free to leave this
+// function out, as we do here.
+/*
void boardInit(void) {
}
+*/
// Pin map: this lets the basic I/O functions (digitalWrite(),
// analogRead(), pwmWrite()) translate from pin numbers to STM32