projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More reliably chipcon.
[goodfet]
/
firmware
/
apps
/
chipcon
/
chipcon.c
diff --git
a/firmware/apps/chipcon/chipcon.c
b/firmware/apps/chipcon/chipcon.c
index
05349ea
..
bbc751a
100644
(file)
--- a/
firmware/apps/chipcon/chipcon.c
+++ b/
firmware/apps/chipcon/chipcon.c
@@
-36,7
+36,7
@@
//This could be more accurate.
//Does it ever need to be?
//This could be more accurate.
//Does it ever need to be?
-#define CCSPEED
0
+#define CCSPEED
3
#define CCDELAY(x) delay(x)
#define SETMOSI P5OUT|=MOSI
#define CCDELAY(x) delay(x)
#define SETMOSI P5OUT|=MOSI
@@
-331,6
+331,11
@@
unsigned char cc_debug(unsigned char len,
unsigned char c){
unsigned char cmd=0x54+(len&0x3);//(len&0x3);
CCWRITE;
unsigned char c){
unsigned char cmd=0x54+(len&0x3);//(len&0x3);
CCWRITE;
+ cctrans8(0xFF);//resync
+ cctrans8(0xFF);//resync
+ cctrans8(0xFF);//resync
+ cctrans8(0xFF);//resync
+ cctrans8(0xFF);//resync
cctrans8(cmd);
if(len--)
cctrans8(a);
cctrans8(cmd);
if(len--)
cctrans8(a);