Generating Defines from CubeMX Settings
Is it possible to generate #define from project parameters in CubeMX, such that they are produced in a header file my user code can reference?
One example (of many possible ones) would be the HCLK frequency. I see MX generates the proper code to configure the RCC to generate the proper frequency, and at runtime I suppose I could look at how it's configured and do the math. but It'd be quite convenient, and a lot simpler, to be able to reference this frequency.
Something like "#define HCLK_FREQ_Hz 216000000" pushed to main.h would be useful, so user does not need to maintain information both in MX and separately in their source code.
Is there any way to get information that MX knows out into user code? Some sort of wildcard or symbol I can plug into the value of a user define to reference an internal variable, or something of the like?
Any help or guidance here would be appreciated. Thanks!
