00001
00036 #ifndef WL_DEFS_H
00037 #define WL_DEFS_H
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 #define WL_ERROR_GROUP 1
00049
00050 #define WL_ERROR_STRING_TYPE 1
00051
00052
00053 #define WL_TOKEN_RING_GROUP 2
00054
00055 #define WL_TOKEN_PASS 1
00056 #define WL_TOKEN_BOM_ON 2
00057 #define WL_TOKEN_JOIN 3
00058 #define WL_TOKEN_JOIN_ACCEPT 4
00059
00060
00061 #ifndef FIREFLY
00062 #define BOM_DELAY 50
00063 #else
00064 #define BOM_DELAY 100
00065 #endif
00066
00067 #define DEATH_DELAY 4
00068 #define JOIN_DELAY 8
00069
00070
00071 #define WL_RECHARGE_GROUP 3
00072
00073 #define WL_RECHARGE_POLL_STATIONS 1
00074 #define WL_RECHARGE_STATION_AVAILABLE 2
00075 #define WL_RECHARGE_REQUEST 3
00076 #define WL_RECHARGE_REQUEST_ACCEPT 4
00077 #define WL_RECHARGE_VERIFY 5
00078 #define WL_RECHARGE_CANCEL 6
00079 #define WL_RECHARGE_SEEKING 7
00080 #define WL_RECHARGE_DOCKED 8
00081
00082 #ifdef WL_DEBUG
00083
00084 #ifdef ROBOT
00085 #include <serial.h>
00086 #endif
00087
00088 #ifdef ROBOT
00089 #define WL_DEBUG_PRINT( s ) usb_puts( s )
00090 #else
00091 #define WL_DEBUG_PRINT( s ) printf( s )
00092 #endif
00093
00094 #ifdef ROBOT
00095 #define WL_DEBUG_PRINT_INT( i ) usb_puti(i)
00096 #else
00097 #define WL_DEBUG_PRINT_INT( i ) printf("%i", i)
00098 #endif
00099
00100 #else
00101
00102 #define WL_DEBUG_PRINT( s )
00103 #define WL_DEBUG_PRINT_INT( i )
00104
00105 #endif
00106
00107 #endif
00108