From 8ebf06da5d7a974ed189362046ca76b07bf4b8d2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 5 Aug 2012 09:02:31 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4529 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../boards/stm32f0xx/templates/board.h.ftl | 16 ++++++++-------- .../org.chibios.tools.eclipse.config_1.0.2.jar | Bin 1845778 -> 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 Binary files a/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar and b/tools/eclipse/plugins/org.chibios.tools.eclipse.config_1.0.2.jar differ -- cgit v1.2.3