mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
Added LWIP_VERSION to get the current version of the stack (implements task #9032: Provide means to get Version of Stack and submodules)
This commit is contained in:
parent
bf09400c4c
commit
466f4e699c
@ -19,6 +19,9 @@ HISTORY
|
|||||||
|
|
||||||
++ New features:
|
++ New features:
|
||||||
|
|
||||||
|
2009-02-12 Simon Goldschmidt
|
||||||
|
* init.h: Added LWIP_VERSION to get the current version of the stack
|
||||||
|
|
||||||
2009-02-11 Simon Goldschmidt (suggested by Gottfried Spitaler)
|
2009-02-11 Simon Goldschmidt (suggested by Gottfried Spitaler)
|
||||||
* opt.h, memp.h/.c: added MEMP_MEM_MALLOC to use mem_malloc/mem_free instead
|
* opt.h, memp.h/.c: added MEMP_MEM_MALLOC to use mem_malloc/mem_free instead
|
||||||
of the pool allocator (can save code size with MEM_LIBC_MALLOC if libc-malloc
|
of the pool allocator (can save code size with MEM_LIBC_MALLOC if libc-malloc
|
||||||
|
@ -38,6 +38,23 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** X.x.x: Major version of the stack */
|
||||||
|
#define LWIP_VERSION_MAJOR 1
|
||||||
|
/** x.X.x: Minor version of the stack */
|
||||||
|
#define LWIP_VERSION_MINOR 3
|
||||||
|
/** x.x.X: Revision of the stack */
|
||||||
|
#define LWIP_VERSION_REVISION 1
|
||||||
|
/** For release candidates, this is set to 0..255
|
||||||
|
* For official releases, this is set to 255 (i.e. LWIP_RC_RELEASE) */
|
||||||
|
#define LWIP_VERSION_RC 0
|
||||||
|
|
||||||
|
/** LWIP_VERSION_RC is set to LWIP_RC_RELEASE for official releases */
|
||||||
|
#define LWIP_RC_RELEASE 255
|
||||||
|
|
||||||
|
/** Provides the version of the stack */
|
||||||
|
#define LWIP_VERSION (LWIP_VERSION_MAJOR << 24 | LWIP_VERSION_MINOR << 16 |
|
||||||
|
LWIP_VERSION_REVISION << 8 | LWIP_VERSION_RC)
|
||||||
|
|
||||||
/* Modules initialization */
|
/* Modules initialization */
|
||||||
void lwip_init(void);
|
void lwip_init(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user