Sensor Controller Studio中产生的代码如何在CC2640/CC2650的M3中使用及整个平台环境搭建,
比如Sensor Controller Studio 里生成的ADC代码如何在CC2640/CC2650的M3中调用?
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.
Liu,
在sensor controller studio的安装目录下面,有个指导文档:
C:\Program Files (x86)\Texas Instruments\Sensor Controller Studio\docs\quick_start_guide_sensor_controller_studio.pdf
另外,以SCE的light sensor为例子,如何加入到simpleBLEPeripheral工程中去,如下:
Add the Sensor controller driver to SimpleBLEPeripheral_scif - Generate the analog light sensor drivers in SCS. - Push the button on the bottom right in the Code Generator pane to view output directory and copy the following files… o scif.c o scif.h o scif_framework.c o scif_framework.h o scif_osal_tirtos.c o scif_osal_tirtos.h … to a new folder (you will have to create it) called Scif_driver located here: C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Scif_driver - In the CC2640App_scif project, add a new group called “Scif_driver”. - Then add all the files you added above from the IAR project into this group. - Then add the two following files from the scs_hands_on_resources.zip to your app source folder ( C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application_scif ): o scif_task.c o scif_task.h These are based on the generated file called main_tirtos.c and they are modified slightly to fit into our application. - Add the two scif_task files to your CC2640App_scif project in the Application_scif group. - In main.c which is located in the “Startup” project group, you need to add the o Add <#include "scif_task.h"> in top of file main.c. o Add <scif_createTask();> in function main() right after SimpleBLEPeripheral_createTask. - Add following path to “Additional Include Directories” in project options: $PROJ_DIR$/../../../Source/Scif_driver - Do the following changes in optical.c : o Add <#include "scif_task.h"> at the top. o In the optical_ProcessSensorEvent function set <data = sceLightData;> In the scif taskFxn the bin value reported from the sensor controller will be directly updated in the optical characteristic value. The solution can be found as a patch (solution_patch.zip) in the scs_hands_on_resources.zip. This is neither the only solution nor is it the optimal one, so feel free to modify and implement the functionality how you see fit. You can for example try to integrate the SCE task into the simpleBLEPeriperhal task.
… to a new folder (you will have to create it) called Scif_driver located here: C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Scif_driver - In the CC2640App_scif project, add a new group called “Scif_driver”. - Then add all the files you added above from the IAR project into this group. - Then add the two following files from the scs_hands_on_resources.zip to your app source folder ( C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application_scif ): o scif_task.c o scif_task.hHI ,
我也有此疑惑,
- Then add the two following files from the scs_hands_on_resources.zip to your app source folder
(C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application_scif):
这2个文件如何修改那?
另外:
- Do the following changes in optical.c :
这个optical.c文件有什么作用,也没有啊?
期待IT的答复!