mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Squashed commit of the following:
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
This commit is contained in:
1 parent
91b87a6bd8
commit
836a8a284c
941 files changed
+646479
-1
No files matched your search
@@ -0,0 +1,72 @@
|
||||
[#ftl]
|
||||
/**
|
||||
******************************************************************************
|
||||
* File Name : ${name}
|
||||
* Description : This file provides code for the configuration
|
||||
* of the ${name} instances.
|
||||
******************************************************************************
|
||||
[@common.optinclude name=mxTmpFolder+"/license.tmp"/][#--include License text --]
|
||||
******************************************************************************
|
||||
*/
|
||||
[#assign s = name]
|
||||
[#assign toto = s?replace(".","__")]
|
||||
[#assign dashReplace = toto?replace("-","_")]
|
||||
[#assign inclusion_protection = dashReplace?upper_case]
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __${inclusion_protection}__
|
||||
#define __${inclusion_protection}__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
[#if includes??]
|
||||
[#list includes as include]
|
||||
#include "${include}"
|
||||
[/#list]
|
||||
[/#if]
|
||||
|
||||
[#-- SWIPdatas is a list of SWIPconfigModel --]
|
||||
[#list SWIPdatas as SWIP]
|
||||
[#-- Global variables --]
|
||||
[#if SWIP.variables??]
|
||||
[#list SWIP.variables as variable]
|
||||
extern ${variable.value} ${variable.name};
|
||||
[/#list]
|
||||
[/#if]
|
||||
|
||||
[#-- Global variables --]
|
||||
|
||||
[#assign instName = SWIP.ipName]
|
||||
[#assign fileName = SWIP.fileName]
|
||||
[#assign version = SWIP.version]
|
||||
|
||||
/**
|
||||
MiddleWare name : ${instName}
|
||||
MiddleWare fileName : ${fileName}
|
||||
MiddleWare version : ${version}
|
||||
*/
|
||||
[#if SWIP.defines??]
|
||||
[#list SWIP.defines as definition]
|
||||
/*---------- [#if definition.comments??]${definition.comments} [/#if] -----------*/
|
||||
#define ${definition.name} #t#t ${definition.value}
|
||||
[#if definition.description??]${definition.description} [/#if]
|
||||
[/#list]
|
||||
[/#if]
|
||||
|
||||
|
||||
|
||||
[/#list]
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /*__ ${inclusion_protection}_H */
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
@@ -0,0 +1,35 @@
|
||||
[#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
|
||||
Reference in new issue
Block a user