Part Number: SENSOR-CONTROLLER-STUDIO
I'm trying to integrate the SCS code into a CCS project and am following the i2c light sensor example (although I cant get that to run in CCS for some reason).
I do have my code triggering an initial task execution, but am unclear how to keep executing the task at regular intervals.
In my SCS execution code, I'm calling
fwGenAlertInterrupt(); fwScheduleTask(1);
which runs repeatedly in the task testing tab.
Over in CCS, I am starting it up with:
scifOsalInit();
scifOsalRegisterCtrlReadyCallback(scCtrlReadyCallback);
scifOsalRegisterTaskAlertCallback(scTaskAlertCallback);
scifInit(&scifDriverSetup);
scifStartRtcTicksNow(0x00010000);
scifStartTasksNbl(BV(SCIF_I2C_TEST_TASK_ID));
which triggers the callback and unblocks the semaphore, at which point I can tell that I got an execution of the task and subsequently call
// Clear the ALERT interrupt source
scifClearAlertIntSource();
//DO STUFF HERE
// Acknowledge the alert event
scifAckAlertEvents();
At this point, I "think" it should run another task execution in a second, but nothing happens. Am I missing something, or misunderstanding the execution process?