From 798fa7fbb1d18715dbd421594af8f6e3a5c2c664 Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Tue, 14 Oct 2014 21:45:04 +0200 Subject: [PATCH] ispprog2: keep ISP_RESET (/SS) as output ISP_RESET is /SS pin of mega328p. In master mode, the /SS pin must be configured as output. If configured as input it must held high to ensure Master SPI operation. --- ispprog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ispprog.c b/ispprog.c index b370c51..256ee66 100644 --- a/ispprog.c +++ b/ispprog.c @@ -86,13 +86,13 @@ #define ISP_SCK PORTB5 /* to target */ #define RESET_IN PORTB1 /* low active */ -#define ISP_INACTIVE() { /* ISP_SCK, ISP_MOSI and ISP_RESET are inputs */ \ - DDRB &= ~((1<