aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-08 13:32:14 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-08 13:32:14 +0000
commit7f96cf83f5bc9e2f4fcd1b9f060cffe8f4f326e8 (patch)
treebcef978e394e2dd5e00c7fc6a02a2a3c12dcddbd /tools
parent1412b2244137b366c6b6741ac56e3b14048d57a2 (diff)
downloadChibiOS-7f96cf83f5bc9e2f4fcd1b9f060cffe8f4f326e8.tar.gz
ChibiOS-7f96cf83f5bc9e2f4fcd1b9f060cffe8f4f326e8.tar.bz2
ChibiOS-7f96cf83f5bc9e2f4fcd1b9f060cffe8f4f326e8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4438 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools')
-rw-r--r--tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl
index 9127e0a10..59790e41e 100644
--- a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl
+++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl
@@ -163,7 +163,7 @@
[/#if]
[#assign mode = pin.@Mode[0] /]
[#if mode == "Input"]
- [#assign out = "PIN_MODE_INPUT(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_MODE_INPUT(" + port_name + "_" + name + ")" /]
[#elseif mode == "Output"]
[#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + pin_name + ")" /]
[#elseif mode == "Alternate"]
@@ -195,9 +195,9 @@ ${line + ")"}
[/#if]
[#assign type = pin.@Type[0] /]
[#if type == "PushPull"]
- [#assign out = "PIN_OTYPE_PUSHPULL(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OTYPE_PUSHPULL(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_OTYPE_OPENDRAIN(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OTYPE_OPENDRAIN(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_OTYPER (" + out /]
@@ -223,13 +223,13 @@ ${line + ")"}
[/#if]
[#assign speed = pin.@Speed[0] /]
[#if speed == "Minimum"]
- [#assign out = "PIN_OSPEED_2M(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OSPEED_2M(" + port_name + "_" + name + ")" /]
[#elseif speed == "Low"]
- [#assign out = "PIN_OSPEED_25M(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OSPEED_25M(" + port_name + "_" + name + ")" /]
[#elseif speed == "High"]
- [#assign out = "PIN_OSPEED_50M(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OSPEED_50M(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_OSPEED_100M(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_OSPEED_100M(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_OSPEEDR (" + out /]
@@ -255,11 +255,11 @@ ${line + ")"}
[/#if]
[#assign resistor = pin.@Resistor[0] /]
[#if resistor == "Floating"]
- [#assign out = "PIN_PUDR_FLOATING(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_PUDR_FLOATING(" + port_name + "_" + name + ")" /]
[#elseif resistor == "PullUp"]
- [#assign out = "PIN_PUDR_PULLUP(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_PUDR_PULLUP(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_PUDR_PULLDOWN(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_PUDR_PULLDOWN(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_PUDR (" + out /]
@@ -285,9 +285,9 @@ ${line + ")"}
[/#if]
[#assign level = pin.@Level[0] /]
[#if level == "Low"]
- [#assign out = "PIN_ODR_LOW(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_ODR_LOW(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_ODR_HIGH(" + port_name + "_" + pin_name + ")" /]
+ [#assign out = "PIN_ODR_HIGH(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_ODR (" + out /]
@@ -312,7 +312,7 @@ ${line + ")"}
[#assign name = pin_name /]
[/#if]
[#assign alternate = pin.@Alternate[0]?trim /]
- [#assign out = "PIN_AFIO_AF(" + port_name + "_" + pin_name + ", " + alternate + ")" /]
+ [#assign out = "PIN_AFIO_AF(" + port_name + "_" + name + ", " + alternate + ")" /]
[#if pinidx == 0]
[#assign line = "#define VAL_" + port_name + "_AFRL (" + out /]
[#elseif pinidx == 8]