aboutsummaryrefslogtreecommitdiffstats
path: root/examples/blinky.cpp
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-03-04 20:25:26 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-03-08 13:43:41 -0500
commit8863418f0595c8dfd7d01081be941541539827bb (patch)
tree94b86a04e6808df1390e88d809dd54c9aa8edccb /examples/blinky.cpp
parent8241a4c640d036faa148350219ad3deea72a23c2 (diff)
downloadlibrambutan-8863418f0595c8dfd7d01081be941541539827bb.tar.gz
librambutan-8863418f0595c8dfd7d01081be941541539827bb.zip
Brought examples/ up to date; PIN_MAP bugfix for D24.
(Cherry-pick from refactor with some modifications).
Diffstat (limited to 'examples/blinky.cpp')
-rw-r--r--examples/blinky.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/blinky.cpp b/examples/blinky.cpp
index 5611987..209a6e6 100644
--- a/examples/blinky.cpp
+++ b/examples/blinky.cpp
@@ -1,4 +1,4 @@
-// Blinks the LED, pin 13
+// Blinks the built-in LED
#include "wirish.h"
@@ -20,8 +20,8 @@ void loop() {
}
// Force init to be called *first*, i.e. before static object allocation.
-// Otherwise, statically allocated object that need libmaple may fail.
- __attribute__(( constructor )) void premain() {
+// Otherwise, statically allocated objects that need libmaple may fail.
+__attribute__((constructor)) void premain() {
init();
}