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.

HAL Drivers API Timers CC254X missing source code and partial גםבוצקמאשאןםמ

Other Parts Discussed in Thread: BLE-STACK, CC2541, CC2540

I reading now the timer APIfrom HAL Drivers API  SWRA193 Version 1.6 and there some missing documentation . Also the is no source code in BLE-STACK 1.4.1 for the timer part.

1. I found on the forum the hal_timerץב ודק כםר CC253X but it is not full support of the CC254x especialy multi channels and compare modes. Is there a new and full version of this code avalible?

2. I don't see how the configuration take effect it the HAL , because TimerInit only put default values and not the ones set it the config phase?

3. There is no description for the prescale settin gin the API doc. Also where it take place after the init or before?

4. When I use the timer as compare I don't see where the compare value place in the param.

5. If i don't use the interrupt and want to use the HalTimerTick (void) function. Does it active automaticly or I need to make soem settin gto make it call every tick?

Thanks

Bar.

  • Hello. The API is outdated. In fact, there is no hal_timer driver for the CC254x device as you you can tell since there is no source code for the hal_timer.c file. This means that you must implement your own driver.

    The chip user's guide (www.ti.com/.../getliterature.tsp;fileType=pdf) describes the timer module in detail including register descriptions. There are also numerous timer examples in the CC2541/43/44/45 peripheral examples from the product page: www.ti.com/.../swrc257. Lastly, there are also many threads on e2e discussing timer examples.
  • Thanks Tim.

    But if there no implementation of the Timers (include in the BLE TimeApp example) how can I know which timer was assign for the OSAL tick and what configuration they get (like prescale) so I can know which and how of the other to use for my porpuse?

    tahnks

    bar.

  • Hello. The chip user's guide states that "Timer 2 must not be used by the application on the CC2540/41 when the BLE stack is running." So you are free to use timer 1 and timer 3 but you can not use timer 2.