avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Best practice for external variable (newbie-ish quest


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Best practice for external variable (newbie-ish question)
Date: Tue, 22 Nov 2005 07:09:04 +0100 (MET)

Matthew Smith <address@hidden> wrote:

> Became this:

>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)
>       smalldly();     // Don't rush the ADC ;-)

#define F_CPU 1000000UL
#include <avr/delay.h>  /* 1) */

...
        _delay_us(100);

1) For avr-libc 1.4.0, you can "upgrade" to <util/delay.h>.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]