Hi, All:
I modified the APL meter sample to run under mutitask mode and downloaded to Q2686G, but it keep caused exception and reset the Q2686G. I finaly featured out it caused by Event Queue .
static void task_test1_tmrcallback(void* context)
{
u32 check = (u32)context;
trc_dprint(TRC_GEN, "task_test1 timer");
tmr_set_callback(TMR_TEST1, task_test1_tmrcallback, (void*)(!check));
tmr_rltmr_reload_withtime(TMR_TEST1,check ? 1000 : 2000);
evt_add(TASKID_TEST1,EVT_TEST1,EVT_OPT_NONE,task_test1_evt_callback,NULL); [b]// this line caused exception[/b]}
when I comment out the line "evt_add " in “task_test1.c” and “task_test2.c” , the sample run normal. the evt_add was declared in “apl_event_queue.h”, and have no source code and document. I can’t feagure out why it keep cause the exception and reset.
Anyone know how to solve this issue ?
Another question, any one have the APL source code and detail usage documents ? I can’t find out anywhere in the devkits.
thanks