Document lwIP version #defines

This commit is contained in:
Dirk Ziegelmeier 2016-07-31 16:05:42 +02:00
parent e76b8b2551
commit 52d6d696ae

View File

@ -43,6 +43,12 @@
extern "C" { extern "C" {
#endif #endif
/**
* @defgroup lwip_version Version
* @ingroup lwip
* @{
*/
/** X.x.x: Major version of the stack */ /** X.x.x: Major version of the stack */
#define LWIP_VERSION_MAJOR 2 #define LWIP_VERSION_MAJOR 2
/** x.X.x: Minor version of the stack */ /** x.X.x: Minor version of the stack */
@ -77,8 +83,13 @@ extern "C" {
/** Provides the version of the stack */ /** Provides the version of the stack */
#define LWIP_VERSION (((u32_t)LWIP_VERSION_MAJOR) << 24 | ((u32_t)LWIP_VERSION_MINOR) << 16 | \ #define LWIP_VERSION (((u32_t)LWIP_VERSION_MAJOR) << 24 | ((u32_t)LWIP_VERSION_MINOR) << 16 | \
((u32_t)LWIP_VERSION_REVISION) << 8 | ((u32_t)LWIP_VERSION_RC)) ((u32_t)LWIP_VERSION_REVISION) << 8 | ((u32_t)LWIP_VERSION_RC))
/** Provides the version of the stack as string */
#define LWIP_VERSION_STRING LWIP_VERSTR(LWIP_VERSION_MAJOR) "." LWIP_VERSTR(LWIP_VERSION_MINOR) "." LWIP_VERSTR(LWIP_VERSION_REVISION) LWIP_VERSION_STRING_SUFFIX #define LWIP_VERSION_STRING LWIP_VERSTR(LWIP_VERSION_MAJOR) "." LWIP_VERSTR(LWIP_VERSION_MINOR) "." LWIP_VERSTR(LWIP_VERSION_REVISION) LWIP_VERSION_STRING_SUFFIX
/**
* @}
*/
/* Modules initialization */ /* Modules initialization */
void lwip_init(void); void lwip_init(void);