adafruit / Adafruit-Trinket-USB

Arduino libraries allowing Trinket to act as USB devices
209 stars 75 forks source link

errors in files #27

Open sege5641 opened 6 years ago

sege5641 commented 6 years ago

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

             from d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\cmdline_defs.h:26,

             from d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\usbdrvasm_includer.S:22:

d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\usbconfig.h:392:33: error: operator '*' has no left operand

define USB_INTR_PENDING GIFR

                             ^

d:\users\user\Documents\Arduino\libraries\TrinketKeyboard\usbdrv/usbdrvasm.S:73:5: note: in expansion of macro 'USB_INTR_PENDING'

if USB_INTR_PENDING < 0x40 / This is an I/O address, use in and out /

 ^

exit status 1 Error compiling for board Adafruit Trinket (ATtiny85 @ 8MHz).

ghost commented 6 years ago

I'm having the exact same error. I'm using Win10 and I did unzipped all the libraries files. I just tried to verify the example given and I received this error.

tjcim commented 5 years ago

@sege5641 @sangar-happy - Did either of you figure this out?

sege5641 commented 5 years ago

I did.

Download from mine https://github.com/sege5641/Adafruit-Trinket-USB

tjcim commented 5 years ago

@sege5641 - Thank you. I did pretty much the same things. For anyone else:

Add this before the #define __SFR_OFFSET 0 (line 18)

#undef __SFR_OFFSET

Line 73 - change it to this:

#if 0x41 < 0x40
iKK001 commented 5 years ago

Thanks tjcim, that helped !!