aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-17 08:54:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-17 08:54:56 +0000
commitbec694657d30fcf912138d490828dc6add9042c7 (patch)
tree128382294dfac23c10f108e8187563718cdad73a
parentdb9be46157550da43fbf43685a67c7a686b95e85 (diff)
downloadChibiOS-bec694657d30fcf912138d490828dc6add9042c7.tar.gz
ChibiOS-bec694657d30fcf912138d490828dc6add9042c7.tar.bz2
ChibiOS-bec694657d30fcf912138d490828dc6add9042c7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4469 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--boards/ST_STM32F4_DISCOVERY/stm32f4board.xml1
-rw-r--r--tools/gencfg/schema/boards/abstract_board.xsd52
-rw-r--r--tools/gencfg/xml/stm32f4board.xml1
3 files changed, 36 insertions, 18 deletions
diff --git a/boards/ST_STM32F4_DISCOVERY/stm32f4board.xml b/boards/ST_STM32F4_DISCOVERY/stm32f4board.xml
index 7e1c446ce..0c51785f0 100644
--- a/boards/ST_STM32F4_DISCOVERY/stm32f4board.xml
+++ b/boards/ST_STM32F4_DISCOVERY/stm32f4board.xml
@@ -5,6 +5,7 @@
xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32f4xx_board.xsd">
<board_name>STMicroelectronics STM32F4-Discovery</board_name>
<board_id>ST_STM32F4_DISCOVERY</board_id>
+ <board_functions></board_functions>
<clocks HSEFrequency="8000000" HSEBypass="false" LSEFrequency="0" VDD="300" />
<ports>
<GPIOA>
diff --git a/tools/gencfg/schema/boards/abstract_board.xsd b/tools/gencfg/schema/boards/abstract_board.xsd
index 1a2c38bf2..c4c953240 100644
--- a/tools/gencfg/schema/boards/abstract_board.xsd
+++ b/tools/gencfg/schema/boards/abstract_board.xsd
@@ -6,24 +6,40 @@
<xs:complexType name="AbstractBoardType" abstract="true">
<xs:sequence>
- <xs:element name="board_name" maxOccurs="1" minOccurs="1">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:whiteSpace value="collapse"></xs:whiteSpace>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="board_id" maxOccurs="1" minOccurs="1">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:pattern value="\w[\w\d_]*"></xs:pattern>
- <xs:whiteSpace value="collapse"></xs:whiteSpace>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="ethernet_phy" type="EthernetPHYType"
- maxOccurs="1" minOccurs="0">
- </xs:element>
+ <xs:element name="board_name" maxOccurs="1" minOccurs="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="board_id" maxOccurs="1" minOccurs="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:pattern value="\w[\w\d_]*"></xs:pattern>
+ <xs:whiteSpace value="collapse"></xs:whiteSpace>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <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>
+ <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>
+ </xs:sequence>
+ </xs:complexType></xs:element>
+ <xs:element name="ethernet_phy" type="EthernetPHYType"
+ maxOccurs="1" minOccurs="0">
+ </xs:element>
</xs:sequence>
</xs:complexType>
diff --git a/tools/gencfg/xml/stm32f4board.xml b/tools/gencfg/xml/stm32f4board.xml
index dffa016c7..b1f755a2f 100644
--- a/tools/gencfg/xml/stm32f4board.xml
+++ b/tools/gencfg/xml/stm32f4board.xml
@@ -5,6 +5,7 @@
xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/boards/stm32f4xx_board.xsd">
<board_name>-----human readable blard name-----</board_name>
<board_id>BOARD_IDENTIFIER</board_id>
+ <board_functions></board_functions>
<ethernet_phy>
<identifier>MII_KS8721_ID</identifier>
<bus_type>RMII</bus_type>