Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors in files #27

Open
sege5641 opened this issue Sep 3, 2018 · 5 comments
Open

errors in files #27

sege5641 opened this issue Sep 3, 2018 · 5 comments

Comments

@sege5641
Copy link

sege5641 commented Sep 3, 2018

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
Copy link

ghost commented Sep 14, 2018

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
Copy link

tjcim commented Nov 24, 2018

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

@sege5641
Copy link
Author

I did.

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

@tjcim
Copy link

tjcim commented Nov 26, 2018

@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
Copy link

iKK001 commented Dec 11, 2018

Thanks tjcim, that helped !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants