Hi guys,
I tested the ‘’idle_profile’’ demo with my customized board based on CC3200 and it works just fine.
And I want to change cc_timer_start(tTimerHndl, &sIntervalTimer, OPT_TIMER_PERIODIC) and use each time cc_rtc_set_alarm().
I am aiming to call cc_rtc_get(&u32time), get the current RTC value, add some amount of time, and finally call cc_rtc_set_alarm().
Example:
cc_rtc_get(&u32RTCtime); // get the current time
sIntervalTimer.secs = u32RTCtime.secs + 10 sec; // choose the time for the next RTC interruption.
sIntervalTimer.nsec = u32RTCtime.nsec;
cc_rtc_set_alarm(&sIntervalTimer); // Set the alarm with the new configuration.
I hope to have the same behavior as vVcTimerStart().
So what changes need to be done in order to make this work ?? do I need to replace sw_simulate_rtc_intr() with cc_rtc_isr() inside rtc_module_init() function. ??
I am using SDK_1.2.0, ServicePack_1.0.1.6-2.7.0.0 and FreeRTOS.
Thanks.