784 views
in Embedded Wizard Studio by
I want to generate a #define code using the project member "Inline Code".
I have placed the Inline Code within a Unit called Data.
The #define code will be generated in the Data.c file. But I want to have it in the Data.h file.

Is it possible to do this?

Best Regards
Giuseppe Mangiameli

1 Answer

0 votes
by

Hello Giuseppe,

as you already found out, the Inline Code member is used to place code into the generated C file - not in the generated H file. The idea is to put some code snippets or #include statments into the generated code.

Can you explain what you finally want to achieve?

Best regards,

Manfred.

by
Hello Manfred,

Thank you for your answer.

I have several profiles in my EW project and want to pass #define statements to my IAR project depending on the profile I choose.
I wan't create new profiles in the IAR-Project because I have already a lot.

Meanwhile I have found a solution. I have added an empty unit "Options" which contains only profile dependent inlines.
In the IAR project I added in my main.c file #include "Options.c". With this I achieved what I wanted.

Best Regards
Giuseppe Mangiameli

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...