This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TIMER1 in Mesh SDK

Hi ,

I want to use TIMER1 in mesh SDK , is it possible to use TIMER1 in mesh SDK ? And how can i set it up and run it ?

Thank you for your help

Parents
  • Hi Bjorn. i wnat to send a packet periodically thats why i want to use TIMER1 interupts to be able to send my packet in the TIMER1_IRQHandler(). but it seems does not work . i do enable the TIMER1 intrups in the timer.c file: in the void timer_on_ts_begin(timestamp_t timeslot_start_time) function as bellow::

    void timer_on_ts_begin(timestamp_t timeslot_start_time)
    if (!m_timer_mut)
        {
    #if !defined(HOST)
            (void) NVIC_EnableIRQ(TIMER0_IRQn);
            (void) NVIC_EnableIRQ(TIMER1_IRQn); 
    #endif
        }
    

    is it a proper way or not? and which priority value should i assign to TIMER1 ?

Reply
  • Hi Bjorn. i wnat to send a packet periodically thats why i want to use TIMER1 interupts to be able to send my packet in the TIMER1_IRQHandler(). but it seems does not work . i do enable the TIMER1 intrups in the timer.c file: in the void timer_on_ts_begin(timestamp_t timeslot_start_time) function as bellow::

    void timer_on_ts_begin(timestamp_t timeslot_start_time)
    if (!m_timer_mut)
        {
    #if !defined(HOST)
            (void) NVIC_EnableIRQ(TIMER0_IRQn);
            (void) NVIC_EnableIRQ(TIMER1_IRQn); 
    #endif
        }
    

    is it a proper way or not? and which priority value should i assign to TIMER1 ?

Children
No Data
Related