projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed many references to P1OUT.
[goodfet]
/
firmware
/
apps
/
radios
/
nrf.c
diff --git
a/firmware/apps/radios/nrf.c
b/firmware/apps/radios/nrf.c
index
1e1f937
..
9254f93
100644
(file)
--- a/
firmware/apps/radios/nrf.c
+++ b/
firmware/apps/radios/nrf.c
@@
-91,12
+91,12
@@
void nrfhandle(unsigned char app,
unsigned long len){
unsigned long i;
unsigned long len){
unsigned long i;
+ //Drop CE to passify radio.
RADIOPASSIVE;
RADIOPASSIVE;
-
//Raise !SS to end transaction, just in case we forgot.
P5OUT|=SS;
nrfsetup();
//Raise !SS to end transaction, just in case we forgot.
P5OUT|=SS;
nrfsetup();
-
+
switch(verb){
//PEEK and POKE might come later.
case READ:
switch(verb){
//PEEK and POKE might come later.
case READ:
@@
-131,7
+131,6
@@
void nrfhandle(unsigned char app,
break;
case NRF_RX:
RADIOPASSIVE;
break;
case NRF_RX:
RADIOPASSIVE;
-
//Get the packet.
P5OUT&=~SS;
nrftrans8(NRF_R_RX_PAYLOAD);
//Get the packet.
P5OUT&=~SS;
nrftrans8(NRF_R_RX_PAYLOAD);
@@
-151,12
+150,14
@@
void nrfhandle(unsigned char app,
txdata(app,verb,32);
break;
case NRF_TX:
txdata(app,verb,32);
break;
case NRF_TX:
+ case NRF_TX_FLUSH:
default:
debugstr("Not yet supported.");
txdata(app,verb,0);
break;
}
default:
debugstr("Not yet supported.");
txdata(app,verb,0);
break;
}
+
P5OUT|=SS;//End session
RADIOACTIVE;
}
P5OUT|=SS;//End session
RADIOACTIVE;
}