# HG changeset patch # User Matt Johnston # Date 1370355121 -28800 # Node ID fd28c7358ce8fe79447b3b4a05d1e209d6a6e042 # Parent ca3a006e292c9181df20fbe055f6c958be274afd more additions, set ports diff -r ca3a006e292c -r fd28c7358ce8 main.c --- a/main.c Tue Jun 04 22:11:54 2013 +0800 +++ b/main.c Tue Jun 04 22:12:01 2013 +0800 @@ -35,7 +35,7 @@ // XXX #define PORT_PI_BOOT PORTD #define DDR_PI_BOOT DDRD -#define PIN_PI_BOOT PD7 +#define PIN_PI_BOOT PD5 // XXX #define PORT_PI_RESET PORTD @@ -43,9 +43,9 @@ #define PIN_PI_RESET PD6 -#define PORT_LED PORTC -#define DDR_LED DDRC -#define PIN_LED PC4 +#define PORT_LED PORTD +#define DDR_LED DDRD +#define PIN_LED PD7 // #define HAVE_UART_ECHO @@ -490,6 +490,10 @@ { cmd_reset(); } + else if (strcmp_P(readbuf, PSTR("newboot")) == 0) + { + cmd_newboot(); + } else { printf_P(PSTR("Bad command '%s'\n"), readbuf); @@ -575,8 +579,6 @@ oneshot_count = 0; } } - - } static void