diff options
-rw-r--r-- | tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl | 16 | ||||
-rw-r--r-- | tools/eclipse/plugins/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 Binary files differindex 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 |