Tool/software: TI-RTOS
Hello,
I am modifying a program from Resource Explorer/CC2640R2 board to read accelerometer values from a 3-axis accelerometer and send the results from the three-axes (x, y, and z) via BLE to a notepad/phone/…. The data are three 16-bit values. I am following the example for ‘Thermostat’ (http://dev.ti.com/tirex/content/simplelink_academy_cc2640r2sdk_1_12_00_00/modules/ble_02_thermostat/ble_02_thermostat.html#expandable_-expand-for-header-file-for-temperature-reading-task-) The example is fairly easy to follow UNTIL the section ‘TASK 4’. While several of the instructions for TASK 4 are ‘plug-and-chug’, I see no easy/straight-forward method to extend the example to the general case (i.e., see ‘1’ below), and am looking for suggestions/insight on how to do so:
1 – It is stated “ ….the following code was modified from the temperature.c file….It was modified to run in a TI-RTOS task” Again, not clear what to do with/how to change *my*/a different program, i.e., just change all of the TMP007 references to i.e., MYACCEL…., to make this go ??
2 – The .h file is short enough, but again, just change all of the ‘tmp007’ references ? How was it generated, as the original project just shows ‘board.h’, ‘temperature.c’, ….
3 – Would using the Bluetooth Developers Suite (BDS) solve/address *ALL* of these issues ??? It seems like it might, as it generates all of the services and actually generates an entirely different/modified application program, but again looking for someone with more experience.
4 – If I use BDS, where and how do I specify my output data. Currently thinking of using one service that has as output x, y, and z, accelerometer data.
I believe in ‘hope’, but if possible would like a more concrete method to go about converting generating the files.
Thanks,
J.