diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-06 14:57:48 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-06 14:57:48 +0000 |
commit | a072b394a2ea71c424cd80c2541492724448b6d2 (patch) | |
tree | 00ddc173a2b8ee440381b42eec56f182f7718225 /tools/eclipse/config_wizard/resources/gencfg | |
parent | 52dc5338772fa93dc6ad1c4bd0b8245a9db59405 (diff) | |
download | ChibiOS-a072b394a2ea71c424cd80c2541492724448b6d2.tar.gz ChibiOS-a072b394a2ea71c424cd80c2541492724448b6d2.tar.bz2 ChibiOS-a072b394a2ea71c424cd80c2541492724448b6d2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4537 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/eclipse/config_wizard/resources/gencfg')
6 files changed, 123 insertions, 64 deletions
diff --git a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/abstract_board.xsd b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/abstract_board.xsd index c4c953240..a1c696339 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/abstract_board.xsd +++ b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/abstract_board.xsd @@ -3,10 +3,12 @@ xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="../common/doc.xsd" />
+ <xs:include schemaLocation="../common/config_settings.xsd" />
<xs:complexType name="AbstractBoardType" abstract="true">
<xs:sequence>
- <xs:element name="board_name" maxOccurs="1" minOccurs="1">
+ <xs:element name="configuration_settings" type="ConfigurationSettingsType" maxOccurs="1" minOccurs="1"></xs:element> + <xs:element name="board_name" maxOccurs="1" minOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"></xs:whiteSpace>
@@ -21,25 +23,36 @@ </xs:restriction>
</xs:simpleType>
</xs:element>
- <xs:element name="board_functions" maxOccurs="1" minOccurs="1">
+ <xs:element name="board_functions" maxOccurs="1"
+ minOccurs="1">
<xs:complexType>
<xs:sequence>
- <xs:element name="__early_init" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element> - <xs:element name="boardInit" type="xs:string" maxOccurs="1" minOccurs="0">
- </xs:element>
- <xs:element name="sdc_lld_is_card_inserted" type="xs:string" maxOccurs="1" minOccurs="0">
+ <xs:element name="__early_init" type="xs:string"
+ maxOccurs="1" minOccurs="0">
</xs:element>
- <xs:element name="sdc_lld_is_write_protected" type="xs:string" maxOccurs="1" minOccurs="0">
+ <xs:element name="boardInit" type="xs:string"
+ maxOccurs="1" minOccurs="0">
</xs:element>
- <xs:element name="mmc_lld_is_card_inserted" type="xs:string" maxOccurs="1" minOccurs="0">
+
+ <xs:element name="sdc_lld_is_card_inserted"
+ type="xs:string" maxOccurs="1" minOccurs="0">
+ </xs:element>
+ <xs:element name="sdc_lld_is_write_protected"
+ type="xs:string" maxOccurs="1" minOccurs="0">
+ </xs:element>
+ <xs:element name="mmc_lld_is_card_inserted"
+ type="xs:string" maxOccurs="1" minOccurs="0">
</xs:element>
- <xs:element name="mmc_lld_is_write_protected" type="xs:string" maxOccurs="1" minOccurs="0">
+ <xs:element name="mmc_lld_is_write_protected"
+ type="xs:string" maxOccurs="1" minOccurs="0">
</xs:element>
</xs:sequence>
- </xs:complexType></xs:element> - <xs:element name="ethernet_phy" type="EthernetPHYType"
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ethernet_phy" type="EthernetPHYType"
maxOccurs="1" minOccurs="0">
- </xs:element>
+ </xs:element>
+
</xs:sequence>
</xs:complexType>
diff --git a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f4xx_board.xsd b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f4xx_board.xsd index ace3b5acb..072880711 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f4xx_board.xsd +++ b/tools/eclipse/config_wizard/resources/gencfg/schema/boards/stm32f4xx_board.xsd @@ -1,63 +1,61 @@ <?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
- xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:include schemaLocation="../common/doc.xsd" />
- <xs:include schemaLocation="../common/stm32/stm32_gpiov2_port.xsd" />
- <xs:include schemaLocation="abstract_board.xsd" />
+ <xs:include schemaLocation="../common/doc.xsd" />
+ <xs:include schemaLocation="../common/stm32/stm32_gpiov2_port.xsd" />
+ <xs:include schemaLocation="abstract_board.xsd" /> - <xs:complexType name="STM32F4xxBoardType"> - <xs:complexContent> - <xs:extension base="AbstractBoardType"> - <xs:sequence> - <xs:element name="clocks" maxOccurs="1" minOccurs="1"> - <xs:complexType> - <xs:attribute name="HSEBypass" use="required"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:whiteSpace value="collapse"></xs:whiteSpace> - <xs:enumeration value="false"></xs:enumeration> - <xs:enumeration value="true"></xs:enumeration> - </xs:restriction> - </xs:simpleType> - </xs:attribute>
- <xs:attribute name="HSEFrequency"
- use="required">
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:whiteSpace value="collapse"></xs:whiteSpace>
- <xs:minInclusive value="0"></xs:minInclusive>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="LSEFrequency"
- use="required">
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ <xs:complexType name="STM32F4xxBoardType"> + <xs:complexContent> + <xs:extension base="AbstractBoardType"> + <xs:sequence> + <xs:element name="clocks" maxOccurs="1" minOccurs="1"> + <xs:complexType> + <xs:attribute name="HSEBypass" use="required"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:whiteSpace value="collapse"></xs:whiteSpace> + <xs:enumeration value="false"></xs:enumeration> + <xs:enumeration value="true"></xs:enumeration> + </xs:restriction> + </xs:simpleType> + </xs:attribute>
+ <xs:attribute name="HSEFrequency" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:int">
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ <xs:minInclusive value="0"></xs:minInclusive>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="LSEFrequency" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:int">
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
- <xs:minInclusive value="0"></xs:minInclusive>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="VDD" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:int">
- <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ <xs:minInclusive value="0"></xs:minInclusive>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="VDD" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:int">
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
- <xs:minInclusive value="180"></xs:minInclusive>
+ <xs:minInclusive value="180"></xs:minInclusive>
- <xs:maxInclusive value="360"></xs:maxInclusive>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:complexType></xs:element> - <xs:element name="ports" type="portsType" maxOccurs="1"
- minOccurs="1">
- </xs:element>
- </xs:sequence>
+ <xs:maxInclusive value="360"></xs:maxInclusive>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element> + <xs:element name="ports" type="portsType" maxOccurs="1" minOccurs="1">
+ </xs:element>
+ </xs:sequence>
- </xs:extension>
+ </xs:extension>
</xs:complexContent>
</xs:complexType>
diff --git a/tools/eclipse/config_wizard/resources/gencfg/schema/common/config_settings.xsd b/tools/eclipse/config_wizard/resources/gencfg/schema/common/config_settings.xsd new file mode 100644 index 000000000..45d228142 --- /dev/null +++ b/tools/eclipse/config_wizard/resources/gencfg/schema/common/config_settings.xsd @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ + <xs:complexType name="ConfigurationSettingsType"> + <xs:sequence> + <xs:element name="templates_path" minOccurs="1"
+ maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation>Templates resources associated to the configuration.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1"></xs:minLength>
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ <xs:pattern value="[\w\d_/.]+"></xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="output_path" maxOccurs="1"
+ minOccurs="1">
+ <xs:annotation>
+ <xs:documentation>Output directory relative to the configuration file.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1"></xs:minLength>
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ <xs:pattern value="[\w\d_/.]+"></xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
diff --git a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f0board.xml b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f0board.xml index 7e4dd5459..843dfe925 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f0board.xml +++ b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f0board.xml @@ -3,6 +3,10 @@ <board
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32f0xx_board.xsd">
+ <configuration_settings>
+ <templates_path>resources/gencfg/processors/boards/stm32f0xx/templates</templates_path>
+ <output_path>.</output_path>
+ </configuration_settings>
<board_name>-----human readable board name-----</board_name>
<board_id>BOARD_IDENTIFIER</board_id>
<board_functions></board_functions>
diff --git a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f4board.xml b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f4board.xml index 7becd89df..66a09d0d6 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f4board.xml +++ b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32f4board.xml @@ -3,6 +3,10 @@ <board
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32f4xx_board.xsd">
+ <configuration_settings>
+ <templates_path>resources/gencfg/processors/boards/stm32f4xx/templates</templates_path>
+ <output_path>.</output_path>
+ </configuration_settings>
<board_name>-----human readable board name-----</board_name>
<board_id>BOARD_IDENTIFIER</board_id>
<board_functions></board_functions>
diff --git a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32l1board.xml b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32l1board.xml index 1f6554026..00e5b5319 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/xml/stm32l1board.xml +++ b/tools/eclipse/config_wizard/resources/gencfg/xml/stm32l1board.xml @@ -3,6 +3,10 @@ <board
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32l1xx_board.xsd">
+ <configuration_settings>
+ <templates_path>resources/gencfg/processors/boards/stm32l1xx/templates</templates_path>
+ <output_path>.</output_path>
+ </configuration_settings>
<board_name>-----human readable board name-----</board_name>
<board_id>BOARD_IDENTIFIER</board_id>
<board_functions></board_functions>
|