From d6c57415a39655c62763690f14a1055fc48b7989 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 23 Apr 2012 15:51:03 +0200 Subject: [PATCH] [sam] fixed compilation problem with temporary USB driver --- hardware/arduino/sam/cores/sam/USB/CDC.cpp | 2 +- hardware/arduino/sam/cores/sam/USB/HID.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/arduino/sam/cores/sam/USB/CDC.cpp b/hardware/arduino/sam/cores/sam/USB/CDC.cpp index 1ee3a488a..13a3d3afd 100644 --- a/hardware/arduino/sam/cores/sam/USB/CDC.cpp +++ b/hardware/arduino/sam/cores/sam/USB/CDC.cpp @@ -16,11 +16,11 @@ ** SOFTWARE. */ +#if defined(USBCON) #include "Platform.h" #include "USBAPI.h" #include -#if defined(USBCON) #ifdef CDC_ENABLED #if (RAMEND < 1000) diff --git a/hardware/arduino/sam/cores/sam/USB/HID.cpp b/hardware/arduino/sam/cores/sam/USB/HID.cpp index ac6360844..0bdf444af 100644 --- a/hardware/arduino/sam/cores/sam/USB/HID.cpp +++ b/hardware/arduino/sam/cores/sam/USB/HID.cpp @@ -16,11 +16,11 @@ ** SOFTWARE. */ +#if defined(USBCON) #include "Platform.h" #include "USBAPI.h" #include "USBDesc.h" -#if defined(USBCON) #ifdef HID_ENABLED //#define RAWHID_ENABLED @@ -517,4 +517,4 @@ size_t Keyboard_::write(uint8_t c) #endif -#endif /* if defined(USBCON) */ \ No newline at end of file +#endif /* if defined(USBCON) */