// ----------------------------------------------------------------------------- /// @file Version.h /// @brief File description // ----------------------------------------------------------------------------- // Micro-Key bv // Industrieweg 28, 9804 TG Noordhorn // Postbus 92, 9800 AB Zuidhorn // The Netherlands // Tel: +31 594 503020 // Fax: +31 594 505825 // Email: support@microkey.nl // Web: www.microkey.nl // ----------------------------------------------------------------------------- /// $Revision$ /// $Author$ /// $Date$ // (c) 2015 Micro-Key bv // ----------------------------------------------------------------------------- /** * %Version implementation * \defgroup Version Package Version * \ingroup Platform * @{ */ #ifndef INC_VERSION_H_ #define INC_VERSION_H_ // ----------------------------------------------------------------------------- // Include files // ----------------------------------------------------------------------------- #include "stm32f10x.h" #include "platform.h" // ----------------------------------------------------------------------------- // Constant and macro definitions // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // Type definitions. // ----------------------------------------------------------------------------- struct Version { int major; int minor; int branch; int patch; }; // ----------------------------------------------------------------------------- // Function declarations // ----------------------------------------------------------------------------- /** ---------------------------------------------------------------------------- * Version_getInstance * Initialises the Version information. * Version information is supplied via macros in makefile * This function creates a singleton. Calling this function for the first time * constructs the Version information. Calling it afterwards returns the already * constructed data * * @return struct Version* The Version information singleton * * * @todo * ----------------------------------------------------------------------------- */ extern struct Version* Version_getInstance(void); #endif /* INC_VERSION_H_ */ /** @} */