Hi Cat, On Mon, Jul 4, 2011 at 12:55 PM, Cat C <catalin_cluj@hotmail.com> wrote: > > Hi there, > Looking at the delay functions, I see that: void _delay_us > ( > double > __us )has a maximal possible delay is 768 us / F_CPU in MHz. > But:If the avr-gcc toolchain has __builtin_avr_delay_cycles(unsigned long) > support, maximal possible delay is 4294967.295 us/ F_CPU in MHz. > How do I know if the avr-gcc toolchain has __builtin_avr_delay_cycles(unsigned long) support? I think that as long as you don't disable it on the command line, then the builtin support will be there. You can disable builtin functions using -fno-builtin or disable particular builtin functions using -fno-builtin-function (replace function with the name of the function). -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com
Message
Re: [AVR-Chat] Delay functions and "__builtin_avr_delay_cycles".
2011-07-05 by Dave Hylands