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.

Two Main() function (one is Excluded from Build) in CC430F6147

Other Parts Discussed in Thread: CC430F6147

Dear All,

I have start to understand the example code for CC430F6147, There is 2 different C file (for Tx and Rx) which contains Main () function in a single project, but C file with Rx has property that it is "Excluded from Build".

Any one can explain what is it mean? why they use Main() function two times?

Waiting for your reply.

Regards

Bhavdipsinh

  • In a lot of our examples for transceivers we have one file showing how to do Tx and one file to do Rx. Since you can only be either in Rx or Tx the project consist of two configurations, one for Tx and one for Rx. The file you don't need is then excluded from build. As long as one of the files are excluded from build this is a convenient way to make a project.

    Lets say you want to check if method 1, 2 or 3 is best for something in the debugging process. Instead of making one project for each one you can have a file for each and exclude the ones you don't use.   

  • Thanks etc... Data Converters
    Thanks for your explanation.

    Regards
    Bhavdipsinh