I figured I wanted to put in a new one. However it is two computers later and so I had to start from the beginning.
I was able to get it working so when I do "make program-digg" (or any of the other ones that are already created) it works fine. However, when I created my own mypov and tried to do "make mypov.hex" I get the following error:
Code: Select all
Compiling: mypov.c
avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=8000000 -Wa,-adhlns=mypov.lst -mmcu=attiny2313 -std=gnu99 mypov.c -o mypov.o
In file included from mypov.c:3:0:
/usr/local/CrossPack-AVR-20131216/avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." [-Wcpp]
#warning "This header file is obsolete. Use <avr/interrupt.h>."
^
mypov.c:73:9: error: attempt to use poisoned "SIG_TIMER1_COMPA"
SIGNAL( SIG_TIMER1_COMPA ) {
^
In file included from mypov.c:2:0:
mypov.c: In function 'SIG_TIMER1_COMPA':
mypov.c:73:9: warning: 'SIG_TIMER1_COMPA' appears to be a misspelled signal handler [enabled by default]
SIGNAL( SIG_TIMER1_COMPA ) {
^
make: *** [mypov.o] Error 1