Project

General

Profile

Revision 1581

editing wireless branch, added error codes and constants

View differences:

wireless.c
47 47
 * initialization function:
48 48
 * set up xbee communication and packet handler infrastructure
49 49
 *
50
 * @return 0 on success, <0 on failed registration (error codes TBD)
50
 * @return 0 on success, or error code
51 51
 **/
52 52
int8_t wl_init(void) {
53 53

  
......
58 58
 * termination function:
59 59
 * end xbee communication, deregister all handlers, etc
60 60
 *
61
 * @return 0 on success, <0 on failed termination (error codes TBD)
61
 * @return 0 on success, or error code
62 62
 **/
63 63
int8_t wl_terminate(void) {
64 64

  
......
70 70
 *
71 71
 * @param group the packet group number of the packets to handle with this function
72 72
 * @param func the function pointer to the user-specified packet handler
73
 * @param priority flag to set the priority of the function handler:
74
 *        0 for normal (put packet on buffer), 1 for high (handle packet immediately upon receiving)
73
 * @param priority flag to set the priority of the function handler
75 74
 *
76
 * @return 0 on success, <0 on failed registration (error codes TBD)
75
 * @return 0 on success, or error code
77 76
 **/
78 77
int8_t wl_register_handler(uint8_t group, void (*func)(void), uint8_t priority) {
79 78

  
80
  return 0;
79
  return WL_SUCCESS;
81 80
}
82 81

  
83 82

  

Also available in: Unified diff