Hi! I'm trying to use the Arduino port of the V-USB AVR library in order to develop a custom HID device. If I simulate my physical device behavior and just use VUSB, everything works. If I use my physical device and send debug information only through Serial communication, everything works. Unfortunately when I try to compile a project using both I get this error:
core.a(WInterrupts.c.o): In function `__vector_1': C:\Standalone\Programmazione\arduino-1.0.1\hardware\arduino\cores\arduino/WInterrupts.c:273: multiple definition of `__vector_1' USBDriver\usbdrvasm.S.o:(.text+0x32): first defined here
As I understand, the problem should be caused by the fact that my device is using the interrupt on digital pin 3 and the attachInterrupt function on the software side, while VUSB uses digital pin 2 and reimplements the interrupts functions. Looking around the basic solution is to simply disable the Arduino interrupts functions... however I need them for my device.
How can I use both things at the same time?