billroy / bitlash

Bitlash: a programmable command shell for arduino
http://bitlash.net
MIT License
342 stars 73 forks source link

Compiling bitlash for atmega64: /home/felicitus/sketchbook/libraries/bitlash/src/bitlash-parser.c:464:18: error: ‘GPIOR1’ was not declared in this scope #11

Open Drachenkaetzchen opened 10 years ago

Drachenkaetzchen commented 10 years ago

Hi,

when using bitlash with an atmega64, the compile process spits out the following error:

/home/felicitus/sketchbook/libraries/bitlash/src/bitlash-serial.c:401:7: error: ‘GPIOR0’ was not declared in this scope

The atmega64 doesn't have a GPIO register.

billroy commented 10 years ago

Yes, sorry, that is a platform-specific item and I don't have platform support for the Atmega64 yet. (Pull requests welcome.)

You can change the definition to use another spare general-purpose register, or just use a byte variable, and it should work just fine. Let me know if you need help sorting this out.

-br

On Oct 1, 2013, at 2:33 PM, "Timo A. Hummel" notifications@github.com wrote:

Hi,

when using bitlash with an atmega64, the compile process spits out the following error:

/home/felicitus/sketchbook/libraries/bitlash/src/bitlash-serial.c:401:7: error: ‘GPIOR0’ was not declared in this scope

The atmega64 doesn't have a GPIO register.

— Reply to this email directly or view it on GitHub.

Drachenkaetzchen commented 10 years ago

A simple workaround is to remove the define USE_GPIORS: https://github.com/billroy/bitlash/blob/master/src/bitlash.h#L692

matthijskooijman commented 10 years ago

It seems the relevant commit from #15 has already been merged, but didn't fix the issue completely. In commit 4321d4b in #23, I've really fixed this issue. @felicitus, could you check if this works for your Atmega64 setup (at least wrt the GPIO stuff)?