I may have broken something, so I'm backing up what I have so I can revert the repository to make it compile again.
Removed the _ from the function head in test_lights.c so all unit tests compile.
Wireless: updated library to make it more readable and to reduce possible errors with acking (untested changes, but shouldn't be broken or something is very wrong).
wireless computer code from my 15437 webapps project
new doxygen for libwireless
wireless:fixed wl_dispatch buffer length passed to FNPTR
Wireless: Updated library and test program. Library is now capable of sending and receiving basic packets, and low priority function groups in low reliability mode.
wireless: fixing no ack state
wireless: added timeout on ackhandle
wireless: fixed test termination
wireless: XBEE_TX_STATUS debug info
wireless: correcting ackhandle num packets
wireless: moving to API mode 2
wireless: changed debug info in wl_send
Wireless: updated library and test code for the new library.
wireless: added debug info to send functions
wireless: modifying send functions
wireless: modifying ack functions
wireless: modifying wl_dispatch
wireless: modifying send buffer
wireless: moved definition for packet groups to wireless.c
wireless: more debug info
wireless: update of wireless test
Wireless: updated wireless_test2.c for continued testing progress.
wireless: fix for other buffer in xbee.c
changes to wireless test
wireless: update of wl_dispatch to match changes in wl_get_basic. Need to test wl_dispatch.
wireless: get_basic works. made it all the way around the ring buffer.
Wireless testing, made changes to wireless library (xbee.c, debugging changes only) and test_wireless2.c for continued wireless tests.
wireless: added check_last_receive debug info
wireless: fixing wl_get_basic
wireless: added more basic_buf debug info
wireless: added basic_buf debug info
Wireless: Updated test code.
wireless: debug info
wireless: fix for wl_get_basic
wireless: TX works, basic buffer is full after first wl_get_basic() call
wireless: updated xbee interrupt TX receive
wireless: updated xbee interrupt debug info
removed library .a files from repository
Wireless: Adding code to debug the library.
wireless: fixed MODEM_STATUS, TX_STATUS message types (I think).Still dropping out of API mode at random.
wireless: api mode 2 sending now implemented
wireless: fixed some API mode 2 xbee.c stuff
wireless: added API mode 2 support for receiving
wireless: redo of wireless_receive functions for basic and dispatch
Wireless: Changes to wireless test program.
wireless: fixing PAN id
wireless: updated pan debug info
wireless: switched byte order for AT command get functions
wireless: switched byte order for AT command set functions
wireless: xbee debug statements updated.
Fixed test and library code so tests run, still debugging.
wireless: more debug print statements
wireless: update to xbee_terminate
Fixed some things so it works. It just now gets stuck initialing wl_init.
wireless: got MY address form eeprom
wireless: fixed debug statements and flash memory
Debugged from last update.
Put debug statements back in the code (instead of program space). Done by merging with version 1649, and just copying in the current new functions to send and receive.
wireless: removed debug prints from flash memory. Will add them back in an hour.
Added code to test_wireless2.c to actually test sending and receiving, and some ACK functionality.
wireless: reduced size by moving debug strings in xbee.c to flash memory. We now have 640 bytes left when compiling unit tests.
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.
Fixed return type of handlers.
wireless: test_wireless2.c updates
Made packet handlers have correct headers.
wireless: test_xbee is good. Need to start testing wireless_send and wireless_receive.
wireless: fixed API mode 1. Can now enter and exit API mode properly. Can also set and read MY address.
wireless: more debugging trying to get API mode 1 to work. We seem to get into API mode, but can't receive more than 3 bytes of the command response frame correctly.
got the status flag masking to work. API mode still doesn't work
Got xbee interrupt to work in command mode (API mode 0 off)Still working on API mode 1 ON
wl: update to unit tests, still doesn't work
Made Wireless_test compile and run. Report so far:Initialization works.Function registration works.XBee functions fail (David is fixing this).Sending packets in fast mode works.Termination fails with -2. Probably XBee related.
Cleaned up a few comments
Added behavior for ACK groups, which is still undeveloped and should be ignored. The folder Wireless_test is the program used to test the new wireless library and all its functions. It is still under development, but should be partially functional. It can currently test library initialization, function registration, and wireless termination.
wl: clean up unit tests
wl: the library fully compiles with all functions written