Protect usb_serial.c from Arduino IDE.

This silly "IDE" simply processes every source code file it can find ...
This commit is contained in:
Markus Hitter 2012-10-29 13:07:30 +01:00
parent 481354a4a7
commit b4bf8144fc
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,9 @@
// Version 1.7: fix usb_serial_set_control
// 2012-10-17: Import to Teacup firmware
/* protect this file from Arduino IDE */
#ifdef USE_USB
#define USB_SERIAL_PRIVATE_INCLUDE
#include "usb_serial.h"
@ -934,4 +937,4 @@ ISR(USB_COM_vect)
UECONX = (1<<STALLRQ) | (1<<EPEN); // stall
}
#endif /* USE_USB */