Luis Lanca
Luis Lanca

Reputation: 1

How to configure a coder to generate a constant pointer to a constant variable?

My objective is to configure the Simulink Coder/Embedded Coder to generate for global parameters the following result:

extern const real32_T* const globalParameter;

Using the Custom Storage Class Designer tool (cscdesigner) I managed to partially achieve my goal, currently I generate the following result:

extern const real32_T* globalParameter;

How can I can I configure the coder to generate the missing part i.e., the constant variable:

const globalParameter

Thanks for your support!

Best regards,

Luis

Upvotes: 0

Views: 435

Answers (1)

MonkeyProof Solutions
MonkeyProof Solutions

Reputation: 154

You can always use TLC for your CSC, for further customizations in case the normal options do not provide you the options you need. From the top of my head I do not know if what you want is possible using "normal" CSC.

Upvotes: 0

Related Questions