projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear P2SEL to disable XIN on MSP430F2274.
[goodfet]
/
firmware
/
apps
/
avr
/
avr.c
diff --git
a/firmware/apps/avr/avr.c
b/firmware/apps/avr/avr.c
index
9db6ce4
..
9531563
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(){
@@
-21,11
+21,15
@@
void avrsetup(){
//! Initialized an attached AVR.
void avrconnect(){
//set I/O pins
//! Initialized an attached AVR.
void avrconnect(){
//set I/O pins
- avrsetup();
+ avrsetup(); //Cut this?
+
+ 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;
@@
-133,7
+137,6
@@
void avrhandle(unsigned char app,
unsigned long len){
unsigned long i;
unsigned int at;
unsigned long len){
unsigned long i;
unsigned int at;
- static u8 connected=0;
/*
if(!avr_isready() && connected)
/*
if(!avr_isready() && connected)
@@
-154,7
+157,7
@@
void avrhandle(unsigned char app,
case START:
avrconnect();
txdata(app,verb,0);
case START:
avrconnect();
txdata(app,verb,0);
- break;
+ break;
//Used to fall through here.
case AVR_PEEKSIG:
for(i=0;i<4;i++)
cmddata[i]=avr_sig(i);
case AVR_PEEKSIG:
for(i=0;i<4;i++)
cmddata[i]=avr_sig(i);