diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-18 16:19:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-07-18 16:19:35 +0000 |
commit | 8c7611e9cac0d3fb9d112797e1d235a25143122b (patch) | |
tree | 81b819058306fb78a8a1f7fa6e0d7abc5f4627b3 /tools/gencfg/processors/boards | |
parent | bec694657d30fcf912138d490828dc6add9042c7 (diff) | |
download | ChibiOS-8c7611e9cac0d3fb9d112797e1d235a25143122b.tar.gz ChibiOS-8c7611e9cac0d3fb9d112797e1d235a25143122b.tar.bz2 ChibiOS-8c7611e9cac0d3fb9d112797e1d235a25143122b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4470 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/gencfg/processors/boards')
-rw-r--r-- | tools/gencfg/processors/boards/stm32f4xx/templates/board.c.ftl | 27 | ||||
-rw-r--r-- | tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl | 2 |
2 files changed, 24 insertions, 5 deletions
diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.c.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.c.ftl index 1e2a8ee95..f38fd106a 100644 --- a/tools/gencfg/processors/boards/stm32f4xx/templates/board.c.ftl +++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.c.ftl @@ -66,49 +66,68 @@ const PALConfig pal_default_config = void __early_init(void) {
stm32_clock_init();
+[#if doc1.board.board_functions.__early_init[0]??]
+ ${doc1.board.board_functions.__early_init[0]}
+[/#if]
}
#if HAL_USE_SDC || defined(__DOXYGEN__)
/**
* @brief SDC card detection.
- * @todo Fill the implementation.
*/
bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
+[#if doc1.board.board_functions.sdc_lld_is_card_inserted[0]??]
+${doc1.board.board_functions.sdc_lld_is_card_inserted[0]}
+[#else]
(void)sdcp;
+ /* TODO: Fill the implementation.*/
return TRUE;
+[/#if]
}
/**
* @brief SDC card write protection detection.
- * @todo Fill the implementation.
*/
bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) {
+[#if doc1.board.board_functions.sdc_lld_is_write_protected[0]??]
+${doc1.board.board_functions.sdc_lld_is_write_protected[0]}
+[#else]
(void)sdcp;
+ /* TODO: Fill the implementation.*/
return FALSE;
+[/#if]
}
#endif /* HAL_USE_SDC */
#if HAL_USE_MMC_SPI || defined(__DOXYGEN__)
/**
* @brief MMC_SPI card detection.
- * @todo Fill the implementation.
*/
bool_t mmc_lld_is_card_inserted(MMCDriver *mmcp) {
+[#if doc1.board.board_functions.mmc_lld_is_card_inserted[0]??]
+${doc1.board.board_functions.mmc_lld_is_card_inserted[0]}
+[#else]
(void)mmcp;
+ /* TODO: Fill the implementation.*/
return TRUE;
+[/#if]
}
/**
* @brief MMC_SPI card write protection detection.
- * @todo Fill the implementation.
*/
bool_t mmc_lld_is_write_protected(MMCDriver *mmcp) {
+[#if doc1.board.board_functions.mmc_lld_is_write_protected[0]??]
+${doc1.board.board_functions.mmc_lld_is_write_protected[0]}
+[#else]
(void)mmcp;
+ /* TODO: Fill the implementation.*/
return FALSE;
+[/#if]
}
#endif
diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl index 593b3883c..c24c0a355 100644 --- a/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl +++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.h.ftl @@ -44,7 +44,7 @@ * Ethernet PHY type.
*/
#define BOARD_PHY_ID ${doc1.board.ethernet_phy.identifier[0]}
-[#if doc1.board.ethernet_phy.type[0]?string == "RMII"]
+[#if doc1.board.ethernet_phy.bus_type[0]?string == "RMII"]
#define BOARD_PHY_RMII
[/#if]
[/#if]
|