小核内程序fwGenQuickAlertInterrupt();
大核内程序void scTaskAlertCallback(void)
{
Semaphore_post(Semaphore_handle(&semScTaskAlert));
// Clear the ALERT interrupt source
scifClearAlertIntSource();
}
void sensor_controller_init(uint8_t num)
{
//Initialize the AcquisitionInt
scifTaskData.temSensor.cfg.threshold = num;
// Initialize the Sensor Controller
scifOsalInit();
scifOsalRegisterCtrlReadyCallback(scCtrlReadyCallback);
scifOsalRegisterTaskAlertCallback(scTaskAlertCallback);
scifInit(&scifDriverSetup);
scifStartRtcTicksNow(0x00010000);
scifStartTasksNbl((1 << SCIF_TEM_SENSOR_TASK_ID));
}
Semaphore_pend(Semaphore_handle(&semScTaskAlert), BIOS_WAIT_FOREVER);//