Society of Robots - Robot Forum

Software => Software => Topic started by: spizzak on July 26, 2009, 05:15:04 PM

Title: Atmega 328 using $50 code
Post by: spizzak on July 26, 2009, 05:15:04 PM
Hey everyone, I get this warning when I change atmega8 to atmega328p in the makefile. Can anyone explain this or tell me how to fix it? Thanks

a2d.c:110: warning: 'SIG_ADC' appears to be a misspelled signal handler
Title: Re: Atmega 328 using $50 code
Post by: Admin on August 13, 2009, 10:39:26 AM
hmmmm a google search only points to this thread, and:
http://hubbard.engr.scu.edu/embedded/avr/doc/avr-libc/avr-libc-user-manual.pdf

Just a guess, but try adding signal.h to your includes.

Quote
The AVR Libc package provides a subset of the standard C library for Atmel AVR 8-bit ...... invalid input character, such as an alphabetic character for a d conversion. The value ...... a handler for the ADC interrupt. #include <avr/signal.h> ... Thus, by misspelling one of the names below in a call to. SIGNAL() or ...