From 4bdc2322a82279051981716284f145965321ba07 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 8 Aug 2012 16:45:56 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4543 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../resources/gencfg/lib/code_snippets.xml | 50 ++++++++++++++++++ .../resources/gencfg/lib/libsnippets.ftl | 33 ++++++++++++ .../resources/gencfg/processors/processors.xml | 24 +++++++-- .../gencfg/schema/common/code_snippets.xsd | 59 ++++++++++++++++++++++ 4 files changed, 163 insertions(+), 3 deletions(-) create mode 100644 tools/eclipse/config_wizard/resources/gencfg/lib/code_snippets.xml create mode 100644 tools/eclipse/config_wizard/resources/gencfg/lib/libsnippets.ftl create mode 100644 tools/eclipse/config_wizard/resources/gencfg/schema/common/code_snippets.xsd (limited to 'tools/eclipse/config_wizard/resources/gencfg') diff --git a/tools/eclipse/config_wizard/resources/gencfg/lib/code_snippets.xml b/tools/eclipse/config_wizard/resources/gencfg/lib/code_snippets.xml new file mode 100644 index 000000000..2d0e5959a --- /dev/null +++ b/tools/eclipse/config_wizard/resources/gencfg/lib/code_snippets.xml @@ -0,0 +1,50 @@ + + + + + + thread_body + Empty + + + + + thread_body + Checks for Termination + + + + + thread_body + Message Server + + + + + diff --git a/tools/eclipse/config_wizard/resources/gencfg/lib/libsnippets.ftl b/tools/eclipse/config_wizard/resources/gencfg/lib/libsnippets.ftl new file mode 100644 index 000000000..a0680af04 --- /dev/null +++ b/tools/eclipse/config_wizard/resources/gencfg/lib/libsnippets.ftl @@ -0,0 +1,33 @@ +[#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 . + --] + +[#-- + -- Find and return a code template from the templates archive. + --] +[#function GetThreadCode name] + [#list doc_snippets.code.snippets.snippet as snippet] + [#if (snippet.type[0] == "thread_body") && + ((snippet.name[0]!"")?trim?lower_case == name?trim?lower_case)] + [#return snippet.text[0]!"" /] + [/#if] + [/#list] + [#return "/* Thread style not found: " + name + " */" /] +[/#function] diff --git a/tools/eclipse/config_wizard/resources/gencfg/processors/processors.xml b/tools/eclipse/config_wizard/resources/gencfg/processors/processors.xml index 6dba55fcd..30a70c069 100644 --- a/tools/eclipse/config_wizard/resources/gencfg/processors/processors.xml +++ b/tools/eclipse/config_wizard/resources/gencfg/processors/processors.xml @@ -1,20 +1,38 @@ - + STM32F0xx Board Configuration resources/gencfg/processors/boards/stm32f0xx/templates resources/gencfg/xml/stm32f0board.xml board - + STM32F4xx Board Configuration resources/gencfg/processors/boards/stm32f4xx/templates resources/gencfg/xml/stm32f4board.xml board - + STM32L1xx Board Configuration resources/gencfg/processors/boards/stm32l1xx/templates resources/gencfg/xml/stm32l1board.xml board + + STM32F0xx Build Environment Configuration + resources/gencfg/processors/builds/stm32f0xx/templates + resources/gencfg/xml/stm32f0build.xml + build + + + STM32F4xx Build Environment Configuration + resources/gencfg/processors/builds/stm32f4xx/templates + resources/gencfg/xml/stm32f4build.xml + build + + + STM32L1xx Build Environment Configuration + resources/gencfg/processors/builds/stm32l1xx/templates + resources/gencfg/xml/stm32l1build.xml + build + diff --git a/tools/eclipse/config_wizard/resources/gencfg/schema/common/code_snippets.xsd b/tools/eclipse/config_wizard/resources/gencfg/schema/common/code_snippets.xsd new file mode 100644 index 000000000..ad0bad11a --- /dev/null +++ b/tools/eclipse/config_wizard/resources/gencfg/schema/common/code_snippets.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3