This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538-Zstack

Other Parts Discussed in Thread: CC2538, Z-STACK

hi,

I am using cc2538 from TI for my zigbee project, here from the sample codes they implement 10 tasks and runs in an RR scheduling concept, i want add two more tasks for my application, is that possible to add task? if it so means what are the changes i have to done on my code? (for example changing Slice time of RR, quantizing time etc). and also which timer is used on sample application for Scheduling functionality?

thanks,

regards,

sujin.V

  • Hi,

    Z-Stack uses OSAL, which is a non-preemptable OS.

    To add a task, please modify osalInitTasks() function and add the corresponding task initialization routine.

    In the init routine, please assign the taskID value.

    Events for that tasks are processed into a function registered as function pointer in tasksArr[] vector.

    Then simply, you can use OSAL services to send messages and set events to that task.

    Please check out C:\Texas Instruments\Z-Stack Home 1.2.0\Documents\API\OSAL API document to learn about OSAL services. Section 5 describes API for timer services, where the timeout event sets a timer for the chosen task.

    Thanks,

    TheDarkSide