#include #include "encoding.h" #include "platform.h" #include "eos.h" #include "msgq.h" #include "net.h" #include "timer.h" #include "event.h" static EOSMsgQ event_q; static EOSMsgItem event_q_array[EOS_EVT_SIZE_Q]; static eos_evt_fptr_t evt_net_handler[EOS_NET_MAX_CMD]; static eos_evt_fptr_t evt_timer_handler = NULL; static eos_evt_fptr_t evt_ui_handler = NULL; static void bad_handler(unsigned char cmd, unsigned char *buffer, uint16_t len) { printf("bad handler: %d\n", cmd); } void eos_evtq_init(void) { int i; for (i=0; i