00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __WASPCONSTANTS_H__
00029 #define __WASPCONSTANTS_H__
00030
00031
00032
00033
00034
00035 #include "pins_waspmote.h"
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 #define IPADC 1
00051 #define IPTWI 2
00052 #define IPSPI 4
00053 #define IPUSART0 8
00054 #define IPUSART1 16
00055
00056
00057
00058 #define IPTIM0 1
00059 #define IPTIM1 2
00060 #define IPTIM2 4
00061 #define IPTIM3 8
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 #define PGPS 1
00072 #define PSD 2
00073 #define PACC 4
00074 #define PXBEE 8
00075 #define PRTC 16
00076 #define PUSB 32
00077 #define PSID 64
00078 #define PSLOW_CLK 128
00079
00080
00081 #define PGPRS 1
00082
00083
00084
00085 #define ANALOG0 0
00086 #define ANALOG1 1
00087 #define ANALOG2 2
00088 #define ANALOG3 3
00089 #define ANALOG4 4
00090 #define ANALOG5 5
00091 #define ANALOG6 6
00092 #define ANALOG7 7
00093
00094
00095
00096
00097
00098
00099
00100
00101 #define HAI_INT 1 // High Active Interrupt
00102 #define LAI_INT 2
00103 #define ACC_INT 4
00104 #define BAT_INT 8
00105 #define RTC_INT 16
00106 #define WTD_INT 32
00107 #define TIM0_INT 64
00108 #define TIM1_INT 128
00109 #define TIM2_INT 256
00110 #define PIN_INT 512
00111 #define UART0_INT 1024
00112 #define UART1_INT 2048
00113 #define SENS_INT 4096
00114 #define ANE_INT 8192
00115 #define PLV_INT 16384
00116 #define HIB_INT 32768
00117
00118
00119 #define HAI_POS 0
00120 #define LAI_POS 1
00121 #define ACC_POS 2
00122 #define BAT_POS 3
00123 #define RTC_POS 4
00124 #define WTD_POS 5
00125 #define TIM0_POS 6
00126 #define TIM1_POS 7
00127 #define TIM2_POS 8
00128 #define PIN_POS 9
00129 #define UART0_POS 10
00130 #define UART1_POS 11
00131 #define SENS_POS 12
00132 #define SENS2_POS 13
00133
00134
00135 #define ACC_INT_ACT 2
00136 #define ACC_INT_PIN_MON RDY_ACC
00137
00138 #define HAI_INT_ACT 2
00139 #define HAI_INT_PIN_MON I2C_SDA
00140
00141 #define LAI_INT_ACT 3
00142 #define LAI_INT_PIN_MON I2C_SDA
00143
00144 #define BAT_INT_ACT 3
00145 #define BAT_INT_PIN_MON LOW_BAT_MON
00146
00147 #define RTC_INT_ACT 2
00148 #define RTC_INT_PIN_MON RST_RTC
00149
00150 #define WTD_INT_ACT 4
00151 #define WTD_INT_PIN_MON DIGITAL0
00152
00153 #define UART1_INT_ACT 2
00154 #define UART1_INT_PIN_MON GPRS_PIN
00155
00156
00157 #define SENS_INT_ACT 2
00158 #define SENS_INT_PIN_MON DIGITAL2
00159 #define SENS_INT_CLK_REG DIGITAL7
00160 #define SENS_INT_DO DIGITAL1
00161 #define SENS_INT_ENABLE DIGITAL8
00162 #define SENS_INT_CLK_INH DIGITAL3
00163
00164
00165 #define ANE_INT_ACT 2
00166 #define PLV_INT_ACT 3
00167 #define SENS2_INT_PIN_MON DIGITAL5
00168 #define SENS2_INT_PIN2_MON DIGITAL3
00169
00170 #define MAX_ARGS 20 // max amount of arguments in Wasp
00171 #define MAX_ARG_LENGTH 16 // max length for Wasp arguments
00172
00173 #endif