X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=teensy3%2Fusb_desc.h;h=c3cf15cfc9a00c5f7ed8cd5311a0a9b78c414ff1;hb=a773ac06cdc55be51ebc0bc61aa6066b54746c7d;hp=958ca36d6c32de316a02711639618438f24440b8;hpb=f359b935ea6628421393610cf14f9fe6887b0d4c;p=megadrive.git diff --git a/teensy3/usb_desc.h b/teensy3/usb_desc.h index 958ca36..c3cf15c 100644 --- a/teensy3/usb_desc.h +++ b/teensy3/usb_desc.h @@ -10,10 +10,10 @@ * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * - * 1. The above copyright notice and this permission notice shall be + * 1. The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * - * 2. If the Software is incorporated into a build system that allows + * 2. If the Software is incorporated into a build system that allows * selection among a list of target devices, then similar target * devices manufactured by PJRC.COM must be included in the list of * target devices and selectable in the same manner. @@ -31,6 +31,8 @@ #ifndef _usb_desc_h_ #define _usb_desc_h_ +#if F_CPU >= 20000000 + // This header is NOT meant to be included when compiling // user sketches in Arduino. The low-level functions // provided by usb_dev.c are meant to be called only by @@ -293,6 +295,7 @@ let me know? http://forum.pjrc.com/forums/4-Suggestions-amp-Bug-Reports #endif +#ifdef NUM_ENDPOINTS // NUM_ENDPOINTS = number of non-zero endpoints (0 to 15) extern const uint8_t usb_endpoint_config_table[NUM_ENDPOINTS]; @@ -304,6 +307,8 @@ typedef struct { } usb_descriptor_list_t; extern const usb_descriptor_list_t usb_descriptor_list[]; +#endif // NUM_ENDPOINTS +#endif // F_CPU >= 20 MHz #endif