aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-04-20 16:57:44 -0400
committerbnewbold <bnewbold@robocracy.org>2010-04-20 16:57:44 -0400
commitb21f5b6f55566a6258092b9c8e658f898188ab12 (patch)
tree049fd5af9f3723abfecdc3dbbfbad70b6970c5b5
parent7d2e9958ef4b42faf5f02671edc534686e853fa8 (diff)
downloadlibrambutan-b21f5b6f55566a6258092b9c8e658f898188ab12.tar.gz
librambutan-b21f5b6f55566a6258092b9c8e658f898188ab12.zip
removed annoying warnings from core/wiring.c and fixed two compile errors on with the example main.cpp
-rw-r--r--core/wiring.c2
-rw-r--r--main.cpp.example3
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