X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=teensy3%2Fusb_mem.c;h=5912b67ad628b515b78e5472dd28caac76acfed9;hb=a773ac06cdc55be51ebc0bc61aa6066b54746c7d;hp=c6e902a80d96de843c941551be7c926294d9fac1;hpb=35f00b6caaac4a8b93247913f0863bcd8f419041;p=megadrive.git diff --git a/teensy3/usb_mem.c b/teensy3/usb_mem.c index c6e902a..5912b67 100644 --- a/teensy3/usb_mem.c +++ b/teensy3/usb_mem.c @@ -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. @@ -28,9 +28,11 @@ * SOFTWARE. */ -#include "mk20dx128.h" -//#include "HardwareSerial.h" #include "usb_dev.h" +#if F_CPU >= 20000000 && defined(NUM_ENDPOINTS) + +#include "kinetis.h" +//#include "HardwareSerial.h" #include "usb_mem.h" __attribute__ ((section(".usbbuffers"), used)) @@ -104,3 +106,4 @@ void usb_free(usb_packet_t *p) //serial_print("\n"); } +#endif // F_CPU >= 20 MHz && defined(NUM_ENDPOINTS)