Error for using AT Tiny 45 program for AT Tiny 44
I modified hello.light.45.make and hello.light.45.c from Neil to use a photodetector on an AT Tiny 44 MCU.
$ make -f hello.photo.44.make avr-gcc -mmcu=attiny44 -Wall -Os -DF_CPU=8000000 -I./ -o hello.photo.44.out hello.photo.44.c hello.photo.44.c: In function ‘main’: hello.photo.44.c:120:18: error: ‘REFS2’ undeclared (first use in this function) @@ -483,6 +483,9 @@ program-ice: $(PROJECT).hex hello.photo.44.make:13: recipe for target 'hello.photo.44.out' failed make: *** [hello.photo.44.out] Error 1
The changes are described in my embedded programing page http://www.fabacademy.org/2018/labs/fablabzoi/students/ramiro-ordonez/lecionaroj/enigita_programado.en.html . Are those changes not enough to make the same photo-transistor work on the AT Tiny 44 instead of the AT Tiny 45?