├── requirements.txt
├── pcb
├── swc_usb.zip
├── swc_usb_schematic.png
└── usb_adapter_pcb.jpg
├── usb_adapter.jpg
├── firmware
├── LUFA
│ ├── DoxygenPages
│ │ ├── Images
│ │ │ ├── LUFA.png
│ │ │ ├── Author.jpg
│ │ │ ├── LUFA_thumb.png
│ │ │ └── AS5_AS6_Import
│ │ │ │ ├── AS5_AS6_Import_Step1.png
│ │ │ │ ├── AS5_AS6_Import_Step2.png
│ │ │ │ ├── AS5_AS6_Import_Step3.png
│ │ │ │ ├── AS5_AS6_Import_Step4.png
│ │ │ │ ├── AS5_AS6_Import_Step5_1.png
│ │ │ │ ├── AS5_AS6_Import_Step5_2.png
│ │ │ │ └── AS5_AS6_Import_Step5_3.png
│ │ ├── DevelopingWithLUFA.txt
│ │ ├── Donating.txt
│ │ ├── Groups.txt
│ │ ├── BuildingLinkableLibraries.txt
│ │ ├── LibraryResources.txt
│ │ ├── Style
│ │ │ ├── Footer.htm
│ │ │ └── Style.css
│ │ ├── LicenseInfo.txt
│ │ ├── ProgrammingApps.txt
│ │ ├── GettingStarted.txt
│ │ ├── FutureChanges.txt
│ │ └── WritingBoardDrivers.txt
│ ├── StudioIntegration
│ │ ├── VSIX
│ │ │ ├── LUFA.dll
│ │ │ ├── LUFA.pkgdef
│ │ │ ├── asf-manifest.xml
│ │ │ ├── [Content_Types].xml
│ │ │ ├── generate_caches.py
│ │ │ ├── lufa_vsmanifest_transform.xslt
│ │ │ ├── lufa_asfmanifest_transform.xslt
│ │ │ └── extension.vsixmanifest
│ │ ├── ProjectGenerator
│ │ │ └── placeholder.txt
│ │ ├── Docbook
│ │ │ ├── placeholder.txt
│ │ │ └── mshelp
│ │ │ │ ├── README.txt
│ │ │ │ └── docbook.xsl
│ │ ├── lufa_platform_xmega.xml
│ │ ├── HV1
│ │ │ ├── helpcontentsetup.msha
│ │ │ ├── lufa_studio_help_styling.css
│ │ │ ├── lufa_hv1_transform.xslt
│ │ │ └── lufa_helpcontentsetup_transform.xslt
│ │ ├── XDK
│ │ │ ├── lufa_indent_transform.xslt
│ │ │ ├── lufa_filelist_transform.xslt
│ │ │ └── lufa_extension_transform.xslt
│ │ ├── lufa_platform_uc3.xml
│ │ ├── lufa_drivers_usb.xml
│ │ ├── lufa_drivers_usb_class.xml
│ │ ├── lufa_common.xml
│ │ ├── lufa_drivers_usb_core_xmega.xml
│ │ ├── lufa_platform.xml
│ │ ├── lufa_drivers_misc.xml
│ │ ├── lufa_drivers_usb_core_uc3.xml
│ │ ├── lufa_drivers_usb_class_si.xml
│ │ ├── lufa_drivers_usb_core_avr8.xml
│ │ └── lufa_drivers_usb_class_android.xml
│ ├── Platform
│ │ ├── UC3
│ │ │ ├── UC3ExperimentalInfo.txt
│ │ │ └── InterruptManagement.c
│ │ └── XMEGA
│ │ │ └── XMEGAExperimentalInfo.txt
│ ├── License.txt
│ ├── CodeTemplates
│ │ ├── makefile_template
│ │ ├── HostTemplate
│ │ │ ├── asf.xml
│ │ │ └── HostApplication.h
│ │ ├── DeviceTemplate
│ │ │ ├── DeviceApplication.h
│ │ │ ├── asf.xml
│ │ │ └── Descriptors.h
│ │ └── WindowsINF
│ │ │ ├── LUFA RNDIS.inf
│ │ │ └── LUFA CDC-ACM.inf
│ ├── Drivers
│ │ ├── USB
│ │ │ └── Core
│ │ │ │ ├── XMEGA
│ │ │ │ ├── Pipe_XMEGA.c
│ │ │ │ ├── Host_XMEGA.c
│ │ │ │ ├── PipeStream_XMEGA.c
│ │ │ │ ├── Device_XMEGA.c
│ │ │ │ └── Template
│ │ │ │ │ ├── Template_Endpoint_RW.c
│ │ │ │ │ └── Template_Endpoint_Control_R.c
│ │ │ │ ├── Events.c
│ │ │ │ ├── UC3
│ │ │ │ ├── Device_UC3.c
│ │ │ │ └── Template
│ │ │ │ │ ├── Template_Pipe_RW.c
│ │ │ │ │ ├── Template_Endpoint_RW.c
│ │ │ │ │ └── Template_Endpoint_Control_R.c
│ │ │ │ ├── AVR8
│ │ │ │ ├── Device_AVR8.c
│ │ │ │ └── Template
│ │ │ │ │ ├── Template_Pipe_RW.c
│ │ │ │ │ ├── Template_Endpoint_RW.c
│ │ │ │ │ └── Template_Endpoint_Control_R.c
│ │ │ │ ├── USBInterrupt.h
│ │ │ │ ├── OTG.h
│ │ │ │ └── USBTask.c
│ │ └── Board
│ │ │ ├── AVR8
│ │ │ ├── BUI
│ │ │ │ └── Board.h
│ │ │ ├── DUCE
│ │ │ │ └── Board.h
│ │ │ ├── MAXIMUS
│ │ │ │ └── Board.h
│ │ │ ├── RZUSBSTICK
│ │ │ │ └── Board.h
│ │ │ ├── YUN
│ │ │ │ └── Board.h
│ │ │ ├── MICRO
│ │ │ │ └── Board.h
│ │ │ ├── MULTIO
│ │ │ │ └── Board.h
│ │ │ ├── BLACKCAT
│ │ │ │ └── Board.h
│ │ │ ├── LEONARDO
│ │ │ │ └── Board.h
│ │ │ ├── BIGMULTIO
│ │ │ │ └── Board.h
│ │ │ ├── XPLAINED_MINI
│ │ │ │ └── Board.h
│ │ │ ├── ADAFRUITU4
│ │ │ │ └── Board.h
│ │ │ ├── MINIMUS
│ │ │ │ └── Board.h
│ │ │ ├── SPARKFUN8U2
│ │ │ │ └── Board.h
│ │ │ ├── U2S
│ │ │ │ └── Board.h
│ │ │ ├── UDIP
│ │ │ │ └── Board.h
│ │ │ ├── TUL
│ │ │ │ └── Board.h
│ │ │ ├── CULV3
│ │ │ │ └── Board.h
│ │ │ ├── ATAVRUSBRF01
│ │ │ │ └── Board.h
│ │ │ ├── BENITO
│ │ │ │ └── Board.h
│ │ │ ├── JMDBU2
│ │ │ │ └── Board.h
│ │ │ ├── USBTINYMKII
│ │ │ │ └── Board.h
│ │ │ └── USBFOO
│ │ │ │ └── Board.h
│ │ │ ├── UC3
│ │ │ ├── EVK1104
│ │ │ │ └── Board.h
│ │ │ └── UC3A3_XPLAINED
│ │ │ │ └── Board.h
│ │ │ ├── Temperature.c
│ │ │ └── XMEGA
│ │ │ └── C3_XPLAINED
│ │ │ └── Board.h
│ ├── Build
│ │ └── HID_EEPROM_Loader
│ │ │ ├── makefile
│ │ │ └── HID_EEPROM_Loader.c
│ ├── makefile
│ └── Version.h
├── CMakeLists.txt
├── makefile
└── swc_usb.h
└── LICENSE
/requirements.txt:
--------------------------------------------------------------------------------
1 | pyserial >= 3.0.1
2 | click >= 6.2
--------------------------------------------------------------------------------
/pcb/swc_usb.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/pcb/swc_usb.zip
--------------------------------------------------------------------------------
/usb_adapter.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/usb_adapter.jpg
--------------------------------------------------------------------------------
/pcb/swc_usb_schematic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/pcb/swc_usb_schematic.png
--------------------------------------------------------------------------------
/pcb/usb_adapter_pcb.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/pcb/usb_adapter_pcb.jpg
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/LUFA.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/LUFA.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/Author.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/Author.jpg
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/LUFA.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/StudioIntegration/VSIX/LUFA.dll
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/LUFA_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/LUFA_thumb.png
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/LUFA.pkgdef:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/StudioIntegration/VSIX/LUFA.pkgdef
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step1.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step2.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step3.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step4.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_1.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_2.png
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tltx/swc_usb/HEAD/firmware/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_3.png
--------------------------------------------------------------------------------
/firmware/LUFA/Platform/UC3/UC3ExperimentalInfo.txt:
--------------------------------------------------------------------------------
1 | Please note that the UC3 architecture support is EXPERIMENTAL at this time, and may be non-functional/incomplete in some areas. Please refer to the Known Issues section of the LUFA manual.
--------------------------------------------------------------------------------
/firmware/LUFA/Platform/XMEGA/XMEGAExperimentalInfo.txt:
--------------------------------------------------------------------------------
1 | Please note that the XMEGA architecture support is EXPERIMENTAL at this time, and may be non-functional/incomplete in some areas. Please refer to the Known Issues section of the LUFA manual.
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/ProjectGenerator/placeholder.txt:
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/Docbook/placeholder.txt:
--------------------------------------------------------------------------------
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/ .
2 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/Docbook/mshelp/README.txt:
--------------------------------------------------------------------------------
1 | This is a modified/updated version of the Microsoft HV1 Docbook transform, written by Morten Engelhardt Olsen,
2 |
3 | Originally posted at http://sourceforge.net/p/docbook/feature-requests/461/, this has been further updated by Morten to make it compatible with more recent DocBook versions.
4 |
5 | ---------------------------
6 | / This documentation system \
7 | \ is udderly ridiculous! /
8 | ---------------------------
9 | \ ^__^
10 | \ (oo)\_______
11 | (__)\ )\/\
12 | ||----w |
13 | || ||
14 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/asf-manifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | FourWalledCubicle
4 | LUFA
5 | Dean Camera
6 |
7 | True
8 |
9 |
10 |
11 | 0
12 |
13 |
14 | content.xml.cache
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/firmware/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.3)
2 | project(swc_usb)
3 |
4 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
5 |
6 | add_custom_target(swc_usb COMMAND make -C ${swc_usb_SOURCE_DIR} CLION_EXE_DIR=${PROJECT_BINARY_DIR})
7 |
8 | include_directories("/usr/local/opt/avr-gcc/avr/include" "." "./Config")
9 |
10 | add_definitions(-DUSE_LUFA_CONFIG_HEADER)
11 | add_definitions(-DUSB_CAN_BE_DEVICE)
12 | add_definitions(-D__AVR_ATmega32U4__)
13 |
14 | set(SOURCE_FILES
15 | Descriptors.h
16 | Descriptors.c
17 | swc_usb.h
18 | swc_usb.c
19 | ./Config/LUFAConfig.h
20 | )
21 |
22 | add_executable(swc_usb.hex ${SOURCE_FILES})
23 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/lufa_platform_xmega.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/HV1/helpcontentsetup.msha:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 | LUFA Help
12 |
13 |
14 |
15 | FourWalledCubicle
16 | LUFA
17 | LUFA Help
18 | en-us
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/[Content_Types].xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/lufa_platform_uc3.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/generate_caches.py:
--------------------------------------------------------------------------------
1 | """
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | """
8 |
9 | import sys
10 | sys.path.append("ProjectGenerator")
11 |
12 |
13 | def show_message(message):
14 | print("[Project Generator] %s" % message)
15 | sys.stdout.flush()
16 |
17 |
18 | def main(lufa_root_path):
19 | try:
20 | from asf_avrstudio5_interface import PythonFacade
21 | except ImportError:
22 | print("Fatal Error: The ASF project generator is missing.")
23 | return 1
24 |
25 | p = PythonFacade(lufa_root_path)
26 |
27 | show_message("Checking database sanity...")
28 | p.check_extension_database_sanity(lufa_root_path)
29 |
30 | show_message("Building cache files...")
31 | p.generate_extension_cache_files(lufa_root_path)
32 |
33 | show_message("Cache files created.")
34 | return 0
35 |
36 |
37 | if __name__ == "__main__":
38 | sys.exit(main(sys.argv[1]))
39 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/lufa_drivers_usb.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/firmware/LUFA/License.txt:
--------------------------------------------------------------------------------
1 | LUFA Library
2 | Copyright (C) Dean Camera, 2015.
3 |
4 | dean [at] fourwalledcubicle [dot] com
5 | www.lufa-lib.org
6 |
7 |
8 | Permission to use, copy, modify, and distribute this software
9 | and its documentation for any purpose is hereby granted without
10 | fee, provided that the above copyright notice appear in all
11 | copies and that both that the copyright notice and this
12 | permission notice and warranty disclaimer appear in supporting
13 | documentation, and that the name of the author not be used in
14 | advertising or publicity pertaining to distribution of the
15 | software without specific, written prior permission.
16 |
17 | The author disclaims all warranties with regard to this
18 | software, including all implied warranties of merchantability
19 | and fitness. In no event shall the author be liable for any
20 | special, indirect or consequential damages or any damages
21 | whatsoever resulting from loss of use, data or profits, whether
22 | in an action of contract, negligence or other tortious action,
23 | arising out of or in connection with the use or performance of
24 | this software.
25 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | .programlisting {
10 | display: block;
11 | margin-left: 15px;
12 | padding: 10px;
13 | background-color: #f4f4f4;
14 | border: 1px solid #aaaaaa;
15 | font-family: "Consolas", "Courier New", sans-serif;
16 | }
17 |
18 | code {
19 | background-color: #f4f4f4;
20 | font-family: "Consolas", "Courier New", sans-serif;
21 | }
22 |
23 | .note, .warning, .tip {
24 | display: block;
25 | margin-left: 15px;
26 | padding-left: 10px;
27 | padding-bottom: 5px;
28 | background-color: #f4f4f4;
29 | border: 1px solid #aaaaaa;
30 | }
31 |
32 | table {
33 | border: 1px solid #aaaaaa;
34 | border-collapse: collapse;
35 | margin-left: 15px;
36 | font-size: 10pt;
37 | }
38 |
39 | table thead {
40 | background-color: #f4f4f4;
41 | }
42 |
43 | table thead th {
44 | padding: 5px;
45 | }
46 |
47 | table tbody td {
48 | padding: 5px;
49 | }
50 |
51 | ul {
52 | padding-left: 20px;
53 | }
54 |
--------------------------------------------------------------------------------
/firmware/makefile:
--------------------------------------------------------------------------------
1 | #
2 | # LUFA Library
3 | # Copyright (C) Dean Camera, 2015.
4 | #
5 | # dean [at] fourwalledcubicle [dot] com
6 | # www.lufa-lib.org
7 | #
8 | # --------------------------------------
9 | # LUFA Project Makefile.
10 | # --------------------------------------
11 |
12 | # Run "make help" for target help.
13 |
14 | MCU = atmega32u4
15 | ARCH = AVR8
16 | BOARD = NONE
17 | F_CPU = 16000000
18 | F_USB = $(F_CPU)
19 | OPTIMIZATION = s
20 | TARGET = swc_usb
21 | SRC = $(TARGET).c Descriptors.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
22 | LUFA_PATH = ./LUFA
23 | CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
24 | LD_FLAGS =
25 |
26 | # Default target
27 | all:
28 |
29 | # Include LUFA build script makefiles
30 | include $(LUFA_PATH)/Build/lufa_core.mk
31 | include $(LUFA_PATH)/Build/lufa_sources.mk
32 | include $(LUFA_PATH)/Build/lufa_build.mk
33 | include $(LUFA_PATH)/Build/lufa_cppcheck.mk
34 | include $(LUFA_PATH)/Build/lufa_doxygen.mk
35 | include $(LUFA_PATH)/Build/lufa_dfu.mk
36 | include $(LUFA_PATH)/Build/lufa_hid.mk
37 | include $(LUFA_PATH)/Build/lufa_avrdude.mk
38 | include $(LUFA_PATH)/Build/lufa_atprogram.mk
39 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/lufa_drivers_usb_class.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/DevelopingWithLUFA.txt:
--------------------------------------------------------------------------------
1 | /** \file
2 | *
3 | * This file contains special DoxyGen information for the generation of the main page and other special
4 | * documentation pages. It is not a project source file.
5 | */
6 |
7 | /**
8 | * \page Page_DevelopingWithLUFA Developing With LUFA
9 | *
10 | * This section of the manual contains information on LUFA development, such as Getting Started information,
11 | * information on compile-time tuning of the library and other developer-related sections.
12 | *
13 | * Subsections:
14 | * \li \subpage Page_BuildSystem - The LUFA Buildsystem
15 | * \li \subpage Page_TokenSummary - Summary of Compile Time Tokens
16 | * \li \subpage Page_Migration - Migrating from an Older LUFA Version
17 | * \li \subpage Page_VIDPID - Allocated USB VID and PID Values
18 | * \li \subpage Page_OSDrivers - Operating System Driver Information
19 | * \li \subpage Page_BuildLibrary - Building as a Linkable Library
20 | * \li \subpage Page_ExportingLibrary - Exporting LUFA for IDE Use
21 | * \li \subpage Page_WritingBoardDrivers - How to Write Custom Board Drivers
22 | * \li \subpage Page_SoftwareBootloaderStart - How to jump to the bootloader in software
23 | */
24 |
25 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/lufa_vsmanifest_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/firmware/LUFA/CodeTemplates/makefile_template:
--------------------------------------------------------------------------------
1 | #
2 | # LUFA Library
3 | # Copyright (C) Dean Camera, 2015.
4 | #
5 | # dean [at] fourwalledcubicle [dot] com
6 | # www.lufa-lib.org
7 | #
8 | # --------------------------------------
9 | # LUFA Project Makefile.
10 | # --------------------------------------
11 |
12 | # Run "make help" for target help.
13 |
14 | MCU = at90usb1287
15 | ARCH = AVR8
16 | BOARD = USBKEY
17 | F_CPU = 8000000
18 | F_USB = $(F_CPU)
19 | OPTIMIZATION = s
20 | TARGET = Target
21 | SRC = $(TARGET).c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS) $(LUFA_SRC_PLATFORM)
22 | LUFA_PATH = ../../LUFA
23 | CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig
24 | LD_FLAGS =
25 |
26 | # Default target
27 | all:
28 |
29 | # Include LUFA build script makefiles
30 | include $(LUFA_PATH)/Build/lufa_core.mk
31 | include $(LUFA_PATH)/Build/lufa_sources.mk
32 | include $(LUFA_PATH)/Build/lufa_build.mk
33 | include $(LUFA_PATH)/Build/lufa_cppcheck.mk
34 | include $(LUFA_PATH)/Build/lufa_doxygen.mk
35 | include $(LUFA_PATH)/Build/lufa_dfu.mk
36 | include $(LUFA_PATH)/Build/lufa_hid.mk
37 | include $(LUFA_PATH)/Build/lufa_avrdude.mk
38 | include $(LUFA_PATH)/Build/lufa_atprogram.mk
39 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Donating.txt:
--------------------------------------------------------------------------------
1 | /** \file
2 | *
3 | * This file contains special DoxyGen information for the generation of the main page and other special
4 | * documentation pages. It is not a project source file.
5 | */
6 |
7 | /**
8 | * \page Page_Donating Donating to Support This Project
9 | *
10 | * \image html Images/Author.jpg "Dean Camera, LUFA Developer"
11 | *
12 | * I am a software developer working on LUFA in my spare time. The development and support of this library requires
13 | * much effort from myself, as I am the sole developer, maintainer and supporter. Please consider donating a small
14 | * amount to support this and my future Open Source projects - All donations are greatly appreciated.
15 | *
16 | * Note that commercial entities can remove the attribution portion of the LUFA license by a one-time fee - see
17 | * \ref Page_LicenseInfo for more details (Note: Please do NOT pay this in advance through the donation link below -
18 | * contact author for payment details.).
19 | *
20 | * \htmlonly
21 | * \image html "http://www.pledgie.com/campaigns/6927.png"
22 | * \endhtmlonly
23 | * Donate to this project via PayPal - Thanks in Advance!
24 | */
25 |
26 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | .
31 |
32 | .
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/VSIX/extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | LUFA Library
6 | Dean Camera
7 | 0
8 | http://www.lufa-lib.org
9 | LUFA, the Lightweight USB Framework for AVRs.
10 |
11 | License.txt
12 | LUFA_thumb.png
13 | LUFA.png
14 |
15 |
16 | AtmelStudio
17 |
18 |
19 |
20 | 1033
21 |
22 | false
23 |
24 |
25 |
26 |
27 |
28 | LUFA.pkgdef
29 | helpcontentsetup.msha
30 | asf-manifest.xml
31 |
32 |
33 |
--------------------------------------------------------------------------------
/firmware/swc_usb.h:
--------------------------------------------------------------------------------
1 | #ifndef _SWC_USB_H_
2 | #define _SWC_USB_H_
3 |
4 | /* Includes: */
5 | #include
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | #include "Descriptors.h"
12 | #include
13 |
14 | /* Function Prototypes: */
15 | void send_feedback(char const *fmt, ...);
16 | void setup_hardware(void);
17 | void activate_ports(void);
18 | void deactivate_ports(void);
19 | void USB_tasks(void);
20 | uint8_t read_status(void);
21 | uint8_t read_control(void);
22 | void write_data(uint8_t byte);
23 | void write_control(uint8_t byte);
24 | void flip_led(void);
25 | void cdc_device_receive_bytes(uint8_t *buffer, uint8_t length);
26 | void write_rom(uint16_t total_blocks, uint8_t emu_mode_select);
27 | void wait_busy_bit(bool bit, uint8_t poll_min);
28 | void send_byte(uint8_t byte);
29 | void send_command(uint8_t command_code, uint16_t address, uint16_t length);
30 | void send_block(uint16_t address, uint16_t block_size);
31 | void send_command0(uint16_t address, uint8_t byte);
32 | void read_sram(void);
33 | void write_sram(uint16_t total_bytes);
34 | bool receive_block(uint16_t address, uint16_t len);
35 | uint8_t receive_byte(void);
36 | void EVENT_USB_Device_ConfigurationChanged(void);
37 | void EVENT_USB_Device_ControlRequest(void);
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/lufa_common.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Groups.txt:
--------------------------------------------------------------------------------
1 | /** \file
2 | *
3 | * This file contains special DoxyGen information for the generation of the main page and other special
4 | * documentation pages. It is not a project source file.
5 | */
6 |
7 | /** \defgroup Group_BoardDrivers Board Drivers
8 | *
9 | * \brief Functions, macros, variables, enums and types related to the control of physical board hardware.
10 | */
11 |
12 | /** \defgroup Group_PeripheralDrivers On-chip Peripheral Drivers
13 | *
14 | * \brief Functions, macros, variables, enums and types related to the control of AVR subsystems.
15 | */
16 |
17 | /** \defgroup Group_MiscDrivers Miscellaneous Drivers
18 | *
19 | * \brief Miscellaneous driver Functions, macros, variables, enums and types.
20 | */
21 |
22 | /** \defgroup Group_PlatformDrivers_AVR8 AVR8
23 | * \ingroup Group_PlatformDrivers
24 | *
25 | * \brief Drivers relating to the AVR8 architecture platform, such as clock setup and interrupt management.
26 | */
27 |
28 | /** \defgroup Group_PlatformDrivers_XMEGA XMEGA
29 | * \ingroup Group_PlatformDrivers
30 | *
31 | * \brief Drivers relating to the XMEGA architecture platform, such as clock setup and interrupt management.
32 | */
33 |
34 | /** \defgroup Group_PlatformDrivers_UC3 UC3
35 | * \ingroup Group_PlatformDrivers
36 | *
37 | * \brief Drivers relating to the UC3 architecture platform, such as clock setup and interrupt management.
38 | */
39 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/BuildingLinkableLibraries.txt:
--------------------------------------------------------------------------------
1 | /** \file
2 | *
3 | * This file contains special DoxyGen information for the generation of the main page and other special
4 | * documentation pages. It is not a project source file.
5 | */
6 |
7 | /** \page Page_BuildLibrary Building as a Linkable Library
8 | *
9 | * The LUFA library can be built as a proper linkable library (with the extension .a) under AVR-GCC, so that
10 | * the library does not need to be recompiled with each revision of a user project. Instructions for creating
11 | * a library from a given source tree can be found in the AVR-GCC user manual included in the WinAVR install
12 | * /Docs/ directory.
13 | *
14 | * However, building the library is not recommended, as the static (compile-time) options will be
15 | * unable to be changed without a recompilation of the LUFA code. Therefore, if the library is to be built
16 | * from the LUFA source, it should be made to be application-specific and compiled with the static options
17 | * that are required for each project (which should be recorded along with the library).
18 | *
19 | * Normal library use has the library components compiled in at the same point as the application code, as
20 | * demonstrated in the library demos and applications. This is the preferred method, as the library is recompiled
21 | * each time to ensure that all static options for a particular application are applied.
22 | */
23 |
24 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/XMEGA/Pipe_XMEGA.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #define __INCLUDE_FROM_USB_DRIVER
32 | #include "../USBMode.h"
33 |
34 | #if defined(USB_CAN_BE_HOST)
35 |
36 | #endif
37 |
38 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/Events.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #define __INCLUDE_FROM_EVENTS_C
32 | #define __INCLUDE_FROM_USB_DRIVER
33 | #include "Events.h"
34 |
35 | void USB_Event_Stub(void)
36 | {
37 |
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/XDK/lufa_filelist_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
18 |
19 |
20 | Sourced from
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016, Tore Lundqvist
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5 |
6 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7 |
8 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9 |
10 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/LibraryResources.txt:
--------------------------------------------------------------------------------
1 | /** \file
2 | *
3 | * This file contains special DoxyGen information for the generation of the main page and other special
4 | * documentation pages. It is not a project source file.
5 | */
6 |
7 | /**
8 | * \page Page_Resources Library Resources
9 | *
10 | * \section Sec_UnofficialResources Unofficial Resources
11 | * Unofficial Russian LUFA documentation translation: http://microsin.ru/Download.cnt/doc/LUFA/ \n
12 | * Tutorial for LUFA USB Control Transfers: http://www.avrbeginners.net/new/tutorials/usb-control-transfers-with-lufa/
13 | *
14 | * \section Sec_ProjectPages LUFA Related Webpages
15 | * Project Homepage: http://www.lufa-lib.org \n
16 | * Commercial Licenses: http://www.lufa-lib.org/license \n
17 | * Author's Website: http://www.fourwalledcubicle.com \n
18 | * Development Blog: http://www.fourwalledcubicle.com/blog \n
19 | *
20 | * \section Sec_ProjectHelp Assistance With LUFA
21 | * Support Mailing List: http://www.lufa-lib.org/support \n
22 | * Author's Email: dean [at] fourwalledcubicle [dot] com \n
23 | *
24 | * \section Sec_InDevelopment Latest In-Development Source Code
25 | * Issue Tracker: http://www.lufa-lib.org/tracker \n
26 | * Public GIT Repository: http://www.lufa-lib.org/git \n
27 | * Latest Repository Source Archive: http://www.lufa-lib.org/latest-archive \n
28 | * Commit RSS Feed: http://www.lufa-lib.org/rss \n
29 | *
30 | * \section Sec_USBResources USB Resources
31 | * USB-IF Website: http://www.usb.org \n
32 | */
33 |
34 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/XMEGA/Host_XMEGA.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #include "../../../../Common/Common.h"
32 | #if (ARCH == ARCH_XMEGA)
33 |
34 | #define __INCLUDE_FROM_USB_DRIVER
35 | #include "../USBMode.h"
36 |
37 | #if defined(USB_CAN_BE_HOST)
38 |
39 | #endif
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/XMEGA/PipeStream_XMEGA.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #include "../../../../Common/Common.h"
32 | #if (ARCH == ARCH_XMEGA)
33 |
34 | #define __INCLUDE_FROM_USB_DRIVER
35 | #include "../USBMode.h"
36 |
37 | #if defined(USB_CAN_BE_HOST)
38 |
39 | #endif
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/firmware/LUFA/CodeTemplates/HostTemplate/asf.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Template for a LUFA USB host mode application.
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/firmware/LUFA/Build/HID_EEPROM_Loader/makefile:
--------------------------------------------------------------------------------
1 | #
2 | # LUFA Library
3 | # Copyright (C) Dean Camera, 2015.
4 | #
5 | # dean [at] fourwalledcubicle [dot] com
6 | # www.lufa-lib.org
7 | #
8 | # --------------------------------------
9 | # LUFA Project Makefile.
10 | # --------------------------------------
11 |
12 | # Run "make help" for target help.
13 |
14 | MCU = at90usb1287
15 | ARCH = AVR8
16 | F_CPU = 1000000
17 | F_USB = $(F_CPU)
18 | OPTIMIZATION = s
19 | TARGET = HID_EEPROM_Loader
20 | SRC = $(TARGET).c
21 | LUFA_PATH = ../../../LUFA
22 | CC_FLAGS =
23 | LD_FLAGS =
24 | OBJECT_FILES = InputEEData.o
25 |
26 | # Default target
27 | all:
28 |
29 | # Determine the AVR sub-architecture of the build main application object file
30 | FIND_AVR_SUBARCH = avr$(shell avr-objdump -f $(TARGET).o | grep architecture | cut -d':' -f3 | cut -d',' -f1)
31 |
32 | # Create a linkable object file with the input binary EEPROM data stored in the FLASH section
33 | InputEEData.o: InputEEData.bin $(TARGET).o $(MAKEFILE_LIST)
34 | @echo $(MSG_OBJCPY_CMD) Converting \"$<\" to a object file \"$@\"
35 | avr-objcopy -I binary -O elf32-avr -B $(call FIND_AVR_SUBARCH) --rename-section .data=.progmem.data,contents,alloc,readonly,data $< $@
36 |
37 | # Include LUFA build script makefiles
38 | include $(LUFA_PATH)/Build/lufa_core.mk
39 | include $(LUFA_PATH)/Build/lufa_build.mk
40 | include $(LUFA_PATH)/Build/lufa_cppcheck.mk
41 | include $(LUFA_PATH)/Build/lufa_doxygen.mk
42 | include $(LUFA_PATH)/Build/lufa_hid.mk
43 |
--------------------------------------------------------------------------------
/firmware/LUFA/StudioIntegration/HV1/lufa_helpcontentsetup_transform.xslt:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #include "../../../../Common/Common.h"
32 | #if (ARCH == ARCH_XMEGA)
33 |
34 | #define __INCLUDE_FROM_USB_DRIVER
35 | #include "../USBMode.h"
36 |
37 | #if defined(USB_CAN_BE_DEVICE)
38 |
39 | #include "../Device.h"
40 |
41 | void USB_Device_SendRemoteWakeup(void)
42 | {
43 | USB.CTRLB |= USB_RWAKEUP_bm;
44 | }
45 |
46 | #endif
47 |
48 | #endif
49 |
50 |
--------------------------------------------------------------------------------
/firmware/LUFA/Drivers/USB/Core/UC3/Device_UC3.c:
--------------------------------------------------------------------------------
1 | /*
2 | LUFA Library
3 | Copyright (C) Dean Camera, 2015.
4 |
5 | dean [at] fourwalledcubicle [dot] com
6 | www.lufa-lib.org
7 | */
8 |
9 | /*
10 | Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 |
12 | Permission to use, copy, modify, distribute, and sell this
13 | software and its documentation for any purpose is hereby granted
14 | without fee, provided that the above copyright notice appear in
15 | all copies and that both that the copyright notice and this
16 | permission notice and warranty disclaimer appear in supporting
17 | documentation, and that the name of the author not be used in
18 | advertising or publicity pertaining to distribution of the
19 | software without specific, written prior permission.
20 |
21 | The author disclaims all warranties with regard to this
22 | software, including all implied warranties of merchantability
23 | and fitness. In no event shall the author be liable for any
24 | special, indirect or consequential damages or any damages
25 | whatsoever resulting from loss of use, data or profits, whether
26 | in an action of contract, negligence or other tortious action,
27 | arising out of or in connection with the use or performance of
28 | this software.
29 | */
30 |
31 | #include "../../../../Common/Common.h"
32 | #if (ARCH == ARCH_UC3)
33 |
34 | #define __INCLUDE_FROM_USB_DRIVER
35 | #include "../USBMode.h"
36 |
37 | #if defined(USB_CAN_BE_DEVICE)
38 |
39 | #include "../Device.h"
40 |
41 | void USB_Device_SendRemoteWakeup(void)
42 | {
43 | USB_CLK_Unfreeze();
44 |
45 | AVR32_USBB.UDCON.rmwkup = true;
46 | while (AVR32_USBB.UDCON.rmwkup);
47 | }
48 |
49 | #endif
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/firmware/LUFA/DoxygenPages/Style/Footer.htm:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
33 |
34 |