diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-08 14:58:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-08 14:58:39 +0000 |
commit | 0d474a24f2322e7f635faf3400d459f9b3d84077 (patch) | |
tree | b4f2411764463aefcd6201623644426a52c75ea2 /tools/gencfg | |
parent | 4d773146cd6acd29bbe66a123ea27b953f5c6000 (diff) | |
download | ChibiOS-0d474a24f2322e7f635faf3400d459f9b3d84077.tar.gz ChibiOS-0d474a24f2322e7f635faf3400d459f9b3d84077.tar.bz2 ChibiOS-0d474a24f2322e7f635faf3400d459f9b3d84077.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4441 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/gencfg')
-rw-r--r-- | tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl index f424822fd..3a6881fc4 100644 --- a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl +++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl @@ -115,9 +115,9 @@ #define PIN_OSPEED_25M(n) (1U << ((n) * 2))
#define PIN_OSPEED_50M(n) (2U << ((n) * 2))
#define PIN_OSPEED_100M(n) (3U << ((n) * 2))
-#define PIN_PUDR_FLOATING(n) (0U << ((n) * 2))
-#define PIN_PUDR_PULLUP(n) (1U << ((n) * 2))
-#define PIN_PUDR_PULLDOWN(n) (2U << ((n) * 2))
+#define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2))
+#define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2))
+#define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2))
#define PIN_AFIO_AF(n, v) ((v##U) << ((n % 8) * 4))
[#list doc1.board.ports.* as port]
@@ -244,7 +244,7 @@ ${line + ")"} [#assign pinidx = pinidx + 1 /]
[/#list]
[#--
- -- Generating PUDR register value.
+ -- Generating PUPDR register value.
--]
[#assign pinidx = 0 /]
[#list port.* as pin]
@@ -255,14 +255,14 @@ ${line + ")"} [/#if]
[#assign resistor = pin.@Resistor[0] /]
[#if resistor == "Floating"]
- [#assign out = "PIN_PUDR_FLOATING(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_PUPDR_FLOATING(" + port_name + "_" + name + ")" /]
[#elseif resistor == "PullUp"]
- [#assign out = "PIN_PUDR_PULLUP(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_PUPDR_PULLUP(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_PUDR_PULLDOWN(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_PUPDR_PULLDOWN(" + port_name + "_" + name + ")" /]
[/#if]
[#if pinidx == 0]
- [#assign line = "#define VAL_" + port_name + "_PUDR (" + out /]
+ [#assign line = "#define VAL_" + port_name + "_PUPDR (" + out /]
[#else]
[#assign line = " " + out /]
[/#if]
|