aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl')
-rw-r--r--tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl11
1 files changed, 6 insertions, 5 deletions
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 d4c05c1cf..cfdf73b45 100644
--- a/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl
+++ b/tools/gencfg/processors/hal/stm32f4xx/templates/hal_cfg.h.ftl
@@ -21,20 +21,21 @@
[@pp.dropOutputFile /]
[#import "/@lib/libutils.ftl" as utils /]
[#import "/@lib/liblicense.ftl" as license /]
-[@pp.changeOutputFile name=doc1.configuration.@name[0] + ".h" /]
+[#assign fname = doc1.configuration.@name[0] /]
+[@pp.changeOutputFile name = fname + ".h" /]
/*
[@license.EmitLicenseAsText /]
*/
-#ifndef _x_H_
-#define _x_H_
+#ifndef _${fname?upper_case}_H_
+#define _${fname?upper_case}_H_
#ifdef __cplusplus
extern "C" {
#endif
- void boardInit(void);
+
#ifdef __cplusplus
}
#endif
-#endif /* _x_H_ */
+#endif /* _${fname?upper_case}_H_ */