aboutsummaryrefslogtreecommitdiffstats
path: root/tools/eclipse/config_wizard/resources
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-06 10:53:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-06 10:53:16 +0000
commit633098ebcd87d2a654deede6feff0d93fdabaebc (patch)
treeb1f97259ff9915cae042e4c419aca1897d0892c6 /tools/eclipse/config_wizard/resources
parentcc3cf07897dbd9f4fc27c6117c88fb7cbf85b1a6 (diff)
downloadChibiOS-633098ebcd87d2a654deede6feff0d93fdabaebc.tar.gz
ChibiOS-633098ebcd87d2a654deede6feff0d93fdabaebc.tar.bz2
ChibiOS-633098ebcd87d2a654deede6feff0d93fdabaebc.zip
STM32F3 SPI working, STM32F0 support update.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4879 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/eclipse/config_wizard/resources')
-rw-r--r--tools/eclipse/config_wizard/resources/gencfg/processors/boards/stm32f0xx/templates/board.h.ftl10
-rw-r--r--tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f0xx_board.xsd13
2 files changed, 21 insertions, 2 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 30fda47df..6eb360b6c 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
@@ -47,8 +47,8 @@
[#if doc1.board.ethernet_phy.bus_type[0]?string == "RMII"]
#define BOARD_PHY_RMII
[/#if]
-[/#if]
+[/#if]
/*
* Board oscillators-related settings.
[#if doc1.board.clocks.@LSEFrequency[0]?number == 0]
@@ -62,14 +62,20 @@
#define STM32_LSECLK ${doc1.board.clocks.@LSEFrequency[0]}
#endif
+[#if doc1.board.clocks.@LSEBypass[0]?string == "true"]
+#define STM32_LSE_BYPASS
+
+[/#if]
+#define STM32_LSEDRV (${doc1.board.clocks.@LSEDrive[0]?word_list[0]?number} << 3)
+
#if !defined(STM32_HSECLK)
#define STM32_HSECLK ${doc1.board.clocks.@HSEFrequency[0]}
#endif
[#if doc1.board.clocks.@HSEBypass[0]?string == "true"]
#define STM32_HSE_BYPASS
-[/#if]
+[/#if]
/*
* MCU type as defined in the ST header file stm32f0xx.h.
*/
diff --git a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f0xx_board.xsd b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f0xx_board.xsd
index 59b6e3d68..fb41cf6ea 100644
--- a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f0xx_board.xsd
+++ b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f0xx_board.xsd
@@ -41,6 +41,19 @@
</xs:restriction>
</xs:simpleType>
</xs:attribute>
+ <xs:attribute name="LSEDrive" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:whiteSpace
+ value="collapse">
+ </xs:whiteSpace>
+ <xs:enumeration value="3 High Drive (default)"></xs:enumeration>
+ <xs:enumeration value="2 Medium-High Drive"></xs:enumeration>
+ <xs:enumeration value="1 Medium-Low Drive"></xs:enumeration>
+ <xs:enumeration value="0 Low Drive (lowest consumption)"></xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
<xs:attribute name="LSEFrequency"
use="required">
<xs:simpleType>