Table controller for piswarm-office

Dependencies:   mbed

Fork of PiSwarmTableController by piswarm

Revision:
2:c81f4ef63132
Child:
3:bc7a0f14b28a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Thu May 22 14:25:10 2014 +0000
@@ -0,0 +1,31 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+#include "alpha433.h"
+
+#define SWARM_SIZE 32
+#define USE_COMMUNICATION_STACK 1
+#define PC_BAUD 115200
+#define RF_ALLOW_COMMANDS 1
+#define RF_USE_LEDS 1
+#define RF_USE_TDMA 1
+#define RF_TDMA_TIME_PERIOD_US 15625
+#define RF_DEBUG 1
+#define RF_VERBOSE 1
+#define START_RADIO_ON_BOOT 1
+#define RF_FREQUENCY 435000000
+#define RF_DATARATE 57600
+
+extern Serial pc;
+extern Alpha433 rf;
+void handleUserRFResponse(char sender, char broadcast_message, char success, char id, char is_command, char function, char * data, char length);
+void handleUserRFCommand(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length);
+ 
+void processRawRFData(char * rstring, char cCount);
+void check_switch(void);
+void setup_switches(void);
+void transmit_message(void);
+void handleData(char * data, char length);
+
+
+#endif // MAIN_H