Fix AVRISP PDI protocol - make sure inverted masks have the appropriate parenthesis around them, make sure the BREAK command for the hardware USART has 12 clock cycles exactly. Poll NVM Enable bit in the target's STATUS PDI register with a timeout, as it is not set immediately.

This commit is contained in:
Dean Camera 2009-12-11 00:19:25 +00:00
parent 42cfd15793
commit 7e5966c1a8
4 changed files with 25 additions and 13 deletions

View file

@ -38,6 +38,7 @@
/* Includes: */
#include <avr/io.h>
#include <util/delay.h>
#include <stdio.h>
#include "V2Protocol.h"