From b5ddce7dc81a0ae313cce635bce02028db32d5de Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Thu, 29 Apr 2010 01:14:03 -0400 Subject: Fixed examples, added spi example, moved pure virtual function handler out of main to cxxabi-compat.cpp. --- main.cpp.example | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'main.cpp.example') diff --git a/main.cpp.example b/main.cpp.example index 1067030..ae63996 100644 --- a/main.cpp.example +++ b/main.cpp.example @@ -23,20 +23,15 @@ * ****************************************************************************/ /** - * @file example_main.cpp - * * @brief Sample main.cpp file. Blinks an LED, sends a message out USART2 * and turns on PWM on pin 2 */ -#include "wiring.h" +#include "wirish.h" #include "HardwareSerial.h" #include "HardwareUsb.h" -#include "math.h" #include "usb.h" -uint8 bytes_in; - #define LED_PIN 13 #define PWM_PIN 2 @@ -77,11 +72,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) - ; -} -- cgit v1.2.3