git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4431 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-07-08 08:46:16 +00:00
parent ea38721fc3
commit 3d44ca0b8b
4 changed files with 23 additions and 5 deletions

View File

@ -7,7 +7,9 @@
BoardID="ST_STM32F4_DISCOVERY"
HSEBypass="true"
HSEFrequency="0"
LSEFrequency="0">
LSEFrequency="0"
BoardPHYID="MII_KS8721_ID"
BoardPHYType="RMII">
<ports>
<GPIOA>
<pin0

View File

@ -79,7 +79,7 @@ bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
return TRUE;
}
/*
/**
* @brief SDC card write protection detection.
* @todo Fill the implementation.
*/
@ -101,7 +101,7 @@ bool_t mmc_lld_is_card_inserted(MMCDriver *mmcp) {
return TRUE;
}
/*
/**
* @brief MMC_SPI card write protection detection.
* @todo Fill the implementation.
*/

View File

@ -33,6 +33,22 @@
* Setup for ${doc1.board.@name[0]} board.
*/
/*
* Board identifier.
*/
#define BOARD_${doc1.board.@BoardID[0]}
#define BOARD_NAME "${doc1.board.@name[0]}"
[#if doc1.board.@BoardPHYID[0]??]
/*
* Ethernet PHY type.
*/
#define BOARD_PHY_ID ${doc1.board.@BoardPHYID[0]}
[#if doc1.board.@BoardPHYType[0]?string == "RMII"]
#define BOARD_PHY_RMII
[/#if]
[/#if]
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {

View File

@ -27,11 +27,11 @@
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"></xs:whiteSpace>
<xs:pattern value="MII_[\w_+]"></xs:pattern>
<xs:pattern value="MII_[\w\d_]+"></xs:pattern>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="BoardPHY" use="optional">
<xs:attribute name="BoardPHYType" use="optional">
<xs:annotation>
<xs:documentation>Type of the PHY device: RMII or MII, this attribute is defaulted to MII if not present.</xs:documentation>
</xs:annotation>