projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add note about another tested PIC target: PIC24FJ64GA002
[goodfet]
/
firmware
/
include
/
spi.h
diff --git
a/firmware/include/spi.h
b/firmware/include/spi.h
index
02e548a
..
590db0e
100644
(file)
--- a/
firmware/include/spi.h
+++ b/
firmware/include/spi.h
@@
-16,6
+16,12
@@
#define CLRCLK P5OUT&=~SCK
#define READMISO (P5IN&MISO?1:0)
+#define SETTST P4OUT|=TST
+#define CLRTST P4OUT&=~TST
+#define SETRST P2OUT|=RST
+#define CLRRST P2OUT&=~RST
+
+
//! Set up the pins for SPI mode.
void spisetup();