Post Go back to editing

发现一个ADSP-CM40x_Software-Rel2.1.0.exe的错误

错误如下:

在ADC的示例代码里面

/* ADCC Handle */

static ADI_ADCC_HANDLE  ghADCC;

/* ADCC Timer Handle */

static ADI_ADCC_HANDLE  ghADCCTimer;

示例代码引用ghADCCTimer

adi_adcc_OpenTimer (ghADCC,                                   /* ADCC Device handle */

                                      ADI_ADCC_TIMER0,                          /* Timer to open */

                                      gADCCTmrMemory,                           /* Timer memory */

                                      &ghADCCTimer)

而实际上API源代码里面对ghADCCTimer的引用原型

ADI_ADCC_RESULT  adi_adcc_OpenTimer (

    ADI_ADCC_HANDLE             hDevice,

    ADI_ADCC_TIMER              eTimer,

    void const                 *pMemory,

    ADI_ADCC_TMR_HANDLE        *phTimer

)

因此,示例代码应该有错,请确认。