[sam] properly turn off usb code when USBCON is not defined

This commit is contained in:
Travis Geiselbrecht 2012-05-22 20:07:28 -07:00
parent 5c14d66bee
commit 14ec1adc38
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#ifdef USBCON
/* Copyright (c) 2010, Peter Barrett
**
** Permission to use, copy, modify, and/or distribute this software for
@ -587,3 +589,5 @@ bool USB_::configured()
void USB_::poll()
{
}
#endif // USBCON

View File

@ -16,6 +16,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if defined(USBCON)
#include "variant.h"
#include <stdio.h>
@ -36,3 +38,5 @@ void loop() {
}
delay(10);
}
#endif