1 Reply Latest reply on Apr 6, 2014 6:01 PM by dmiya

    How to use the timer?

      The explanation for the Timer in datasheet is :

      Normal timer has a resolution of one second.

      Fine timer can be configured in the device configuration to be as low as 12.5 milliseconds. Call

      Then I use the timer is:

      the fine_timer_interval in BLE_PROFILE_CFG is 5000;

      void time_cb(UINT32 value)

      {

        puart_print("t!\r\n");

      }

      void fint_time_cb(UINT32 value)

      {

        puart_print("f_t!\r\n");

      }

      bleprofile_regTimerCb(time_cb,fine_time_cb);

      bleprofile_StartTimer();

      The Output timing of “t” and “f_t”  is not:

      “t”    :Output once every 1 seconds

      “f_t” :Output once every5 seconds

      Please give me some tips!Thanks!