Author Topic: Atmega 328 using $50 code  (Read 2267 times)

0 Members and 1 Guest are viewing this topic.

Offline spizzakTopic starter

  • Full Member
  • ***
  • Posts: 102
  • Helpful? 1
Atmega 328 using $50 code
« 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

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Atmega 328 using $50 code
« Reply #1 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 ...

 


Get Your Ad Here