From 5f342be96eb860286417b9ad84b861dede2cdd25 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 8 Jul 2012 07:52:10 +0000 Subject: Configuration tool prototype (not complete). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4427 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../gencfg/processors/boards/stm32f4xx/config.fmpp | 5 + .../boards/stm32f4xx/datamodel/stm32f4board.xml | 1040 ++++++++++++++++++++ .../boards/stm32f4xx/templates/board.mk.ftl | 27 + 3 files changed, 1072 insertions(+) create mode 100644 tools/gencfg/processors/boards/stm32f4xx/config.fmpp create mode 100644 tools/gencfg/processors/boards/stm32f4xx/datamodel/stm32f4board.xml create mode 100644 tools/gencfg/processors/boards/stm32f4xx/templates/board.mk.ftl (limited to 'tools/gencfg/processors/boards/stm32f4xx') diff --git a/tools/gencfg/processors/boards/stm32f4xx/config.fmpp b/tools/gencfg/processors/boards/stm32f4xx/config.fmpp new file mode 100644 index 000000000..a182fe12e --- /dev/null +++ b/tools/gencfg/processors/boards/stm32f4xx/config.fmpp @@ -0,0 +1,5 @@ +sourceRoot: templates +outputRoot: output +data: { + doc1: xml(../datamodel/stm32f4board.xml) +} diff --git a/tools/gencfg/processors/boards/stm32f4xx/datamodel/stm32f4board.xml b/tools/gencfg/processors/boards/stm32f4xx/datamodel/stm32f4board.xml new file mode 100644 index 000000000..08016b73c --- /dev/null +++ b/tools/gencfg/processors/boards/stm32f4xx/datamodel/stm32f4board.xml @@ -0,0 +1,1040 @@ + + + +
Board definition for STM32F4-Discovery.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/tools/gencfg/processors/boards/stm32f4xx/templates/board.mk.ftl b/tools/gencfg/processors/boards/stm32f4xx/templates/board.mk.ftl new file mode 100644 index 000000000..d221241ed --- /dev/null +++ b/tools/gencfg/processors/boards/stm32f4xx/templates/board.mk.ftl @@ -0,0 +1,27 @@ +[#ftl] +[#-- + ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, + 2011,2012 Giovanni Di Sirio. + + This file is part of ChibiOS/RT. + + ChibiOS/RT is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS/RT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + --] +[@pp.dropOutputFile /] +[@pp.changeOutputFile name="boark.mk" /] +# List of all the board related files. +BOARDSRC = ${'$'}{CHIBIOS}/boards/${doc1.board.@BoardID[0]}/board.c + +# Required include directories +BOARDINC = ${'$'}{CHIBIOS}/boards/${doc1.board.@BoardID[0]} -- cgit v1.2.3