Makefile:
- Replace "ARCH=atmega161" with "ARCH=atmega163".
- Replace "AS=avr-as" with "AS=avr-gcc -c -mmcu=$(ARCH) -x assembler-with-cpp".
commands.h:
- Replace "io.h" with "avr/io.h".
config.h:
- Replace "__AVR_ATmega161__" with "__AVR_ATmega163__".
hal.h:
- Replace "io.h" with "avr/io.h".
- Replace "oub(a, b)" with "b = a".
- Add "#define eeprom_rb eeprom_read_byte".
- Add "#define eeprom_wb eeprom_write_byte".
types.h:
- Replace "pgmspace.h" with "avr/pgmspace.h".
- Copy tea-atmega161.S as tea-atmega163.S.
I wrote sosse.bin and eedata.bin onto ATMega Card ATMega163+24C256, and got ATR (Answer To Reset).
However, I could not access to the card with APDU command.
The card seems to be hanged up... Umm.