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.

LAUNCHXL-F280039C: Including Header Files from "Includes" folder and Circular Buffer Implementation

Part Number: LAUNCHXL-F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello,

I see the below picture in my Project Explorer. I'm trying to discern two things:

1) How do i properly include what's under the /include folder (Seen below)? It seems that while they're in a folder called includes, it's not obvious to me that they're included and they don't appear in the folder if you export your project. Should I copy those header files or C files into my project folder/under my project?

2) That folder is entirely undisturbed since I downloaded the C2000Ware suite. Will anything in this folder help with the creation and usage of circular buffers?

Thanks,

Reid

  • Reid 

    1. For the first one, you will have refer to the  include path speficifed in the Project properties .  

    If you export the project, the header files that are not explicitly added/linked to a projected are  not  included in the exported project. 

    2.  What is the use case for the circular buffer? 

    Best Regards

    Siddharth

  • 1. Understood. How do I go about adding headers/files from that folder into the project? Is it as simple as right clicking the project, going to Properties, and going to Include Options?

    2. I'd like to populate the circular buffer with readings from an ADC in order to do difference equations.

    Thanks,

    Reid

  • Reid

    1. Yes, you will have to add the include paths in the Project Properties. Right click on the project -> Properties -> C2000 Compiler - > Include Options

    2.  You can refer the adc lab example provided within C2000Ware , source located at <C2000Ware>training\src\analog_subsystems\adc_lab and project spec located at <C2000Ware>\training\device\f28003x\analog_subsystems\lab_adc .  In this example , a single ADC input channel  is sampled at prescribed sampling rate and the result is stored in a circular memory buffer.

    Best Regards

    Siddharth