diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-10 20:08:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-10 20:08:46 +0000 |
commit | dbfb5a1f70e69a3f412f2a69f528bf398633c10f (patch) | |
tree | 9df9a4e2de93b28fbc22956e6c902cd079cb1f47 /tools/gencfg/processors/hal | |
parent | f9f6c4db2df5174acdbd79959ff6ea3e07fd0de6 (diff) | |
download | ChibiOS-dbfb5a1f70e69a3f412f2a69f528bf398633c10f.tar.gz ChibiOS-dbfb5a1f70e69a3f412f2a69f528bf398633c10f.tar.bz2 ChibiOS-dbfb5a1f70e69a3f412f2a69f528bf398633c10f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4457 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/gencfg/processors/hal')
-rw-r--r-- | tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.c.ftl | 2 | ||||
-rw-r--r-- | tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.c.ftl b/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.c.ftl index e97f20c82..cd8b17a01 100644 --- a/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.c.ftl +++ b/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.c.ftl @@ -32,6 +32,8 @@ #include "ch.h"
#include "hal.h"
+#include "${fname + ".h"}"
+
/*===========================================================================*/
/* Module local definitions. */
/*===========================================================================*/
diff --git a/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl b/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl index b8f350ff9..050b2f84d 100644 --- a/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl +++ b/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl @@ -21,6 +21,8 @@ [@pp.dropOutputFile /]
[#import "/@lib/libutils.ftl" as utils /]
[#import "/@lib/liblicense.ftl" as license /]
+[#import "/@lib/libcode.ftl" as code /]
+[#import "/@lib/libstm32f4xx.ftl" as stm32f4xx /]
[#assign fname = doc1.configuration.@name[0] /]
[@pp.changeOutputFile name = fname + ".h" /]
/*
@@ -57,7 +59,12 @@ #ifdef __cplusplus
extern "C" {
#endif
-
+[#list doc1.configuration.configs.* as config]
+ [#assign config_type = config?node_name /]
+ [#if config_type == "adc_config"]
+ [@stm32f4xx.EmitADCConfigExtern config /]
+ [/#if]
+[/#list]
#ifdef __cplusplus
}
#endif
|