projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added /dev/ttyU0 to the glob list for OpenBSD.
[goodfet]
/
client
/
GoodFETSPI.py
diff --git
a/client/GoodFETSPI.py
b/client/GoodFETSPI.py
index
5875810
..
9c684b7
100644
(file)
--- a/
client/GoodFETSPI.py
+++ b/
client/GoodFETSPI.py
@@
-34,7
+34,7
@@
class GoodFETSPI25C(GoodFETSPI):
READ=0x03;
WRITE=0x02;
READ=0x03;
WRITE=0x02;
- def peek8(self,adr):
+ def peek8(self,adr
,memory="vn"
):
"""Read a byte from the given address."""
data=self.SPItrans([self.READ,(adr>>8)&0xFF,adr&0xFF,0x00]);
return ord(data[3]);
"""Read a byte from the given address."""
data=self.SPItrans([self.READ,(adr>>8)&0xFF,adr&0xFF,0x00]);
return ord(data[3]);
@@
-61,6
+61,7
@@
class GoodFETSPIFlash(GoodFETSPI):
0xC22014: "MX25L8005",
0xC22013: "MX25L4005",
0x204011: "M45PE10",
0xC22014: "MX25L8005",
0xC22013: "MX25L4005",
0x204011: "M45PE10",
+ 0x202014: "M25P80",
0x1f4501: "AT24DF081",
};
0x1f4501: "AT24DF081",
};