So hatte grade etwas Zeit und war dann mal so nett.
Is ja reines find and Replace mit den Registerumbenennungen, Rest macht
der Compiler.
Compileroutput:
> "make.exe" all
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I -Wa,-ahlms=uDMX.lst
-mmcu=atmega168 -I. uDMX.c -o uDMX.o
uDMX.c:211: warning: function declaration isn't a prototype
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I
-Wa,-ahlms=usbdrv/usbdrv.lst -mmcu=atmega168 -I. usbdrv/usbdrv.c -o
usbdrv/usbdrv.o
usbdrv/usbdrv.c: In function 'usbInit':
usbdrv/usbdrv.c:506: warning: cast from pointer to integer of different
size
usbdrv/usbdrv.c:507: warning: cast from pointer to integer of different
size
avr-gcc usbdrv/usbdrvasm.S usbdrv/usbdrv.o uDMX.o
-Wl,-Map=uDMX.map,--cref -mmcu=atmega168 -o uDMX.elf
avr-objcopy -O ihex \
--change-section-address .data-0x800000 \
--change-section-address .bss-0x800000 \
--change-section-address .noinit-0x800000 \
--change-section-address .eeprom-0x810000 \
uDMX.elf uDMX.cof
avr-objcopy: --change-section-vma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-lma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-vma .noinit+0xff800000 never used
avr-objcopy: --change-section-lma .noinit+0xff800000 never used
avr-objcopy -O ihex -R .eeprom uDMX.elf uDMX.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
--change-section-lma .eeprom=0 -O ihex uDMX.elf uDMX.eep
c:\WinAVR-20100110\bin\avr-objcopy.exe: --change-section-lma
.eeprom=0x00000000 never used
avr-size uDMX.elf
text data bss dec hex filename
2884 8 577 3469 d8d uDMX.elf
Errors: none
rm usbdrv/usbdrv.o
> Process Exit Code: 0
> Time Taken: 00:01