From f6d56675f9f981c5464f0ca7a1fbb0162154e8c5 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 13 May 2015 11:13:10 +0900 Subject: Squashed 'tmk_core/' changes from caca2c0..dc0e46e dc0e46e Rename LUFA to LUFA-git 3bfa7fa Remove LUFA-120730 215b764 Merge commit 'afa0f22a9299686fd88f58ce09c5b521ac917e8f' as 'protocol/lufa/LUFA' afa0f22 Squashed 'protocol/lufa/LUFA/' content from commit def7fca c0c42fa Remove submodule of LUFA 30f897d Merge commit '87ced33feb74e79c3281dda36eb6d6d153399b41' as 'protocol/usb_hid/USB_Host_Shield_2.0' 87ced33 Squashed 'protocol/usb_hid/USB_Host_Shield_2.0/' content from commit aab4a69 14f6d49 Remove submodule of USB_Host_Shield_2.0 git-subtree-dir: tmk_core git-subtree-split: dc0e46eaa4367d4e218f8816e3c117895820f07c --- protocol/lufa/LUFA-git | 1 - .../Docbook/mshelp/placeholder.txt | 1 + .../LUFA/StudioIntegration/Docbook/placeholder.txt | 1 + .../StudioIntegration/HV1/helpcontentsetup.msha | 27 + .../HV1/lufa_docbook_transform.xslt | 808 +++++++++++++++++++ .../HV1/lufa_helpcontentsetup_transform.xslt | 43 ++ .../StudioIntegration/HV1/lufa_hv1_transform.xslt | 45 ++ .../HV1/lufa_studio_help_styling.css | 53 ++ .../ProjectGenerator/placeholder.txt | 1 + .../LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.dll | Bin 0 -> 749056 bytes .../LUFA/StudioIntegration/VSIX/LUFA.pkgdef | Bin 0 -> 2242 bytes .../StudioIntegration/VSIX/[Content_Types].xml | 13 + .../LUFA/StudioIntegration/VSIX/asf-manifest.xml | 18 + .../StudioIntegration/VSIX/extension.vsixmanifest | 33 + .../LUFA/StudioIntegration/VSIX/generate_caches.py | 38 + .../VSIX/lufa_asfmanifest_transform.xslt | 36 + .../VSIX/lufa_vsmanifest_transform.xslt | 33 + .../XDK/lufa_extension_transform.xslt | 68 ++ .../XDK/lufa_filelist_transform.xslt | 35 + .../XDK/lufa_indent_transform.xslt | 23 + .../XDK/lufa_module_transform.xslt | 66 ++ .../lufa/LUFA-git/LUFA/StudioIntegration/lufa.xml | 96 +++ .../LUFA/StudioIntegration/lufa_common.xml | 34 + .../LUFA/StudioIntegration/lufa_drivers_board.xml | 114 +++ .../StudioIntegration/lufa_drivers_board_names.xml | 853 +++++++++++++++++++++ .../LUFA/StudioIntegration/lufa_drivers_misc.xml | 57 ++ .../StudioIntegration/lufa_drivers_peripheral.xml | 198 +++++ .../LUFA/StudioIntegration/lufa_drivers_usb.xml | 32 + .../StudioIntegration/lufa_drivers_usb_class.xml | 32 + .../lufa_drivers_usb_class_android.xml | 54 ++ .../lufa_drivers_usb_class_audio.xml | 109 +++ .../lufa_drivers_usb_class_cdc.xml | 99 +++ .../lufa_drivers_usb_class_hid.xml | 99 +++ .../lufa_drivers_usb_class_midi.xml | 99 +++ .../lufa_drivers_usb_class_ms.xml | 99 +++ .../lufa_drivers_usb_class_printer.xml | 99 +++ .../lufa_drivers_usb_class_rndis.xml | 99 +++ .../lufa_drivers_usb_class_si.xml | 56 ++ .../StudioIntegration/lufa_drivers_usb_core.xml | 85 ++ .../lufa_drivers_usb_core_avr8.xml | 43 ++ .../lufa_drivers_usb_core_uc3.xml | 42 + .../lufa_drivers_usb_core_xmega.xml | 36 + .../LUFA/StudioIntegration/lufa_platform.xml | 60 ++ .../LUFA/StudioIntegration/lufa_platform_uc3.xml | 26 + .../LUFA/StudioIntegration/lufa_platform_xmega.xml | 23 + .../LUFA/StudioIntegration/lufa_toolchain.xml | 43 ++ .../lufa/LUFA-git/LUFA/StudioIntegration/makefile | 140 ++++ 47 files changed, 4069 insertions(+), 1 deletion(-) delete mode 160000 protocol/lufa/LUFA-git create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/mshelp/placeholder.txt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/placeholder.txt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/helpcontentsetup.msha create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_helpcontentsetup_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/ProjectGenerator/placeholder.txt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.dll create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.pkgdef create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/[Content_Types].xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/asf-manifest.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/extension.vsixmanifest create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/generate_caches.py create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_vsmanifest_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_extension_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_filelist_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_module_transform.xslt create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_common.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board_names.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_misc.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_peripheral.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_android.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_audio.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_cdc.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_hid.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_midi.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_ms.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_printer.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_rndis.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_si.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_avr8.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_uc3.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_xmega.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_uc3.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_xmega.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_toolchain.xml create mode 100644 protocol/lufa/LUFA-git/LUFA/StudioIntegration/makefile (limited to 'protocol/lufa/LUFA-git/LUFA/StudioIntegration') diff --git a/protocol/lufa/LUFA-git b/protocol/lufa/LUFA-git deleted file mode 160000 index b6c18b2a7c..0000000000 --- a/protocol/lufa/LUFA-git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b6c18b2a7c544653efbe12a1d4e8ba65e7d83c35 diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/mshelp/placeholder.txt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/mshelp/placeholder.txt new file mode 100644 index 0000000000..486e9a4270 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/mshelp/placeholder.txt @@ -0,0 +1 @@ +Copy the Microsoft HV1 Docbook transform contents into this directory (i.e. with the XSLT files in the current folder). The HV1 transform proposal can be found at http://sourceforge.net/tracker/?func=detail&aid=3610290&group_id=21935&atid=373750 . diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/placeholder.txt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/placeholder.txt new file mode 100644 index 0000000000..c017acfd75 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/Docbook/placeholder.txt @@ -0,0 +1 @@ +Copy the Docbook XSLT docbook-xsl-1.78.1 release contents into this directory (i.e. with the root Docbook files in the current folder). The Docbook releases can be found at http://sourceforge.net/projects/docbook/files/docbook-xsl/ . diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/helpcontentsetup.msha b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/helpcontentsetup.msha new file mode 100644 index 0000000000..cb1c4b9eb9 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/helpcontentsetup.msha @@ -0,0 +1,27 @@ + + + + + LUFA Help + + +
+ FourWalledCubicle + LUFA + LUFA Help + en-us +
+
+ +
+ + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt new file mode 100644 index 0000000000..2ebda6d5dc --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt @@ -0,0 +1,808 @@ + + + + + + + + + + LUFA Library + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="$book.title"/> + + + + + + + + + + + + + + + + Modules + + + + + + + + + + + + + + + + LUFA. + + + + + + + + + <xsl:value-of select="$page.title"/> + + + + + + + Subsections: + + + + + + + + + + + + + + + + + + + +
+ + <xsl:value-of select="title"/> + + + + LUFA. + + + + + + + + + + + + Subgroups: + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + <xsl:choose> + <xsl:when test="@kind = 'struct'"> + <xsl:text>Struct </xsl:text> + </xsl:when> + + <xsl:when test="@kind = 'union'"> + <xsl:text>Union </xsl:text> + </xsl:when> + </xsl:choose> + + <xsl:value-of select="$name"/> + + + + + + + + + + + + <xsl:value-of select="$name"/> + + + + + + Type + Name + Description + + + + + + + + + + + + + [] + + + + + . + + + + + + + + + + + + + + +
+
+
+
+ + +
+ + <xsl:text>Function </xsl:text> + <xsl:value-of select="name"/> + <xsl:text>()</xsl:text> + + + + + + + + + + + + + + + + + + + ( + + + + void + + + + + + , + + + + + + + + + + + + ) + + + +
+
+ + +
+ + <xsl:text>Enum </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + + Members + + + + Enum Value + Description + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ + <xsl:text>Macro </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + #define + + + ( + + + , + + + + ) + + + + + + \ + + + + + + + + +
+
+ + +
+ + <xsl:text>Type </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + typedef + + + + + + + + + +
+
+ + + +
+ + <xsl:text>Variable </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="title"/> + + + + + + + + Returns + + + + + + + Warning + + + + + + + Precondition + + + + + + + See also + + + + + + + Note + + + + + + + + + + Parameters + + + + Data Direction + Parameter Name + Description + + + + + + + + + + +
+
+ + + + Return Values + + + + Return Value + Description + + + + + + + + + + +
+
+ + + + + + + + ? + + + + + [] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="caption"/> + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + images/ + + + + + + + + + + + + +
+ + + + + + + + <xsl:value-of select="title"/> + + + +
+
+ + + + + + + + + + + + + NO XSL TEMPLATE MATCH: + + +
diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_helpcontentsetup_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_helpcontentsetup_transform.xslt new file mode 100644 index 0000000000..b43354f8d7 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_helpcontentsetup_transform.xslt @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + lufa_help_ + + .mshc + + + lufa_help_ + + .mshc + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt new file mode 100644 index 0000000000..ee8a38340d --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css new file mode 100644 index 0000000000..49eb7e9706 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css @@ -0,0 +1,53 @@ +/* + LUFA Library + Copyright (C) Dean Camera, 2013. + + dean [at] fourwalledcubicle [dot] com + www.lufa-lib.org +*/ + +.programlisting { + display: block; + margin-left: 15px; + padding: 10px; + background-color: #f4f4f4; + border: 1px solid #aaaaaa; + font-family: "Consolas", "Courier New", sans-serif; + } + + code { + background-color: #f4f4f4; + font-family: "Consolas", "Courier New", sans-serif; + } + +.note, .warning, .tip { + display: block; + margin-left: 15px; + padding-left: 10px; + padding-bottom: 5px; + background-color: #f4f4f4; + border: 1px solid #aaaaaa; +} + +table { + border: 1px solid #aaaaaa; + border-collapse: collapse; + margin-left: 15px; + font-size: 10pt; +} + +table thead { + background-color: #f4f4f4; +} + +table thead th { + padding: 5px; +} + +table tbody td { + padding: 5px; +} + +ul { + padding-left: 20px; +} diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/ProjectGenerator/placeholder.txt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/ProjectGenerator/placeholder.txt new file mode 100644 index 0000000000..e89b0404b8 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/ProjectGenerator/placeholder.txt @@ -0,0 +1 @@ +Copy the ASF Project Generator into this directory (i.e. with the Python scripts in the current folder). The project generator can be extracted from the release versions of Atmel Studio's ASF extension. \ No newline at end of file diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.dll b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.dll new file mode 100644 index 0000000000..665b8029f0 Binary files /dev/null and b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.dll differ diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.pkgdef b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.pkgdef new file mode 100644 index 0000000000..b1b2f943b8 Binary files /dev/null and b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/LUFA.pkgdef differ diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/[Content_Types].xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/[Content_Types].xml new file mode 100644 index 0000000000..05ef8b6ba4 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/[Content_Types].xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/asf-manifest.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/asf-manifest.xml new file mode 100644 index 0000000000..794fd689e1 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/asf-manifest.xml @@ -0,0 +1,18 @@ + + + FourWalledCubicle + LUFA + Dean Camera + + True + + + + 0 + + + content.xml.cache + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/extension.vsixmanifest b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/extension.vsixmanifest new file mode 100644 index 0000000000..ea6edeb258 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/extension.vsixmanifest @@ -0,0 +1,33 @@ + + + + + LUFA Library + Dean Camera + 0 + http://www.lufa-lib.org + LUFA, the Lightweight USB Framework for AVRs. + + License.txt + LUFA_thumb.png + LUFA.png + + + AtmelStudio + AtmelStudio + + + + 1033 + + false + + + + + + LUFA.pkgdef + helpcontentsetup.msha + asf-manifest.xml + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/generate_caches.py b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/generate_caches.py new file mode 100644 index 0000000000..c51cff400d --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/generate_caches.py @@ -0,0 +1,38 @@ +""" + LUFA Library + Copyright (C) Dean Camera, 2013. + + dean [at] fourwalledcubicle [dot] com + www.lufa-lib.org +""" + +import sys +sys.path.append("ProjectGenerator") + + +def show_message(message): + print("[Project Generator] %s" % message) + sys.stdout.flush() + + +def main(lufa_root_path): + try: + from asf_avrstudio5_interface import PythonFacade + except ImportError: + print("Fatal Error: The ASF project generator is missing.") + return 1 + + p = PythonFacade(lufa_root_path) + + show_message("Checking database sanity...") + p.check_extension_database_sanity(lufa_root_path) + + show_message("Building cache files...") + p.generate_extension_cache_files(lufa_root_path) + + show_message("Cache files created.") + return 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1])) diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt new file mode 100644 index 0000000000..8fc98412fe --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + . + + . + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_vsmanifest_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_vsmanifest_transform.xslt new file mode 100644 index 0000000000..db12d9ea26 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_vsmanifest_transform.xslt @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_extension_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_extension_transform.xslt new file mode 100644 index 0000000000..f50f8a4ddb --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_extension_transform.xslt @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + This file has been automatically generated from the LUFA Atmel Studio integration XML files. + + + + + + + + + + + + + + + + + + + + . + + . + + + + + + + + + + /html/ + + + + + + + + /html/ + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_filelist_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_filelist_transform.xslt new file mode 100644 index 0000000000..9affc9f67c --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_filelist_transform.xslt @@ -0,0 +1,35 @@ + + + + + + + + + + + + Sourced from + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt new file mode 100644 index 0000000000..166f42571c --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_module_transform.xslt b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_module_transform.xslt new file mode 100644 index 0000000000..ee9a050c1d --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/XDK/lufa_module_transform.xslt @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + This file has been automatically generated from the LUFA Atmel Studio integration XML files. + + + + Sourced from + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa.xml new file mode 100644 index 0000000000..28afdda587 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa.xml @@ -0,0 +1,96 @@ + + + + + + + + + Lightweight USB Framework for AVRs (LUFA), a USB software stack/framework. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_common.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_common.xml new file mode 100644 index 0000000000..9e17b188be --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_common.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board.xml new file mode 100644 index 0000000000..3677d20036 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board_names.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board_names.xml new file mode 100644 index 0000000000..4b099920b7 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_board_names.xml @@ -0,0 +1,853 @@ + + + + + + + + + Board hardware (LEDs, Buttons, etc.) drivers for the preconfigured LUFA boards. Note that only the boards + compatible with the currently selected device will be shown. + + To disable all hardware drivers silently, use NONE. To supply customer drivers, use USER (see manual). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_misc.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_misc.xml new file mode 100644 index 0000000000..8680ca2dff --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_misc.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_peripheral.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_peripheral.xml new file mode 100644 index 0000000000..3a982e565f --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_peripheral.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb.xml new file mode 100644 index 0000000000..7ff4b39492 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class.xml new file mode 100644 index 0000000000..cd18bf10e7 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_android.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_android.xml new file mode 100644 index 0000000000..3451712574 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_android.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + Common definitions and Host mode implementation of the Android Open Accessory USB class. + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the Android Open Accessory USB class. + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_audio.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_audio.xml new file mode 100644 index 0000000000..5f7c3ad4d1 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_audio.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the Audio 1.0 USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the Audio 1.0 USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the Audio 1.0 USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the Audio 1.0 USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_cdc.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_cdc.xml new file mode 100644 index 0000000000..65d8cc98f7 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_cdc.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the CDC USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the CDC USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the CDC USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the CDC USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_hid.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_hid.xml new file mode 100644 index 0000000000..3d533fb537 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_hid.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the HID USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the HID USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the HID USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the HID USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_midi.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_midi.xml new file mode 100644 index 0000000000..3ddab0bbdd --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_midi.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the MIDI USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the MIDI USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the MIDI USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the MIDI USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_ms.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_ms.xml new file mode 100644 index 0000000000..283b85ca7a --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_ms.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the Mass Storage USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the Mass Storage USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the Mass Storage USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the Mass Storage USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_printer.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_printer.xml new file mode 100644 index 0000000000..2465035ce8 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_printer.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the Printer USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the Printer USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the Printer USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the Printer USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_rndis.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_rndis.xml new file mode 100644 index 0000000000..6a606679d4 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_rndis.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + Common definitions and Host/Device mode implementations of the RNDIS Ethernet USB class. + + + + + + + + + + + + + + + + + + + + + Common definitions and Host mode implementation of the RNDIS Ethernet USB class. + + + + + + + + + + + + + + + + + + + + Common definitions and Device mode implementation of the RNDIS Ethernet USB class. + + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the RNDIS Ethernet USB class. + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_si.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_si.xml new file mode 100644 index 0000000000..c1bf8d560e --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_class_si.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + Common definitions and Host mode implementation of the Still Image USB class. + + + + + + + + + + + + + + + + + + + Common definitions only (no implementations) of the Still Image USB class. + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core.xml new file mode 100644 index 0000000000..58f8917ef4 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_avr8.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_avr8.xml new file mode 100644 index 0000000000..166b9257aa --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_avr8.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_uc3.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_uc3.xml new file mode 100644 index 0000000000..7e0540cda7 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_uc3.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_xmega.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_xmega.xml new file mode 100644 index 0000000000..9e9f4f6a1d --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_drivers_usb_core_xmega.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform.xml new file mode 100644 index 0000000000..02c7463ee5 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_uc3.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_uc3.xml new file mode 100644 index 0000000000..a488c4b83d --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_uc3.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_xmega.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_xmega.xml new file mode 100644 index 0000000000..1674a77b02 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_platform_xmega.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_toolchain.xml b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_toolchain.xml new file mode 100644 index 0000000000..031c8a2be6 --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/lufa_toolchain.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocol/lufa/LUFA-git/LUFA/StudioIntegration/makefile b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/makefile new file mode 100644 index 0000000000..2649598d9f --- /dev/null +++ b/protocol/lufa/LUFA-git/LUFA/StudioIntegration/makefile @@ -0,0 +1,140 @@ +# +# LUFA Library +# Copyright (C) Dean Camera, 2013. +# +# dean [at] fourwalledcubicle [dot] com +# www.lufa-lib.org +# +# --------------------------------------- +# Makefile for the LUFA Atmel Studio Integration. +# --------------------------------------- + +LUFA_ROOT := .. +LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING $(LUFA_ROOT)/Version.h | cut -d'"' -f2) + +ifneq ($(LUFA_VERSION_NUM),000000) + EXT_VERSION_NUM := $(shell date +"%y.%m.%d").$(LUFA_VERSION_NUM) + EXT_VSIX_NAME := LUFA-RELEASE-$(LUFA_VERSION_NUM).vsix +else + EXT_VERSION_NUM := 0.$(shell date +"%y%m%d.%H%M%S") + EXT_VSIX_NAME := LUFA-TESTING-$(shell date +"%y.%m.%d-%H.%M.%S").vsix + + $(warning No LUFA version set - assuming a test version should be created.) +endif + +DOXYGEN_TAG_FILE_XML := $(LUFA_ROOT)/Documentation/lufa_doc_tags.xml +DOXYGEN_COMBINED_XML := $(LUFA_ROOT)/Documentation/xml/lufa_doc.xml +TEMP_MANIFEST_XML := manifest.xml +EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml +MODULE_OUTPUT_XML := $(LUFA_ROOT)/asf.xml +MSHELP_OUTPUT_XML := $(LUFA_ROOT)/../lufa_help_$(EXT_VERSION_NUM).mshc +XML_FILES := $(filter-out $(TEMP_MANIFEST_FILE), $(shell ls *.xml)) +VSIX_ASSETS := $(LUFA_ROOT)/DoxygenPages/Images/LUFA_thumb.png \ + $(LUFA_ROOT)/DoxygenPages/Images/LUFA.png \ + $(LUFA_ROOT)/License.txt \ + VSIX/"[Content_Types].xml" \ + VSIX/LUFA.dll \ + VSIX/LUFA.pkgdef +VSIX_GEN_PARAMS := --stringparam extension-version "$(EXT_VERSION_NUM)" \ + --stringparam lufa-version "$(LUFA_VERSION_NUM)" +MSHELP_GEN_PARAMS := --stringparam generate.toc "book toc" \ + --stringparam chunk.quietly "1" \ + --stringparam chunk.section.depth "3" \ + --stringparam chunk.first.sections "1" \ + --stringparam chapter.autolabel "0" \ + --stringparam root.filename "LUFA" \ + --stringparam html.stylesheet "lufa_studio_help_styling.css" + +all: clear_project_dirs generate_xml check_filenames generate_vsix + +clear_project_dirs: + @make -s -C $(LUFA_ROOT)/.. clean + +clean: + @rm -f $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML) $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) $(MSHELP_OUTPUT_XML) + @rm -rf mshelp + @cd $(LUFA_ROOT)/.. && rm -f contents.zip exampleProjects.xml content.xml.cache extension.vsixmanifest asf-manifest.xml extension.xml helpcontentsetup.msha $(notdir $(VSIX_ASSETS)) *.vsix *.mshc + +$(DOXYGEN_TAG_FILE_XML): + @$(MAKE) -C ../ doxygen DOXYGEN_OVERRIDE_PARAMS="GENERATE_TAGFILE=Documentation/lufa_doc_tags.xml GENERATE_HTML=no GENERATE_XML=yes" + +$(DOXYGEN_COMBINED_XML): $(DOXYGEN_TAG_FILE_XML) + @xsltproc $(dir $@)/combine.xslt $(dir $@)/index.xml > $(DOXYGEN_COMBINED_XML) + +$(TEMP_MANIFEST_XML): $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) + @echo Generating temporary module manifest XML... + + @printf "\n" $(LUFA_VERSION_NUM) $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) > $@ + @for i in $(XML_FILES); do \ + printf "\t\n" $$i >> $@; \ + done; + @echo '' >> $@ + +$(MODULE_OUTPUT_XML): $(TEMP_MANIFEST_XML) + @echo Generating library core XDK module manifest file... + @xsltproc XDK/lufa_module_transform.xslt $< | xsltproc XDK/lufa_indent_transform.xslt - > $(MODULE_OUTPUT_XML) + +$(EXTENSION_OUTPUT_XML): $(TEMP_MANIFEST_XML) + @echo Generating library XDK extension manifest file... + @xsltproc XDK/lufa_extension_transform.xslt $< | xsltproc XDK/lufa_indent_transform.xslt - > $(EXTENSION_OUTPUT_XML) + +$(MSHELP_OUTPUT_XML): $(DOXYGEN_COMBINED_XML) + @echo Converting Doxygen XML to DocBook... + @-mkdir mshelp 2> /dev/null + @xsltproc HV1/lufa_docbook_transform.xslt $(DOXYGEN_COMBINED_XML) > mshelp/lufa_docbook.xml + + @echo Converting DocBook XML to Microsoft Help 1.0... + @cd mshelp && xsltproc $(MSHELP_GEN_PARAMS) ../HV1/lufa_hv1_transform.xslt lufa_docbook.xml + + @echo Copying help assets... + @cp HV1/lufa_studio_help_styling.css mshelp + @-mkdir mshelp/images 2> /dev/null + @cp `find $(LUFA_ROOT)/DoxygenPages/Images -type f` mshelp/images + + @echo Archiving help content... + @cd mshelp && zip ../$(MSHELP_OUTPUT_XML) -q -0 -r *.html *.css images + + @echo Generating HV1 manifest... + @xsltproc $(VSIX_GEN_PARAMS) HV1/lufa_helpcontentsetup_transform.xslt HV1/helpcontentsetup.msha > $(LUFA_ROOT)/../helpcontentsetup.msha + +generate_help: $(MSHELP_OUTPUT_XML) + +generate_xml: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML) + +generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML) $(MSHELP_OUTPUT_XML) + @echo Generating XDK cache files... + @rm -f $(LUFA_ROOT)/../content.xml.cache + @rm -f $(LUFA_ROOT)/../ExampleProjects.xml + @python VSIX/generate_caches.py $(LUFA_ROOT)/../ + + @echo Archiving XDK content... + @rm -f contents.zip + @cd $(LUFA_ROOT)/../ && zip contents.zip -q -0 -r --exclude=*Documentation* --exclude=*StudioIntegration* LUFA Bootloaders Demos Projects README.txt + + @echo Creating VSIX dependencies... + @cp $(VSIX_ASSETS) $(LUFA_ROOT)/.. + @xsltproc $(VSIX_GEN_PARAMS) VSIX/lufa_vsmanifest_transform.xslt VSIX/extension.vsixmanifest > $(LUFA_ROOT)/../extension.vsixmanifest + @xsltproc $(VSIX_GEN_PARAMS) VSIX/lufa_asfmanifest_transform.xslt VSIX/asf-manifest.xml > $(LUFA_ROOT)/../asf-manifest.xml + + @echo Generating Atmel Studio VSIX file... + cd $(LUFA_ROOT)/../ && zip $(EXT_VSIX_NAME) -q -9 contents.zip exampleProjects.xml content.xml.cache extension.vsixmanifest asf-manifest.xml extension.xml helpcontentsetup.msha $(notdir $(MSHELP_OUTPUT_XML)) $(notdir $(VSIX_ASSETS)) + + @echo "Atmel Studio VSIX extension file generated." + +check_filenames: $(MODULE_OUTPUT_XML) + @echo Verifying referenced filenames of XDK modules... + @for f in `find $(LUFA_ROOT)/../ -name "asf.xml"`; do \ + echo "Checking $$f..."; \ + asf_file_dir=`dirname $$f`; \ + xsltproc XDK/lufa_filelist_transform.xslt $$f | sed -e "/^$$/d" | while read -r i; do \ + if ( ( ! test -f "$$asf_file_dir/$$i" ) && ( ! test -d "$$asf_file_dir/$$i" ) ); then \ + echo "Source file \"$$i\" referenced in $$f does not exist!"; \ + exit 1; \ + fi; \ + done || exit 1; \ + done; + +check_database: + python ProjectGenerator/project_generator.py -b $(LUFA_ROOT)/../ --main-ext-uuid=0e160d5c-e331-48d9-850b-e0387912171b CHECK + +.PHONY: all clean generate_help generate_xml generate_vsix check_filenames check_database -- cgit v1.2.3