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.

Z-Stack, CC2530 and HAL_timers

I'm trying to use use the timers in a project based on the genericApp with HAL_timer library.

When i set the HAL_TIMER flag to true, compilation fails telling me that "The hal timer driver module is removed."

Is it really ? Why and waht is the correct solution to use it without using osal_timer ?

Best regards

  • To nbe more precise, on file hal_driver.c line, function HAL_processPoll, one can find :

    void Hal_ProcessPoll ()
    {
     /* Timer Poll */
    #if (defined HAL_TIMER) && (HAL_TIMER == TRUE)
      #error "The hal timer driver module is removed."
    #endif

    I'm wondering if the hal timer functions have been really removed, and if there is another solution for using timers.

  • The HAL timers module was deprecated because the use of a H/W timer is so very dependent on the exact timing requirements that no API is satisfactory for a real-time use of them. Since the virtual S/W timers provided by OSAL offer +/- 1 msec resolution accuraccy and are based upon the MAC H/W timer (Timer2), it is left to the user to use the other 3 available timers however they need for real-time H/W timing. The 16-bit Timer1 and the two 8-bit Timer3&4 are at your complete disposal.