[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible dela
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible delay |
Date: |
Mon, 4 Oct 2010 11:53:23 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
As Joerg Wunsch wrote:
> > Also, any reason why _ticks is chosen to be uint8_t type (but not
> > uint16_t or uint32_t)?
>
> Because the underlying _delay_loop_1 uses an 8-bit value.
p.s.: Of course, that doesn't apply to the case where the underlying
implementation can be based on __builtin_avr_delay_cycles, but we have
to remain compatible with environments where the compiler doesn't
offer this (after all, it's not even in the official GCC sources yet,
AFAIK).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)