Here's the warnings:
I have no idea what that even means, so I can't fix it. But it works anyway.C:\cap_src>make all
-------- begin --------
avr-gcc (GCC) 4.1.1 (WinAVR 20070122)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or BANNED FOR A PARTICULAR PURPOSE.
Compiling C: cap_src_2313.c
avr-gcc -c -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-
adhlns=./cap_src_2313.lst -std=gnu99 -Wundef -MMD -MP -MF .dep/cap_src_2313.o.d
cap_src_2313.c -o cap_src_2313.o
cap_src_2313.c: In function 'main':
cap_src_2313.c:210: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:238: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:239: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:240: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:241: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:245: warning: passing argument 2 of 'eeprom_read_block' makes pointer from integer without a cast
cap_src_2313.c:253: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:254: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:255: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:256: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
cap_src_2313.c:260: warning: passing argument 2 of 'eeprom_read_block' makes pointer from integer without a cast
Linking: cap_src_2313.elf
avr-gcc -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -fu
nsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adh
lns=cap_src_2313.o -std=gnu99 -Wundef -MMD -MP -MF .dep/cap_src_2313.elf.d cap_
src_2313.o --output cap_src_2313.elf -Wl,-Map=cap_src_2313.map,--cref -lm
Creating load file for Flash: cap_src_2313.hex
avr-objcopy -O ihex -R .eeprom cap_src_2313.elf cap_src_2313.hex
-------- end --------
rm cap_src_2313.o
C:\cap_src>make program-cap
avrdude -p attiny2313 -P com2 -c dasa -U flash:w:cap_src_2313.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "cap_src_2313.hex"
avrdude: input file cap_src_2313.hex auto detected as Intel Hex
avrdude: writing flash (1848 bytes):
Writing | ################################################## | 100% 4.73s
avrdude: 1848 bytes of flash written
avrdude: verifying flash memory against cap_src_2313.hex:
avrdude: load data flash data from input file cap_src_2313.hex:
avrdude: input file cap_src_2313.hex auto detected as Intel Hex
avrdude: input file cap_src_2313.hex contains 1848 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.36s
avrdude: verifying ...
avrdude: 1848 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\cap_src>