From: Michel Pollet Date: Fri, 24 Jul 2015 15:24:22 +0000 (+0100) Subject: cores: Mega 8/16/32 and PORTA X-Git-Tag: v1.3~15 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=b03078d9a2d8a598c608afff677146bb91925d22;p=sx%2Fsimavr.git cores: Mega 8/16/32 and PORTA Still register portA, regardless of PORTA constant initialisation Signed-off-by: Michel Pollet --- diff --git a/simavr/cores/sim_megax.c b/simavr/cores/sim_megax.c index 717bc7e..c9077fa 100644 --- a/simavr/cores/sim_megax.c +++ b/simavr/cores/sim_megax.c @@ -32,9 +32,8 @@ void mx_init(struct avr_t * avr) avr_flash_init(avr, &mcu->selfprog); avr_watchdog_init(avr, &mcu->watchdog); avr_extint_init(avr, &mcu->extint); -#ifdef PORTA + // we try to initialize this one, in case it's declared avr_ioport_init(avr, &mcu->porta); -#endif avr_ioport_init(avr, &mcu->portb); avr_ioport_init(avr, &mcu->portc); avr_ioport_init(avr, &mcu->portd);