|
Hi Anand,
the new release version 1.1 includes the defines now, thanks. But there is one thing I am not sure about how to take care of it. The header file cyfxversion.h has following note in the header:
NOTE: This header is used internally by the
library and is there in the solution for
reference. It should not be included in the
application source.
I think this is because the declaration of the constant variables and if I include this header then the compiler occurs in errors. In that manner the solution of the defines is unuseable for me.
A usable solution for all would be an additional header file e. g. cyfxversionmacro.h with just the macro definitions and then you include this file in the cyfxversion.h like....
cyfxversionmacro.h
-------------------------------------------------------------------------
#ifndef _INCLUDED_CYFXVERSIONMACRO_H_
#define _INCLUDED_CYFXVERSIONMACRO_H_
#define CYFX_VERSION_MAJOR (1)
#define CYFX_VERSION_MINOR (1)
#define CYFX_VERSION_PATCH (0)
#define CYFX_VERSION_BUILD (724)
#endif /* _INCLUDED_CYFXVERSIONMACRO_H_ */
-------------------------------------------------------------------------
cyfxversion.h
-------------------------------------------------------------------------
#ifndef _INCLUDED_CYFXVERSION_H_
#define _INCLUDED_CYFXVERSION_H_
/* Summary
Version information for the FX3 API library.
Description
The version information is composed of four values.
* Major number of the release version
* Minor number of the release version
* Patch number of the release
* Build number
NOTE: This header is used internally by the
library and is there in the solution for
reference. It should not be included in the
application source.
*/
#include "cyfxversionmacro.h"
const uint16_t cyfx_version_major = CYFX_VERSION_MAJOR;
const uint16_t cyfx_version_minor = CYFX_VERSION_MINOR;
const uint16_t cyfx_version_patch = CYFX_VERSION_PATCH;
const uint16_t cyfx_version_build = CYFX_VERSION_BUILD;
#endif /* _INCLUDED_CYFXVERSION_H_ */
-------------------------------------------------------------------------
And then I am also able to inlcude the "cyfxversionmacro.h" as well.
Regards,
Lumpi
|