From 1a1058cda3211faa65b8f622fb1f79d9a673efc4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 8 Jul 2012 13:50:34 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4439 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gencfg/processors/boards') diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl index 59790e41e..f424822fd 100644 --- a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl +++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl @@ -165,11 +165,11 @@ [#if mode == "Input"] [#assign out = "PIN_MODE_INPUT(" + port_name + "_" + name + ")" /] [#elseif mode == "Output"] - [#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + pin_name + ")" /] + [#assign out = "PIN_MODE_OUTPUT(" + port_name + "_" + name + ")" /] [#elseif mode == "Alternate"] - [#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + pin_name + ")" /] + [#assign out = "PIN_MODE_ALTERNATE(" + port_name + "_" + name + ")" /] [#else] - [#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + pin_name + ")" /] + [#assign out = "PIN_MODE_ANALOG(" + port_name + "_" + name + ")" /] [/#if] [#if pinidx == 0] [#assign line = "#define VAL_" + port_name + "_MODER (" + out /] -- cgit v1.2.3