stdio.h not in avr-gcc include directory

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

I am trying to compile the ATmega103 files written by Robert Stuart on April 13, 2000. In the "lcd.h" file the include section calls which produces an error when using avr-gcc because it is not in the include directory. Does anyone know where I can get a copy of stdio.h that will work with avr-gcc? Are there any better examples of code that will demonstrate the lcd function using a ATmega103 on a STK300 board?

admin's test signature
 

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

What function declared in stdio.h you are interested in? If it is printf, then you can use printf_P, distributed in avr-libc, directory contrib. If you want to print the chars not on rs but on lcd, then you must change only the function that prints a char - all the output of printf_P will be redirected to the lcd.

I wish you success!

admin's test signature