From b21f5b6f55566a6258092b9c8e658f898188ab12 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 20 Apr 2010 16:57:44 -0400 Subject: removed annoying warnings from core/wiring.c and fixed two compile errors on with the example main.cpp --- core/wiring.c | 2 -- main.cpp.example | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/wiring.c b/core/wiring.c index 0548e6a..803b571 100644 --- a/core/wiring.c +++ b/core/wiring.c @@ -50,10 +50,8 @@ void init(void) { void nvic_init(void) { #ifdef VECT_TAB_ROM nvic_set_vector_table(USER_ADDR_ROM, 0x0); -#warning writing to ROM #elif defined VECT_TAB_RAM nvic_set_vector_table(USER_ADDR_RAM, 0x0); -#warning writing to RAM #else // VECT_TAB_BASE /* Set the Vector Table base location at 0x08000000 */ nvic_set_vector_table(((uint32)0x08000000), 0x0); diff --git a/main.cpp.example b/main.cpp.example index 4130749..1067030 100644 --- a/main.cpp.example +++ b/main.cpp.example @@ -31,10 +31,11 @@ #include "wiring.h" #include "HardwareSerial.h" +#include "HardwareUsb.h" #include "math.h" #include "usb.h" -uint8_t bytes_in; +uint8 bytes_in; #define LED_PIN 13 #define PWM_PIN 2 -- cgit v1.2.3