aboutsummaryrefslogtreecommitdiffstats
path: root/examples/spi_master.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-04 23:16:32 -0500
commit02e76ec27b5737bce836a5460427b538076f01ef (patch)
tree30fb1f21caba0504ff414edc853474f0d365f790 /examples/spi_master.cpp
parent7973deea3908f4f865f59c5e2df1eef6810cc70e (diff)
downloadlibrambutan-02e76ec27b5737bce836a5460427b538076f01ef.tar.gz
librambutan-02e76ec27b5737bce836a5460427b538076f01ef.zip
Brought examples/ up to date; PIN_MAP bugfix for D24.
Diffstat (limited to 'examples/spi_master.cpp')
-rw-r--r--examples/spi_master.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/spi_master.cpp b/examples/spi_master.cpp
index 9f6d81b..06cad02 100644
--- a/examples/spi_master.cpp
+++ b/examples/spi_master.cpp
@@ -60,13 +60,12 @@ 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();
}
-int main(void)
-{
+int main(void) {
setup();
while (1) {