Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: WinAvr TWI include files

2010-12-29 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Steve Hodge" <steve@...> wrote:
>But the Project Configuration/Compile does
>not seem to use [the file iom644PA.h].
The part-specific include file will be included automatically if:
1) you include "avr/io.h"
2) you properly define the target MCU so that it gets passed to the compiler via the -mmcu option.

Failure to do either of these will result in the register/bit names not being present.

> Why, for one thing, the multiple TWI.H files?
The avr-libc documentation suggests including "util/twi.h".  Why not just follow that advice?  The other twi.h files may be in their respective locations for backward compatibility with previous versions.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.