mirror of https://github.com/noisymime/Arduino.git
[sam] properly turn off usb code when USBCON is not defined
This commit is contained in:
parent
5c14d66bee
commit
14ec1adc38
|
@ -1,3 +1,5 @@
|
||||||
|
#ifdef USBCON
|
||||||
|
|
||||||
/* Copyright (c) 2010, Peter Barrett
|
/* Copyright (c) 2010, Peter Barrett
|
||||||
**
|
**
|
||||||
** Permission to use, copy, modify, and/or distribute this software for
|
** Permission to use, copy, modify, and/or distribute this software for
|
||||||
|
@ -587,3 +589,5 @@ bool USB_::configured()
|
||||||
void USB_::poll()
|
void USB_::poll()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // USBCON
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(USBCON)
|
||||||
|
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -36,3 +38,5 @@ void loop() {
|
||||||
}
|
}
|
||||||
delay(10);
|
delay(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue