no delay functions in ASF for xmega??

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I cant find any delay functions in the ASF codes...anyone know where it is?

There normally is the delay_ms() function available for other UC3 and Mega chips...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you talking about AVR-Libc? The in that works just as well for Xmega as it does for Mega or Tiny.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

oh ok... i included it and it compiles without warnings now. but there is no such delay.h header file found when you look through the project explorer...so its not included from the ASF files...but looks like from GNU libc?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

when you look through the project explorer

I don't know what that is so cannot comment.
Quote:

o its not included from the ASF files...but looks like from GNU libc

It's neither. It is a component of AVR-LibC. Manual here with list of what it provides:

http://www.nongnu.org/avr-libc/u...