avrlib and arduino

I've been experimenting with the board for a week or two and have had no problems getting the basics to work. I'm curious about how to call down to the avrlib for lower level access to the atmega. Is this possible? When I try to include a header file I get an error at the "#" character.

I noticed that one of the bugs listed at the Arduino developer site is to remove dependancy on the avrlib. Should I not even be thinking about using it because it's going to go away? I guess in general I'm not clear about how the Arduino language/environment is implemented and how the build process for an Arduino program really works. Is there any more detailed info hiding on the site about this?

For example, I notice that there's a "targets" folder in the lib folder. Can I drag .h and .c files from the avrlib folder (or code I've written myself) to the targets/arduino folder to get access to those things?

thanks for any info,

darren

hy

just for your last question, yes you can add some .c and .h files to compile them...
take a look at lib>targets>arduino>wiring.c for includes

regards

eric

So if a header is included by wiring.c, the symbols in it are availalble to sketches?

i think. but there'll be no colored syntax.
i've tried with lcd lib and it works.
no error at compilation.
but don't forget there is only 7Ko of memory for your sketch (include libs)

eric

Hello,

I'm interested in adding interrupt support to my Arduino program. I see there is extint.c in avrlib. From looking at the way targets are set up, I figured I could copy extint.c/h into the lib/targets/Arduino folder and it would just work. The header file is getting included now that I've added it to wiring.h, but the build system isn't compiling the .c file. How exactly does the Arduino build system work? Is there any documentation on this? I'd be happy to write something up if someone could provide a few clues. I'm assuming there are others like me who are happy with the Arduino system but want to add a few things. I've searched the list archives in vain. Any help much appreciated!

thanks,

darren

I wrote up a quick description of the Arduino build process in the playground:
http://www.arduino.cc/playground/Learning/BuildProcess

Please feel free to edit it, add to it, or ask about anything that still doesn't make sense.

Thanks for asking this, btw, I've meaning to write something up for a while.