projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactoring a lot of the P5 stuff.
[goodfet]
/
firmware
/
apps
/
spi
/
spi.c
diff --git
a/firmware/apps/spi/spi.c
b/firmware/apps/spi/spi.c
index
e07cdb5
..
aa3c5ec
100644
(file)
--- a/
firmware/apps/spi/spi.c
+++ b/
firmware/apps/spi/spi.c
@@
-45,15
+45,14
@@
app_t const spi_app = {
//! Set up the pins for SPI mode.
void spisetup(){
SETSS;
-
P5
DIR|=MOSI+SCK+BIT0; //BIT0 might be SS
-
P5
DIR&=~MISO;
+
SPI
DIR|=MOSI+SCK+BIT0; //BIT0 might be SS
+
SPI
DIR&=~MISO;
DIRSS;
//Begin a new transaction.
CLRSS;
SETSS;
-
}