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.

[参考译文] CC2640:Sensor Controller Studio 未生成任务数据结构

Guru**** 2576215 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/590376/cc2640-sensor-controller-studio-is-not-generating-task-data-structures

器件型号:CC2640

大家好、

我最近已开始处理 SCS。 我想使用 SCS 中的 SPI 外设。  

当我为 SPI 外设创建 SCS 项目时、默认情况下 SCS 不会生成任何数据结构。 其中、对于示例项目模拟光传感器、默认情况下、工具生成输出、cfg 和状态数据结构。  

即使我修改 scif.h 文件、这些数据结构也不会反映在数据结构面板中。 但是、在下一代代码中、我的修改被工具擦除。  我的 scif.h 文件如下所示。  

//未定义任务数据结构


//传感器控制器任务数据(配置、输入缓冲器、输出缓冲器和内部状态)
typedef 结构{
uint16_t notTaskData;
} SCIF_TASK_DATA_T;

如何使工具自动生成这些内容?  

此致

Lakshmikanth。