Part Number: SIMPLELINK-CC13XX-CC26XX-SDK
Tool/software:
Hi,
The sample code for clock initialization listed under “Adding and initializing a clock” in Task 6 of the Simple Link Academy “Custom Profiles” is shown below.
// clockParams is only used during init and can be on the stack.
Clock_Params myClockParams;
// Insert default params
Clock_Params_init(&myClockParams);
// Set a period, so it times out periodically without jitter
myClockParams.period = DEFAULT_SUNLIGHT_TIMEOUT * (1000/Clock_tickPeriod),
// Initialize the clock object / Clock_Struct previously added globally.
Clock_construct(&myClock, myClockSwiFxn,
0, // Initial delay before first timeout
&myClockParams);
What is the intention of the “,” at the end of the line “myClockParams.period = DEFAULT_SUNLIGHT_TIMEOUT * (1000/Clock_tickPeriod),” on line 6?
Is it just a typo?
Best regards.