Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: Some C help please !

2007-03-29 by David Kelly

On Mar 28, 2007, at 4:38 PM, kernels_nz wrote:

> But! To my dismay I found that the codevision header files dont
> contain defines for bits like SPIF in the SPSR (SPI status register)
> do the other compilers like GCC and IAR have header files that have
> the names of each bit of every register defined ?
>
> I did end up rewriting the code, and to me it is now a thing of
> beauty, but I had to go through the header file and #define all the
> bits I was using for shift and masking.

You were most certainly welcome to download the avr-libc headers to  
link into your project without having to retype everything. Might  
have been easier. Might not.

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

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.