Revision 1650
wireless: test_wireless2.c: moved debug strings to program space, so they all take up a total of 58 bytes. Still 300 bytes over the limit. Might have to separate the unit_tests such that only the currently running tests are compiled and linked.
xbee.c | ||
---|---|---|
123 | 123 |
// external ack handler (wireless_send.c) |
124 | 124 |
extern void ackhandle(uint8_t num,uint8_t val); |
125 | 125 |
|
126 |
// message buffer |
|
127 |
uint8_t message[100]; |
|
128 | 126 |
|
129 | 127 |
|
130 | 128 |
/**@addtogroup xbee |
... | ... | |
196 | 194 |
//WL_DEBUG_PRINT("|api on branch"); |
197 | 195 |
|
198 | 196 |
// get length and type |
199 |
char buf[100]; |
|
200 |
uint8_t buf_pos = 18; |
|
201 | 197 |
while(i<3) { |
202 | 198 |
if (FLAG) { |
203 | 199 |
if (i==0) { |
204 | 200 |
len |= PORT<<8; |
205 |
buf[0] = 'l'; |
|
206 |
buf[1] = 'e'; |
|
207 |
buf[2] = 'n'; |
|
208 |
buf[3] = '_'; |
|
209 |
buf[4] = 'h'; |
|
210 |
buf[5] = 'i'; |
|
211 |
buf[6] = '|'; |
|
212 | 201 |
//WL_DEBUG_PRINT("|len_hi"); |
213 | 202 |
} else if (i==1) { |
214 | 203 |
len |= PORT; |
215 |
buf[7] = 'l'; |
|
216 |
buf[8] = 'e'; |
|
217 |
buf[9] = 'n'; |
|
218 |
buf[10] = '_'; |
|
219 |
buf[11] = 'l'; |
|
220 |
buf[12] = 'o'; |
|
221 |
buf[13] = '|'; |
|
222 | 204 |
//WL_DEBUG_PRINT("|len_lo"); |
223 | 205 |
} else if (i==2) { |
224 | 206 |
apitype = PORT; |
225 |
buf[14] = 'a'; |
|
226 |
buf[15] = 'p'; |
|
227 |
buf[16] = 'i'; |
|
228 |
buf[17] = '|'; |
|
229 | 207 |
//WL_DEBUG_PRINT("|GOT APITYPE"); |
230 |
} else { |
|
231 |
buf[buf_pos++] = PORT; |
|
232 |
//WL_DEBUG_PRINT("|GOT NEXT"); |
|
233 | 208 |
} |
234 | 209 |
i++; |
235 | 210 |
} |
... | ... | |
381 | 356 |
break; |
382 | 357 |
} |
383 | 358 |
} |
384 |
buf[buf_pos] = '\0'; |
|
385 |
WL_DEBUG_PRINT("xbee_interrupt_api_mode|"); |
|
386 |
WL_DEBUG_PRINT(buf); |
|
387 |
WL_DEBUG_PRINT("|len="); |
|
388 |
WL_DEBUG_PRINT_INT(len); |
|
389 |
WL_DEBUG_PRINT("|apitype="); |
|
390 |
WL_DEBUG_PRINT_HEX(apitype); |
|
391 |
WL_DEBUG_PRINT("|return\r\n"); |
|
359 |
WL_DEBUG_PRINT("|interrupt - return\r\n"); |
|
392 | 360 |
} // end of interrupt |
393 | 361 |
|
394 | 362 |
|
Also available in: Unified diff