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.

TMS320C6678,用CSL库开发MCSPI,用哪个头文件?csl_mcspi.h没定义6678



你好,我尝试在用CSL库练习spi接口,在C:\ti\pdk_c667x_2_0_15\packages\ti\csl\csl_mcspi.h,

文件内容如下:

#ifndef CSL_MCSPI_TOP_H_
#define CSL_MCSPI_TOP_H_

#include <ti/csl/csl.h>
#include <ti/csl/tistdtypes.h>
#include <ti/csl/cslr_mcspi.h>
#if defined (SOC_AM574x) || defined (SOC_AM572x) || defined (SOC_TDA2XX) || defined (SOC_TDA2PX) || defined (SOC_DRA75x) || defined (SOC_AM571x) || defined (SOC_TDA2EX) || defined (SOC_DRA72x) || defined (SOC_TDA3XX) || defined (SOC_DRA78x) || defined(SOC_AM65XX) || defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_AM77X)
#include <ti/csl/src/ip/mcspi/V0/mcspi.h>
#elif defined (SOC_AM335x) || defined (SOC_AM437x)
#include <ti/csl/src/ip/mcspi/V0/mcspi.h>
#endif

#endif
就是没有  defined (SOC_6678)
那么请问大家,是如何用CSL来 驱动 spi的? 有例程最好了,谢谢大家。