Commit 119547cb36f2e650d9187e9fcfda02d2d7297828
authorMichel Pollet <buserror@gmail.com>
Fri, 6 Apr 2012 17:25:43 +0000 (18:25 +0100)
committerMichel Pollet <buserror@gmail.com>
Fri, 6 Apr 2012 17:25:43 +0000 (18:25 +0100)
This was triggering a limit in the AVR core IO table

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
examples/board_i2ctest/i2ctest.c
simavr/cores/sim_mega1280.c

index 7d191de155a43a1c47019c2827faa907d9e21993..afa5fd7108ea32ea9942f951fc2bd74abd1da15a 100644 (file)
@@ -82,9 +82,6 @@ int main(int argc, char *argv[])
        printf( "\nDemo launching:\n");
 
        int state = cpu_Running;
-       while((state!= cpu_Done)&&(state != cpu_Crashed ))
+       while ((state != cpu_Done) && (state != cpu_Crashed))
                state = avr_run(avr);
-
-       printf("\n\nPress enter to terminate the program.");
-       getchar();
 }
index acdecd3b08f03b58977835cfdcaab4d95f601d75..e943cf98322b02eae6375ee169d6e7bb2387de09 100755 (executable)
@@ -623,7 +623,7 @@ void m1280_init(struct avr_t * avr)
        avr_ioport_init(avr, &mcu->portg);
        avr_ioport_init(avr, &mcu->porth);
        avr_ioport_init(avr, &mcu->portj);
-//     avr_ioport_init(avr, &mcu->portk);
+       avr_ioport_init(avr, &mcu->portk);
        avr_ioport_init(avr, &mcu->portl);
 
        avr_uart_init(avr, &mcu->uart0);