Other Parts Discussed in Thread: SYSBIOS, SYSCONFIG
Hi,
I have a project still under development base on ''old" TI-RTOS (not 7) that uses hooks provided by RTOS to work with RTC CH1 and CH2 hardware.
The below snippets show an example of using Channel 1, with Driverlib API calls to configure an RTC event at 4 seconds after boot.
First, in the application .cfg file a hook function is defined for Channel 1:
var Timer = xdc.module('ti.sysbios.family.arm.cc26xx.Timer');
Timer.funcHookCH1 = "&myHookCH1";
In main(), Channel 1 is first cleared, a compare (match) value of 4 seconds is set, the channel is enabled:
AONRTCEventClear(AON_RTC_CH1);
AONRTCCompareValueSet(AON_RTC_CH1, 0x40000);
AONRTCChannelEnable(AON_RTC_CH1);
With the above, myHookCH1() will be called when the RTC reaches a count of 4 seconds. At that time, a new compare value can be written for the next interrupt that should occur for Channel 1.
There is a plan to migrate at later stage of the project to the new TI-RTOS7, so please provide me some information how could RTC CH1 and CH2 be used with new TI-RTOS7?
Regards,
Dimitar Devedzhiev
