I am trying to get up and running with TWI/I2C using WinAvr under AVR Studio, but when I go to compile sample TWI/I2C C files (from AvrFreaks, etc) some symbolic constants, like TWEN, are missing. I am doing this for a ATmega644P controller and this is set in my Project Configuration in AVR Studio. I can otherwise program the controller just fine with non-TWI code. My installation of WinAvr has the following include folder structure: WinAvr\avr\include WinAvr\avr\include\avr WinAvr\avr\include\avr\compat(*) WinAvr\avr\include\compat(*) WinAvr\avr\include\util(*) There is a TWI.H file in each of the (*) folders. If I search all the files under ...\include for TWEN, the only one that seems somewhat relevant to the ATmega644P is a file with name IOM644PA.H (with an "A" appended). But the Project Configuration/Compile does not seem to use this file. The above folder structure is very confusing. Why, for one thing, the multiple TWI.H files? Can someone please straighten me out on this? I've been battling this for a couple of days now and getting nowhere. Thanks, Steve __________ Information from ESET Smart Security, version of virus signature database 5742 (20101229) __________ The message was checked by ESET Smart Security. http://www.eset.com
Message
WinAvr TWI include files
2010-12-29 by Steve Hodge
Attachments
- No local attachments were found for this message.