projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New Chipcon library stuff.
[goodfet]
/
firmware
/
apps
/
avr
/
avr.c
diff --git
a/firmware/apps/avr/avr.c
b/firmware/apps/avr/avr.c
index
b052272
..
53d9f30
100644
(file)
--- a/
firmware/apps/avr/avr.c
+++ b/
firmware/apps/avr/avr.c
@@
-11,7
+11,7
@@
#include <iomacros.h>
#include "avr.h"
#include <iomacros.h>
#include "avr.h"
-#include "glitch.h"
+
//
#include "glitch.h"
//! Setup the AVR pins.
void avrsetup(){
//! Setup the AVR pins.
void avrsetup(){
@@
-22,17
+22,20
@@
void avrsetup(){
void avrconnect(){
//set I/O pins
avrsetup(); //Cut this?
void avrconnect(){
//set I/O pins
avrsetup(); //Cut this?
- //delay(50);
+
+ SETSS;
+ delay(50);
//Pulse !RST (SS) at least twice while CLK is low.
CLRCLK;
CLRSS;
//Pulse !RST (SS) at least twice while CLK is low.
CLRCLK;
CLRSS;
+ delay(5);
SETSS;
CLRCLK;
SETSS;
CLRCLK;
-
//
delay(5);
+ delay(5);
CLRSS;
CLRSS;
-
//
delay(5);
+ delay(5);
//Enable programming
avr_prgen();
//Enable programming
avr_prgen();