Project

General

Profile

Revision 1460

put lcd and rangefinder lookup tables into program space
removed TODO inline comments from wireless library

View differences:

wireless.c
180 180
 *
181 181
 * @see wl_get_pan
182 182
 **/
183
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
184
// it reduces code size or not should be done to be sure.
185 183
int wl_set_pan(int pan)
186 184
{
187 185
	return xbee_set_pan_id(pan);
......
194 192
 *
195 193
 * @see wl_set_pan
196 194
 **/
197
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
198
// it reduces code size or not should be done to be sure.
199 195
int wl_get_pan(void)
200 196
{
201 197
	return xbee_get_pan_id();
......
208 204
 *
209 205
 * @see wl_get_channel
210 206
 **/
211
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
212
// it reduces code size or not should be done to be sure.
213 207
int wl_set_channel(int channel)
214 208
{
215 209
	return xbee_set_channel(channel);
......
222 216
 *
223 217
 * @see wl_set_channel
224 218
 **/
225
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
226
// it reduces code size or not should be done to be sure.
227 219
int wl_get_channel(void)
228 220
{
229 221
	return xbee_get_channel();
......
234 226
 *
235 227
 * @return the 16-bit address of the XBee module.
236 228
 **/
237
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
238
// it reduces code size or not should be done to be sure.
239 229
int wl_get_xbee_id()
240 230
{
241 231
	return xbee_get_address();
......
251 241
 * @param dest the 16-bit address of the XBee to send the packet to
252 242
 * @param frame the frame number to see with a TX_STATUS response
253 243
 **/
254
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
255
// it reduces code size or not should be done to be sure.
256 244
int wl_send_robot_to_robot_global_packet(char group, char type, char* data, int len, int dest, char frame)
257 245
{
258 246
	return wl_send_packet(group, type, data, len, dest, XBEE_OPTIONS_BROADCAST_ALL_PANS, frame);
......
268 256
 * @param dest the 16-bit address of the XBee to send the packet to
269 257
 * @param frame the frame number to see with a TX_STATUS response
270 258
 **/
271
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
272
// it reduces code size or not should be done to be sure.
273 259
int wl_send_robot_to_robot_packet(char group, char type, char* data, int len, int dest, char frame)
274 260
{
275 261
	return wl_send_packet(group, type, data, len, dest, XBEE_OPTIONS_NONE, frame);
......
284 270
 * @param len the packet length in bytes
285 271
 * @param frame the frame number to see with a TX_STATUS response
286 272
 **/
287
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
288
// it reduces code size or not should be done to be sure.
289 273
int wl_send_global_packet(char group, char type, char* data, int len, char frame)
290 274
{
291 275
	return wl_send_packet(group, type, data, len, XBEE_BROADCAST, XBEE_OPTIONS_BROADCAST_ALL_PANS, frame);
......
300 284
 * @param len the packet length in bytes
301 285
 * @param frame the frame number to see with a TX_STATUS response
302 286
 **/
303
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
304
// it reduces code size or not should be done to be sure.
305 287
void wl_send_pan_packet(char group, char type, char* data, int len, char frame)
306 288
{
307 289
	wl_send_packet(group, type, data, len, XBEE_BROADCAST,
......
476 458

  
477 459

  
478 460
#ifndef ROBOT
479
//TODO: this function is so simple, it *may* be beneficial to inline this function.  testing of if
480
// it reduces code size or not should be done to be sure.
481 461
void wl_set_com_port(char* port)
482 462
{
483 463
	xbee_set_com_port(port);

Also available in: Unified diff