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.

Using Grace.h configuration in different projects

Other Parts Discussed in Thread: MSP430FR5739

I have several Grace projects for the MSP430FR5739.

The #include is linked to <ti/mcu/msp430/Grace.h>

The configurations are different for each of the projects. What is the best way to create and access different Grace.h configuration files for the various projects without overwriting one single Grace.h file?

  • Grace.h simply declares the prototype for the Grace_init() function. It never changes. The Grace_init() signature is always the same.  For each project of yours, Grace.h is the same, but the Grace_init() function in the generated Grace_init.c file is different. It initializes only the peripherals that you have configured in a specific project.  The Grace_init.c in each of your projects always accurately reflects the state of your peripheral initialization for that project, and it gets regenerated  each time you modify and build the project.


    Regards,

    Joe

**Attention** This is a public forum