aboutsummaryrefslogtreecommitdiffstats
path: root/examples/blinky.cpp
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-04-29 01:14:03 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-04-29 01:14:03 -0400
commitb5ddce7dc81a0ae313cce635bce02028db32d5de (patch)
treeea67f3f0c3c288c3c0e4b31454e54cb016a9b1b0 /examples/blinky.cpp
parent2c51cc19ccb5c08eb4d89d197623da6cd92b35f7 (diff)
downloadlibrambutan-b5ddce7dc81a0ae313cce635bce02028db32d5de.tar.gz
librambutan-b5ddce7dc81a0ae313cce635bce02028db32d5de.zip
Fixed examples, added spi example, moved pure virtual function handler
out of main to cxxabi-compat.cpp.
Diffstat (limited to 'examples/blinky.cpp')
-rw-r--r--examples/blinky.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/examples/blinky.cpp b/examples/blinky.cpp
index 8a8b0d8..e156bf2 100644
--- a/examples/blinky.cpp
+++ b/examples/blinky.cpp
@@ -23,20 +23,10 @@
* ****************************************************************************/
/**
- * @file example_main_blinky.cpp
- *
- * @brief Example main.cpp. Blinks the LED, pin 13
+ * @brief blinky.cpp. Blinks the LED, pin 13
*/
-#ifndef _EXAMPLE_MAIN_BLINKY_H_
-#define _EXAMPLE_MAIN_BLINKY_H_
-
-#endif
-#include "wiring.h"
-#include "HardwareSerial.h"
-#include "wiring_math.h"
-#include "HardwareUsb.h"
-#include "usb.h"
+#include "wirish.h"
#define TEST_PIN 13
@@ -61,11 +51,3 @@ int main(void) {
}
return 0;
}
-
-/* Required for C++ hackery */
-/* TODO: This really shouldn't go here... move it later
- * */
-extern "C" void __cxa_pure_virtual(void) {
- while(1)
- ;
-}