osal_start_timerEx() will start a timer, which is 16-bit. As per CC2530 datasheet, it only has one 16-bit timer. I guess z-stack also uses timer(s). So the question is how many osal timers I can use?
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.
Is this documented somewhere?
From what i can see, the osal timer module is based on a linked list with memory allocation on creation of each new timer. Therefore shouldnt the limit be however many you can fit in the heap?
Or am i looking over something here in the code?
Ah never mind, i know why the limit is 16.
It's because the event it has to pass back is a uint16 - where that takes 1 bit per event - therefore 16 bits = 16 timers.
That however, only means 16 events per task? If more are required, we can create more tasks to process these.
Is that correct?