From 8e781cf8f3e09abf7b9a554e4de170e68bdf175b Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Fri, 24 Jul 2015 16:24:22 +0100 Subject: [PATCH] cores: Mega 8/16/32 and PORTA Still register portA, regardless of PORTA constant initialisation Signed-off-by: Michel Pollet --- simavr/cores/sim_megax.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.5