aboutsummaryrefslogtreecommitdiffstats
path: root/tools/eclipse
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-05 09:02:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-05 09:02:31 +0000
commit8ebf06da5d7a974ed189362046ca76b07bf4b8d2 (patch)
tree83c69682bad32ae59d0ef4846c5b11cf12167b8e /tools/eclipse
parent52801d1c7601049db55ad94704ebb84aaf3887ac (diff)
downloadChibiOS-8ebf06da5d7a974ed189362046ca76b07bf4b8d2.tar.gz
ChibiOS-8ebf06da5d7a974ed189362046ca76b07bf4b8d2.tar.bz2
ChibiOS-8ebf06da5d7a974ed189362046ca76b07bf4b8d2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4529 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/eclipse')
-rw-r--r--tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl16
-rw-r--r--tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jarbin1845778 -> 1845778 bytes
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl b/tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl
index b4b4007a7..798161f83 100644
--- a/tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl
+++ b/tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl
@@ -103,10 +103,10 @@
#define PIN_ODR_HIGH(n) (1U << (n))
#define PIN_OTYPE_PUSHPULL(n) (0U << (n))
#define PIN_OTYPE_OPENDRAIN(n) (1U << (n))
-#define PIN_OSPEED_2M(n) (0U << ((n) * 2))
-#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_OSPEED_400K(n) (0U << ((n) * 2))
+#define PIN_OSPEED_2M(n) (1U << ((n) * 2))
+#define PIN_OSPEED_10M(n) (2U << ((n) * 2))
+#define PIN_OSPEED_40M(n) (3U << ((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))
@@ -208,13 +208,13 @@ ${line + ")"}
[/#if]
[#assign speed = pin.@Speed[0] /]
[#if speed == "Minimum"]
- [#assign out = "PIN_OSPEED_2M(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_OSPEED_400K(" + port_name + "_" + name + ")" /]
[#elseif speed == "Low"]
- [#assign out = "PIN_OSPEED_25M(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_OSPEED_2M(" + port_name + "_" + name + ")" /]
[#elseif speed == "High"]
- [#assign out = "PIN_OSPEED_50M(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_OSPEED_10M(" + port_name + "_" + name + ")" /]
[#else]
- [#assign out = "PIN_OSPEED_100M(" + port_name + "_" + name + ")" /]
+ [#assign out = "PIN_OSPEED_40M(" + port_name + "_" + name + ")" /]
[/#if]
[#if pin_index == 0]
[#assign line = "#define VAL_" + port_name + "_OSPEEDR (" + out /]
diff --git a/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar b/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar
index 056b9d545..6da515a9a 100644
--- a/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar
+++ b/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar
Binary files differ