Improving CC2420 packet reception.
[goodfet] / firmware / include / ccspi.h
index 6b7bb31..a8f948f 100644 (file)
@@ -3,6 +3,13 @@
   \brief Constants for CCSPI Driver
 */
 
+#ifndef CCSPI_H
+#define CCSPI_H
+
+#include "app.h"
+
+#define CCSPI 0x51
+
 //Chipcon SPI Commands
 
 //Grab a packet, if one is available.
@@ -13,6 +20,8 @@
 #define CCSPI_RX_FLUSH 0x82
 //Flush TX
 #define CCSPI_TX_FLUSH 0x83
+//Reflexive jam.
+#define CCSPI_REFLEX 0xA0
 
 
 //Bit fields for command word.
@@ -30,3 +39,8 @@
 #define CCSPI_RXFIFO  0x3F
 #define CCSPI_SFLUSHRX 0x08
 #define CCSPI_SFLUSHTX 0x09
+
+extern app_t const ccspi_app;
+
+#endif // CCSPI_H
+