This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-CC13XX-CC26XX-SDK: For the code given in TI-RTOS7 Clock Initialization SimpleLink Academy - Custom Profile

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.

  • Hi Yasukane,

    Thanks for reaching out!

    You are right; it is a typo... thanks for letting us know! It should be a semicolon (instead of a comma) that terminates the command line. We will go in and update the code in the SLA.

    Thanks,

    Mayur