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.

CC2640R2F: 协处理器不能工作

Part Number: CC2640R2F


嗨,我使用CC2640R2F 5.3.0SDK在CCS IDE上已经调试好了simple_peripheral程序。在Sensor Controller Studio 上测试好了 协处理器采集 ADC的程序,可是合并到一起就不能正常工作了。请问问题会出在哪里呢?

加入的方法如下:

void scCtrlReadyCallback(void) {

} // scCtrlReadyCallback
void scTaskAlertCallback(void) {

    // Clear the ALERT interrupt source
    //scifClearAlertIntSource();

    adc_value = scifTaskData.adcWindowMonitor.output.adcValue;

    // Acknowledge the alert event
    scifAckAlertEvents();
} // taskAlertCallback
void ScADCInit(void)
{
    // Initialize the Sensor Controller
    scifOsalInit();
    scifOsalRegisterCtrlReadyCallback(scCtrlReadyCallback);
    scifOsalRegisterTaskAlertCallback(scTaskAlertCallback);
    scifInit(&scifDriverSetup);
    scifStartRtcTicksNow(0x00010000);
}
void ScADCStart(void)
{
    scifStartTasksNbl(BV(SCIF_ADC_WINDOW_MONITOR_TASK_ID));
}
然后在   SimplePeripheral_init  里面调用
  ScADCInit();
  ScADCStart();
请帮忙看一下,谢谢。