projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated command line 802.15.4 checksum calculator and added serClose to GoodFET to...
[goodfet]
/
firmware
/
include
/
nrf.h
diff --git
a/firmware/include/nrf.h
b/firmware/include/nrf.h
index
7abdf36
..
bf0f99d
100644
(file)
--- a/
firmware/include/nrf.h
+++ b/
firmware/include/nrf.h
@@
-3,14
+3,24
@@
\brief Constants for NRF Driver
*/
\brief Constants for NRF Driver
*/
-//Nording RF Commands
+#ifndef NRF_H
+#define NRF_H
+
+#include "app.h"
+
+#define NRF 0x50
+
+//Nordic RF Commands
//Grab a packet, if one is available.
#define NRF_RX 0x80
//Send a packet.
#define NRF_TX 0x81
//Grab a packet, if one is available.
#define NRF_RX 0x80
//Send a packet.
#define NRF_TX 0x81
-//Fl
su
h RX
+//Fl
us
h RX
#define NRF_RX_FLUSH 0x82
#define NRF_RX_FLUSH 0x82
+//Flush TX
+#define NRF_TX_FLUSH 0x83
+
//Nordic RF SPI Instructions
#define NRF_R_REGISTER 0x00
//Nordic RF SPI Instructions
#define NRF_R_REGISTER 0x00
@@
-54,6
+64,7
@@
//Also 32-byte buffers for ACK_PLD, TX_PLD, and RX_PLD.
//Separate SPI commands.
//Also 32-byte buffers for ACK_PLD, TX_PLD, and RX_PLD.
//Separate SPI commands.
+extern app_t const nrf_app;
-
+#endif // NRF_H