Other Parts Discussed in Thread: CC1310
Tool/software: TI-RTOS
I would like to add Watchdog timer to CC1310 code.
I copy code sample code from RTOS User guide :
Watchdog_Params params;
Watchdog_Handle watchdog;
Board_initWatchdog();
/* Create and enable a Watchdog with resets enabled */
Watchdog_Params_init(¶ms);
params.resetMode = Watchdog_RESET_ON;
params.callbackFxn = UserCallbackFxn;
watchdog = Watchdog_open(Board_WATCHDOG, ¶ms);
if (watchdog == NULL) {
/* Error opening watchdog */
}
then I defined my function:
#define Board_WATCHDOG 1
static Watchdog_Callback UserCallbackFxn()
{
System_printf("WatchDOG \n");
}
What this function should return ?
I also got linker error for Watchdog_config unresolved symbol when I compile this code.
I noticed that CC1301_LAUNCXL.c does not have any Watchdog objects included.
How to resolve all those problems ? Is there running sample available for Watchdog Timer used in TI RTOS on this micro ?
Andrew