buserror / simavr

simavr is a lean, mean and hackable AVR simulator for linux & OSX
GNU General Public License v3.0
1.58k stars 368 forks source link

at90usb162 core stopped working #93

Closed hedrok closed 6 years ago

hedrok commented 10 years ago

Commit 242ec6c14416147e73b95ebc17ed0a67f934fa1c has broken support of at90usb162 core (in file simavr/Makefile) you've replaced upper=$${file/cores\/sim_}; with upper=$$global;

This way you disable at90usb162 core (global=usb162, and filename is 90usb162). In sim_core_decl.h you check for CONFIG_USB162, and in sim_core_config.h CONFIG90USB162 is defined. Unfortunately i don't have OSX to test solution that will work there, so i can't provide any fix. Besides, absolutely same substitution ${files/cores\/sim} is still present on line 161.

Thanks for your work.

flop01 commented 9 years ago

It is possible to rename the sim_90usb162.c file into sim_usb162.c so both auto-generations will use CONFIG_USB162, and the core will be available again. Regards