mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
update for tag movement
updated to new release
update pack in examples
new release number
rename to extra
Cleanup
Added ready-made examples to ST pack
Add Keil examples
Fix CRLF, start adding examples descriptions
Remove examples
STM32Cube Expansion Pack with no examples
Add STM32Cube Expansion Pack skeleton
Added examples for discussion
Add support for Cube
Working on examples
pack skeleton ready
36 lines
809 B
Plaintext
36 lines
809 B
Plaintext
[#ftl]
|
|
|
|
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
|
#if defined(MG_ARCH)
|
|
#define MG_STMPACK_ARCH MG_ARCH
|
|
#undef MG_ARCH
|
|
#elif defined(__GNUC__)
|
|
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
|
#endif
|
|
|
|
[#list SWIPdatas as SWIP]
|
|
[#if SWIP.defines??]
|
|
[#list SWIP.defines as def]
|
|
#define ${def.name} [#if def.value == "true"] 1 [#elseif def.value == "false"] 0 [#else]${def.value}[/#if]
|
|
|
|
[/#list]
|
|
[/#if]
|
|
[/#list]
|
|
|
|
// Translate to Mongoose macros
|
|
#if MG_STMPACK_NET == 0
|
|
#define MG_ENABLE_TCPIP 1
|
|
#elif MG_STMPACK_NET == 1
|
|
#define MG_ENABLE_LWIP 1
|
|
#elif MG_STMPACK_NET == 2
|
|
#define MG_ENABLE_FREERTOS_TCP 1
|
|
#elif MG_STMPACK_NET == 3
|
|
#define MG_ENABLE_RL 1
|
|
#endif
|
|
|
|
#if MG_ENABLE_PACKED_FS
|
|
#define MG_ENABLE_FILE 0
|
|
#endif
|
|
|
|
// See https://mongoose.ws/documentation/#build-options
|