X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=romdev;a=blobdiff_plain;f=fw%2Fsrc%2Fmain.c;fp=fw%2Fsrc%2Fmain.c;h=3977d78b4d3217ada9042bc937ecabbe39c20cdc;hp=1d248f29e9acfc12272e0f155131f096c48ec9b7;hb=fb4539c5d6eec7b6450b3c543ffc24a528a34691;hpb=a8c29255c8b1aefb89a67ea777ad06ad5ea42676 diff --git a/fw/src/main.c b/fw/src/main.c index 1d248f2..3977d78 100644 --- a/fw/src/main.c +++ b/fw/src/main.c @@ -169,7 +169,11 @@ static void start_prog(void) static void end_prog(void) { - /* PGM low and return reset high */ + /* make extra sure we don't drive the data bus */ + release_data_bus(); + + /* PGM low and return reset and SS high */ + PORTB |= PB_SS; PORTC &= ~PC_PGM; PORTC |= PC_SYSRST;