├── .gitignore ├── usbxtract ├── build │ ├── debian │ │ ├── compat │ │ ├── changelog │ │ ├── control │ │ ├── copyright │ │ └── rules │ └── build ├── fw │ ├── 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 │ │ ├── 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 │ │ │ │ │ ├── Events.c │ │ │ │ │ ├── UC3 │ │ │ │ │ ├── Device_UC3.c │ │ │ │ │ └── Template │ │ │ │ │ │ ├── Template_Pipe_RW.c │ │ │ │ │ │ └── Template_Endpoint_RW.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 │ │ │ │ ├── MAXIMUS │ │ │ │ └── Board.h │ │ │ │ ├── DUCE │ │ │ │ └── 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 │ │ ├── Build │ │ │ └── HID_EEPROM_Loader │ │ │ │ ├── makefile │ │ │ │ └── HID_EEPROM_Loader.c │ │ ├── makefile │ │ └── Version.h │ ├── emu.h │ ├── makefile │ └── Config │ │ └── AppConfig.h ├── sw │ ├── usbxtractor-mfc.default │ ├── usbxtractor-mfc.default.t300rs │ ├── Makedefs │ ├── include │ │ ├── prio.h │ │ ├── proxy.h │ │ ├── names.h │ │ └── adapter.h │ ├── lib │ │ ├── Makefile │ │ └── gasync │ │ │ ├── Makefile │ │ │ └── include │ │ │ ├── gtimer.h │ │ │ ├── gserial.h │ │ │ └── gpoll.h │ ├── prio.c │ ├── Makefile │ └── names.c ├── include │ ├── info.h │ └── protocol.h └── .project ├── mfcserver ├── mfc-server.default └── Makefile ├── web-app ├── requirements.txt ├── static │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ └── npm.js ├── templates │ ├── base.html │ ├── poweroff.html │ └── cpanel.html └── settings.py ├── mfcxtract ├── mfc-xtract.default └── Makefile ├── lib └── scn_adapter.h ├── clients ├── cm-dr │ └── Makefile ├── assetto-corsa │ └── Makefile ├── cm-f1 │ └── Makefile └── pcars │ └── Makefile ├── makeall ├── rc.local.mfc └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | _out/* 2 | *.o 3 | -------------------------------------------------------------------------------- /usbxtract/build/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /mfcserver/mfc-server.default: -------------------------------------------------------------------------------- 1 | -s 5 --scn -o 0403:6001 2 | -------------------------------------------------------------------------------- /web-app/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0.2 2 | #psutil==5.6.2 3 | pexpect==4.7.0 4 | WTForms==2.2.1 5 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/LUFA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/LUFA.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/Author.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/Author.jpg -------------------------------------------------------------------------------- /mfcxtract/mfc-xtract.default: -------------------------------------------------------------------------------- 1 | --tty /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 --vid 044f --pid b66d 2 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/VSIX/LUFA.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/StudioIntegration/VSIX/LUFA.dll -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/LUFA_thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/LUFA_thumb.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/VSIX/LUFA.pkgdef: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/StudioIntegration/VSIX/LUFA.pkgdef -------------------------------------------------------------------------------- /web-app/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/web-app/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /web-app/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/web-app/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /usbxtract/sw/usbxtractor-mfc.default: -------------------------------------------------------------------------------- 1 | --tty /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 --vid 0eb7 --pid 0e04 2 | -------------------------------------------------------------------------------- /web-app/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/web-app/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /web-app/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/web-app/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /usbxtract/sw/usbxtractor-mfc.default.t300rs: -------------------------------------------------------------------------------- 1 | --tty /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 --vid 044f --pid b66d 2 | -------------------------------------------------------------------------------- /usbxtract/build/debian/changelog: -------------------------------------------------------------------------------- 1 | serialusb (#VERSION#-1) unstable; urgency=low 2 | 3 | * Fixed issues: #FIXED# 4 | 5 | -- Matlo #DATE# 6 | -------------------------------------------------------------------------------- /usbxtract/sw/Makedefs: -------------------------------------------------------------------------------- 1 | CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3 2 | LDLIBS += -lusb-1.0 -ludev 3 | CPPFLAGS+=-I../include -I../../lib -Iinclude -Ilib/gasync/include -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step1.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step2.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step3.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step4.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_1.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_2.png -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lmirel/mfc/HEAD/usbxtract/fw/LUFA/DoxygenPages/Images/AS5_AS6_Import/AS5_AS6_Import_Step5_3.png -------------------------------------------------------------------------------- /usbxtract/sw/include/prio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * prio.h 3 | * 4 | * Created on: 7 déc. 2012 5 | * Author: matlo 6 | */ 7 | 8 | #ifndef PRIO_H_ 9 | #define PRIO_H_ 10 | 11 | int set_prio(); 12 | 13 | #endif /* PRIO_H_ */ 14 | -------------------------------------------------------------------------------- /usbxtract/fw/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. -------------------------------------------------------------------------------- /usbxtract/fw/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. -------------------------------------------------------------------------------- /usbxtract/fw/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. -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/sw/include/proxy.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef PROXY_H_ 7 | #define PROXY_H_ 8 | 9 | int proxy_init(int vid, int pid); 10 | int proxy_start(char * port); 11 | void proxy_stop(); 12 | 13 | #endif /* PROXY_H_ */ 14 | -------------------------------------------------------------------------------- /usbxtract/sw/include/names.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef NAMES_H_ 7 | #define NAMES_H_ 8 | 9 | int get_vendor_string(char *buf, size_t size, u_int16_t vid); 10 | int get_product_string(char *buf, size_t size, u_int16_t vid, u_int16_t pid); 11 | 12 | #endif /* NAMES_H_ */ 13 | -------------------------------------------------------------------------------- /usbxtract/include/info.h: -------------------------------------------------------------------------------- 1 | #ifndef INFO_H_ 2 | #define INFO_H_ 3 | 4 | #define INFO_VERSION "0.00" 5 | #define INFO_YEAR "2010-2015" 6 | #define INFO_DEV "Matlo" 7 | #define INFO_WEB "http://gimx.fr" 8 | #define INFO_LICENCE "GNU GPL v3" 9 | 10 | #ifdef __x86_64__ 11 | #define INFO_ARCH "x86_64" 12 | #endif 13 | 14 | #ifdef __i386__ 15 | #define INFO_ARCH "i386" 16 | #endif 17 | 18 | #ifdef __ARM_ARCH_6__ 19 | #define INFO_ARCH "ARMv6" 20 | #endif 21 | 22 | #endif /* INFO_H_ */ 23 | -------------------------------------------------------------------------------- /usbxtract/build/debian/control: -------------------------------------------------------------------------------- 1 | Source: serialusb 2 | Section: unknown 3 | Priority: extra 4 | Maintainer: Matlo 5 | Build-Depends: debhelper (>= 7.0.50~), libusb-1.0-0-dev, libudev-dev 6 | Standards-Version: 3.8.4 7 | Homepage: https://github.com/matlo/serialusb 8 | 9 | Package: serialusb 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, libusb-1.0-0, libudev1, tcpdump 12 | Description: serialusb 13 | serialusb is a cheap (~5$) USB proxy intended to be used with input devices. 14 | -------------------------------------------------------------------------------- /web-app/static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /usbxtract/sw/lib/Makefile: -------------------------------------------------------------------------------- 1 | DIRS = event async 2 | 3 | BUILDDIRS = $(DIRS:%=build-%) 4 | INSTALLDIRS = $(DIRS:%=install-%) 5 | CLEANDIRS = $(DIRS:%=clean-%) 6 | UNINSTALLDIRS = $(DIRS:%=uninstall-%) 7 | 8 | all: $(BUILDDIRS) 9 | $(DIRS): $(BUILDDIRS) 10 | $(BUILDDIRS): 11 | $(MAKE) -C $(@:build-%=%) 12 | 13 | clean: $(CLEANDIRS) 14 | $(CLEANDIRS): 15 | $(MAKE) -C $(@:clean-%=%) clean 16 | 17 | install: $(INSTALLDIRS) all 18 | $(INSTALLDIRS): ; 19 | 20 | .PHONY: subdirs $(DIRS) 21 | .PHONY: subdirs $(BUILDDIRS) 22 | .PHONY: subdirs $(CLEANDIRS) 23 | .PHONY: all clean 24 | -------------------------------------------------------------------------------- /usbxtract/sw/lib/gasync/Makefile: -------------------------------------------------------------------------------- 1 | include ../../Makedefs 2 | 3 | LIBNAME=$(shell basename $(shell pwd)).a 4 | OBJECTS := $(patsubst %.c,%.o,$(wildcard src/*.c)) 5 | OBJECTS := $(patsubst %.c,%.o,$(wildcard src/*/*.c)) 6 | ifneq ($(OS),Windows_NT) 7 | OBJECTS += $(patsubst %.c,%.o,$(wildcard src/*/linux/*.c)) 8 | else 9 | OBJECTS += $(patsubst %.c,%.o,$(wildcard src/*/windows/*.c)) 10 | endif 11 | CPPFLAGS +=-I/usr/include/ -Iinclude -Isrc 12 | 13 | all: $(LIBNAME) 14 | 15 | $(LIBNAME): $(OBJECTS) 16 | $(AR) $(ARFLAGS) $@ $? 17 | 18 | clean: 19 | $(RM) $(LIBNAME) $(OBJECTS) 20 | -------------------------------------------------------------------------------- /usbxtract/build/debian/copyright: -------------------------------------------------------------------------------- 1 | This work was packaged for Debian by: 2 | 3 | Matlo on #DATE# 4 | 5 | It was downloaded from: 6 | 7 | https://github.com/matlo/serialusb 8 | 9 | Copyright: 10 | 11 | Copyright (C) 2010-#YEAR# Mathieu Laurendeau 12 | 13 | License: 14 | 15 | GPL-3: see "/usr/share/common-licenses/GPL-3". 16 | 17 | The Debian packaging is: 18 | 19 | Copyright (C) #YEAR# Matlo 20 | 21 | and is licensed under the GPL version 3, 22 | see "/usr/share/common-licenses/GPL-3". 23 | 24 | -------------------------------------------------------------------------------- /web-app/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% block head %} 5 | 6 | 7 | 8 | 9 | MFC - {% block title %}control panel{% endblock %} 10 | {% endblock %} 11 | 12 | 13 |
14 |

MFC - control panel

15 | {% block content %}{% endblock %} 16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/sw/prio.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #include 7 | #include 8 | 9 | #define PRINT_ERROR_ERRNO(msg) fprintf(stderr, "%s:%d %s: %s failed with error: %m\n", __FILE__, __LINE__, __func__, msg); 10 | 11 | int set_prio() { 12 | /* 13 | * Set highest priority & scheduler policy. 14 | */ 15 | struct sched_param p = { .sched_priority = sched_get_priority_max(SCHED_FIFO) }; 16 | 17 | if (sched_setscheduler(0, SCHED_FIFO, &p) < 0) { 18 | PRINT_ERROR_ERRNO("sched_setscheduler "); 19 | return -1; 20 | } 21 | return 0; 22 | } 23 | -------------------------------------------------------------------------------- /usbxtract/fw/emu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 Mathieu Laurendeau (mat.lau [at] laposte [dot] net) 3 | * License: GPLv3 4 | */ 5 | 6 | #ifndef _EMU_H_ 7 | #define _EMU_H_ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | void EVENT_USB_Device_Connect(void); 20 | void EVENT_USB_Device_Disconnect(void); 21 | void EVENT_USB_Device_ConfigurationChanged(void); 22 | bool EVENT_USB_Device_UnhandledControlRequest(void); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /usbxtract/sw/Makefile: -------------------------------------------------------------------------------- 1 | include Makedefs 2 | 3 | prefix=$(DESTDIR)/usr 4 | bindir=$(prefix)/bin 5 | 6 | BINS=usbxtract 7 | SCRIPTS= 8 | 9 | OBJECTS := $(patsubst %.c,%.o,$(shell find . -name "*.c")) 10 | 11 | all: $(BINS) 12 | 13 | usbxtract: $(OBJECTS) 14 | 15 | clean: 16 | $(RM) $(OBJECTS) $(BINS) 17 | 18 | install: all 19 | mkdir -p $(prefix) 20 | mkdir -p $(bindir) 21 | for i in $(BINS); do cp $$i $(bindir)/; done 22 | for i in $(SCRIPTS); do cp $$i $(bindir)/; done 23 | 24 | uninstall: 25 | -for i in $(SCRIPTS); do $(RM) $(bindir)/$$i; done 26 | -for i in $(BINS); do $(RM) $(bindir)/$$i; done 27 | -$(RM) $(bindir) 28 | -$(RM) $(prefix) 29 | 30 | really-clean: clean uninstall 31 | -------------------------------------------------------------------------------- /usbxtract/sw/lib/gasync/include/gtimer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef GTIMER_H_ 7 | #define GTIMER_H_ 8 | 9 | #include "gpoll.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #ifndef WIN32 16 | int gtimer_start(int user, int usec, GPOLL_READ_CALLBACK fp_read, GPOLL_CLOSE_CALLBACK fp_close, 17 | GPOLL_REGISTER_FD fp_register); 18 | #else 19 | int gtimer_start(int user, int usec, GPOLL_READ_CALLBACK fp_read, GPOLL_CLOSE_CALLBACK fp_close, 20 | GPOLL_REGISTER_HANDLE fp_register); 21 | #endif 22 | int gtimer_close(int timer); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif /* GTIMER_H_ */ 29 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/lufa_platform_xmega.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /usbxtract/sw/include/adapter.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef ADAPTER_H_ 7 | #define ADAPTER_H_ 8 | 9 | #include 10 | 11 | typedef int (* ADAPTER_READ_CALLBACK)(int user, s_packet * packet); 12 | typedef int (* ADAPTER_WRITE_CALLBACK)(int user, int transfered); 13 | typedef int (* ADAPTER_CLOSE_CALLBACK)(int user); 14 | 15 | int adapter_open(const char * port, ADAPTER_READ_CALLBACK fp_read, ADAPTER_WRITE_CALLBACK fp_write, ADAPTER_CLOSE_CALLBACK fp_close); 16 | int adapter_send(int adapter, unsigned char type, const unsigned char * data, unsigned int count); 17 | int adapter_close (); 18 | char adapter_debug (char dbg); 19 | 20 | #endif /* ADAPTER_H_ */ 21 | -------------------------------------------------------------------------------- /usbxtract/build/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | # Sample debian/rules that uses debhelper. 4 | # 5 | # This file was originally written by Joey Hess and Craig Small. 6 | # As a special exception, when this file is copied by dh-make into a 7 | # dh-make output file, you may use that output file without restriction. 8 | # This special exception was added by Craig Small in version 0.37 of dh-make. 9 | # 10 | # Modified to make a template file for a multi-binary package with separated 11 | # build-arch and build-indep targets by Bill Allombert 2001 12 | 13 | # Uncomment this to turn on verbose mode. 14 | #export DH_VERBOSE=1 15 | 16 | # This has to be exported to make some magic below work. 17 | export DH_OPTIONS 18 | 19 | 20 | %: 21 | dh $@ 22 | -------------------------------------------------------------------------------- /usbxtract/fw/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 |
21 |
22 | lufa_studio_help.mshc 23 | lufa_studio_help.mshc 24 |
25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/VSIX/[Content_Types].xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /lib/scn_adapter.h: -------------------------------------------------------------------------------- 1 | 2 | //flags 3 | #define FLGPIO_PFIN 0x10 4 | 5 | #define SCNCMD_LEN 16 6 | 7 | #define RDTMOC 50 //read timeout cycles, multiplied by sleep below 8 | #define SLTMOC 20 //sleep ms between reads 9 | 10 | #define SCNPOS_MIN 0 //full retract 11 | #define SCNPOS_MAX -10000 //full expand 12 | 13 | #define DEFA_VCMD 0x0EA6 //read from 7C04 - velocity while moving: MAX 3750 14 | #define DEFA_ACMD 0x0093 //read from 7C05 15 | #define DEFA_OVCM 0x02EE //read from 000A - velocity while homing: MIN 750 16 | 17 | int scn_get_response (int fd, char *rsp); 18 | int scn_get_pos (int fd); 19 | int scn_set_pos (int fd, int pos); 20 | int scn_set_home (int fd); 21 | int scn_set_son (int fd); 22 | int scn_set_soff (int fd); 23 | int scn_set_vel (int fd, int vel, int acc); 24 | int scn_get_status (int fd); 25 | -------------------------------------------------------------------------------- /clients/cm-dr/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-cli-cm-drally 2 | program_C_SRCS := cm-drally-cli.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := 8 | program_LIBRARY_DIRS := 9 | program_LIBRARIES := 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDFLAGS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /clients/assetto-corsa/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-cli-ac 2 | program_C_SRCS := ac-cli.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := 8 | program_LIBRARY_DIRS := 9 | program_LIBRARIES := 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) -std=c99 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDLIBS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) $(LDLIBS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /clients/cm-f1/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-cli-cm-f1 2 | program_C_SRCS := cm-f1-cli.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := 8 | program_LIBRARY_DIRS := 9 | program_LIBRARIES := 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) -std=c99 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDLIBS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) $(LDLIBS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /clients/pcars/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-cli-pcars2 2 | program_C_SRCS := pcars-cli.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := 8 | program_LIBRARY_DIRS := 9 | program_LIBRARIES := 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) -std=c99 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDLIBS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) $(LDLIBS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /usbxtract/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | serialusb 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 24 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 25 | 26 | 27 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/XDK/lufa_indent_transform.xslt: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /mfcserver/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-server 2 | program_C_SRCS := mfc-server.c ../lib/scn_adapter.c ../lib/extras.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := ../lib 8 | program_LIBRARY_DIRS := ../lib 9 | program_LIBRARIES :=usb-1.0 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) -Wall 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDLIBS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) $(LDLIBS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /mfcxtract/Makefile: -------------------------------------------------------------------------------- 1 | program_NAME := mfc-xtract 2 | program_C_SRCS := mfc-xtract.c ../lib/extras.c 3 | program_CXX_SRCS := $(wildcard *.cpp) 4 | program_C_OBJS := ${program_C_SRCS:.c=.o} 5 | program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} 6 | program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) 7 | program_INCLUDE_DIRS := ../lib ../usbxtract/include/ 8 | program_LIBRARY_DIRS := ../lib 9 | program_LIBRARIES :=usb-1.0 10 | 11 | CPPFLAGS += $(foreach includedir,$(program_INCLUDE_DIRS),-I$(includedir)) -Wall -std=c99 12 | LDFLAGS += $(foreach librarydir,$(program_LIBRARY_DIRS),-L$(librarydir)) 13 | LDLIBS += $(foreach library,$(program_LIBRARIES),-l$(library)) 14 | 15 | .PHONY: all clean distclean 16 | 17 | all: $(program_NAME) 18 | 19 | $(program_NAME): $(program_OBJS) 20 | $(LINK.cc) $(program_OBJS) $(LDLIBS) -o $(program_NAME) 21 | 22 | clean: 23 | @- $(RM) $(program_NAME) 24 | @- $(RM) $(program_OBJS) 25 | 26 | distclean: clean 27 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/sw/lib/gasync/include/gserial.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2016 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef GSERIAL_H_ 7 | 8 | #define GSERIAL_H_ 9 | 10 | #include "async.h" 11 | #include "gpoll.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | int gserial_open(const char * portname, unsigned int baudrate); 18 | int gserial_close(int device); 19 | int gserial_read_timeout(int device, void * buf, unsigned int count, unsigned int timeout); 20 | int gserial_set_read_size(int device, unsigned int size); 21 | int gserial_register(int device, int user, ASYNC_READ_CALLBACK fp_read, ASYNC_WRITE_CALLBACK fp_write, 22 | ASYNC_CLOSE_CALLBACK fp_close, GPOLL_REGISTER_FD fp_register); 23 | int gserial_write_timeout(int device, void * buf, unsigned int count, unsigned int timeout); 24 | int gserial_write(int device, const void * buf, unsigned int count); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif /* GSERIAL_H_ */ 31 | -------------------------------------------------------------------------------- /web-app/templates/poweroff.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 |
4 |
5 | 21 |
22 | {% endblock %} -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/sw/lib/gasync/include/gpoll.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2015 Mathieu Laurendeau 3 | License: GPLv3 4 | */ 5 | 6 | #ifndef GPOLL_H_ 7 | #define GPOLL_H_ 8 | 9 | typedef int (* GPOLL_READ_CALLBACK)(int user); 10 | typedef int (* GPOLL_WRITE_CALLBACK)(int user); 11 | typedef int (* GPOLL_CLOSE_CALLBACK)(int user); 12 | 13 | typedef int (* GPOLL_REGISTER_FD)(int fd, int id, GPOLL_READ_CALLBACK fp_read, GPOLL_WRITE_CALLBACK fp_write, GPOLL_CLOSE_CALLBACK fp_close); 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | void gpoll(); 20 | int gpoll_register_fd(int fd, int user, GPOLL_READ_CALLBACK fp_read, GPOLL_WRITE_CALLBACK fp_write, GPOLL_CLOSE_CALLBACK fp_close); 21 | void gpoll_remove_fd(int fd); 22 | 23 | #ifdef WIN32 24 | 25 | typedef void * HANDLE; 26 | 27 | typedef int (* GPOLL_REGISTER_HANDLE)(HANDLE handle, int id, GPOLL_READ_CALLBACK fp_read, GPOLL_WRITE_CALLBACK fp_write, GPOLL_CLOSE_CALLBACK fp_close); 28 | 29 | int gpoll_register_handle(HANDLE handle, int user, GPOLL_READ_CALLBACK fp_read, GPOLL_WRITE_CALLBACK fp_write, GPOLL_CLOSE_CALLBACK fp_close); 30 | void gpoll_remove_handle(HANDLE handle); 31 | 32 | #endif 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif /* GPOLL_H_ */ 39 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/makefile: -------------------------------------------------------------------------------- 1 | # 2 | # LUFA Library 3 | # Copyright (C) Dean Camera, 2013. 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 = 3 20 | TARGET = emu 21 | SRC = $(TARGET).c $(LUFA_SRC_USB) $(LUFA_SRC_SERIAL) 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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /makeall: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #disable this after first run 4 | #sudo apt install libusb-1.0-0-dev libudev-dev 5 | PKVER=`cat lib/extras.h | grep MFC_VER | cut -d'"' -f2` 6 | if [ ! -z "$1" ]; then 7 | PKVER=$1 8 | fi 9 | 10 | TOOLS=" 11 | mfcserver 12 | mfcxtract" 13 | 14 | for TOOL in $TOOLS 15 | do 16 | echo Making $TOOL: 17 | cd $TOOL 18 | make clean 19 | make 20 | cd .. 21 | done 22 | 23 | TOOLS1=" 24 | usbxtract/sw 25 | clients/pcars 26 | clients/assetto-corsa 27 | clients/cm-f1 28 | clients/cm-dr" 29 | 30 | for TOOL in $TOOLS1 31 | do 32 | echo Making $TOOL: 33 | cd $TOOL 34 | make clean 35 | make 36 | cd ../.. 37 | done 38 | 39 | mkdir -p .mfc 40 | cp mfcserver/mfc-server .mfc/ 41 | cp mfcxtract/mfc-xtract .mfc/ 42 | cp usbxtract/sw/usbxtract .mfc/usbxtract 43 | cp clients/pcars/mfc-cli-pcars2 .mfc/ 44 | cp clients/assetto-corsa/mfc-cli-ac .mfc/ 45 | cp clients/cm-f1/mfc-cli-cm-f1 .mfc/ 46 | cp clients/cm-dr/mfc-cli-cm-drally .mfc/ 47 | 48 | OSVER=`hostnamectl | grep Operating | cut -d " " -f5` 49 | 50 | #.tar.gz 51 | echo "compressing package.."$PKVER$OSVER 52 | #tar -zcvf tar-archive-name.tar.gz source-folder-name 53 | tar -zcvf mfc-$PKVER-$OSVER.tar.gz .mfc/* 54 | echo "package ready" 55 | #untar gz 56 | #tar -zxvf tar-archive-name.tar.gz 57 | 58 | echo "done." 59 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /web-app/settings.py: -------------------------------------------------------------------------------- 1 | 2 | # this shouldn't be here 3 | SECRET_KEY = '7d441f27d441f27567d441f2b6176a' 4 | 5 | PROCESSES_CONFIG = [ 6 | { 7 | 'ref': 'mfcsvr', 8 | 'name': 'MFC SVR', 9 | 'label': 'MFC server', 10 | 'desc': 'platform motion control server', 11 | 'bin': 'mfc-server', 12 | }, 13 | { 14 | 'ref': 'mfc-xtract', 15 | 'name': 'MFC Xtractor client', 16 | 'label': 'MFC Xtractor client', 17 | 'desc': 'mfc telemetry extractor', 18 | 'bin': 'mfc-xtract', 19 | }, 20 | { 21 | 'ref': 'usbxtract', 22 | 'name': 'USB Xtractor', 23 | 'label': 'USB Xtractor', 24 | 'desc': 'HID controller proxy', 25 | 'bin': 'usbxtract', 26 | }, 27 | { 28 | 'ref': 'mfccmf1', 29 | 'name': 'MFC CM F1', 30 | 'label': 'CM F1 native client', 31 | 'desc': 'codemasters F1', 32 | 'bin': 'mfc-cli-cmf1d', 33 | 'expect_timeout': 10, 34 | }, 35 | { 36 | 'ref': 'mfcpcars', 37 | 'name': 'MFC PCARS', 38 | 'label': 'PCARS native client', 39 | 'desc': 'project cars 2', 40 | 'bin': 'mfc-cli-pcars2d', 41 | 'expect_timeout': 10, 42 | }, 43 | { 44 | 'ref': 'mfcnac', 45 | 'name': 'MFC AC', 46 | 'label': 'Assetto Corsa native client', 47 | 'desc': 'assetto corsa', 48 | 'bin': 'mfc-cli-acd', 49 | #'logfile': '', 50 | #'runcmd': '', 51 | 'expect_timeout': 10, 52 | } 53 | ] -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/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 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Style/Footer.htm: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/CodeTemplates/DeviceTemplate/DeviceApplication.h: -------------------------------------------------------------------------------- 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 | /** \file 32 | * 33 | * Header file for DeviceApplication.c. 34 | */ 35 | 36 | #ifndef _USB_DEVICE_APPLICATION_H_ 37 | #define _USB_DEVICE_APPLICATION_H_ 38 | 39 | /* Includes: */ 40 | #include 41 | #include 42 | #include 43 | 44 | #include 45 | #include 46 | 47 | #include "Descriptors.h" 48 | 49 | /* Function Prototypes: */ 50 | void SetupHardware(void); 51 | 52 | #endif 53 | 54 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.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_AVR8) 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 | if (!(USB_Options & USB_OPT_MANUAL_PLL)) 44 | { 45 | USB_PLL_On(); 46 | while (!(USB_PLL_IsReady())); 47 | } 48 | 49 | USB_CLK_Unfreeze(); 50 | 51 | UDCON |= (1 << RMWKUP); 52 | while (UDCON & (1 << RMWKUP)); 53 | } 54 | 55 | #endif 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/Docbook/mshelp/docbook.xsl: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 31 | 32 | 33 | 38 | 39 | 40 | 43 | 44 | 45 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/StudioIntegration/lufa_drivers_usb_core_xmega.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 | 36 | 37 | -------------------------------------------------------------------------------- /rc.local.mfc: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # 4 | # This script is executed at the end of each multiuser runlevel. 5 | # Make sure that the script will "exit 0" on success or any other 6 | # value on error. 7 | # 8 | # In order to disable this script please use systemd to control the service: 9 | # systemctl disable rc-local.service 10 | # 11 | # By default this script does nothing. 12 | 13 | #sleep 30 14 | 15 | echo "starting MFC subsystem" 16 | if [ ! -f /opt/server-mfc.default ]; then 17 | touch /opt/server-mfc.default 18 | fi 19 | /opt/server-mfc $(cat /opt/server-mfc.default) > /tmp/mfc-svr.log 2>&1 & 20 | 21 | #if [ ! -f /opt/client-mfc.default ]; then 22 | # touch /opt/client-mfc.default 23 | #fi 24 | #sleep 1 25 | #/opt/client-mfc $(cat /opt/client-mfc.default) > /tmp/mfc-cli.log 2>&1 & 26 | 27 | sleep 1 28 | if [ ! -f /opt/mfc-xtract.default ]; then 29 | touch /opt/mfc-xtract.default 30 | fi 31 | /opt/mfc-xtract $(cat /opt/mfc-xtract.default) > /tmp/mfc-xtract.log 2>&1 & 32 | 33 | sleep 1 34 | if [ ! -f /opt/usbxtractor-mfc.default ]; then 35 | touch /opt/usbxtractor-mfc.default 36 | fi 37 | /opt/usbxtractor-mfc $(cat /opt/usbxtractor-mfc.default) > /tmp/usbxtractor-mfc.log 2>&1 & 38 | 39 | #game clients 40 | sleep 1 41 | if [ ! -f /opt/mfcc-acd.default ]; then 42 | touch /opt/mfcc-acd.default 43 | fi 44 | /opt/mfcc-acd $(cat /opt/mfcc-acd.default) > /tmp/mfcc-acd.log 2>&1 & 45 | 46 | sleep 1 47 | if [ ! -f /opt/mfcc-pcars2d.default ]; then 48 | touch /opt/mfcc-pcars2d.default 49 | fi 50 | /opt/mfcc-pcarsd $(cat /opt/mfcc-pcars2d.default) > /tmp/mfcc-pcars2d.log 2>&1 & 51 | 52 | sleep 1 53 | if [ ! -f /opt/mfcc-cmf1d.default ]; then 54 | touch /opt/mfcc-cmf1d.default 55 | fi 56 | /opt/mfcc-cmf1d $(cat /opt/mfcc-cmf1d.default) > /tmp/mfcc-cmf1d.log 2>&1 & 57 | 58 | #web mgmt panel 59 | sleep 1 60 | /opt/mfc-web/mfc-miniapp.py > /tmp/mfc-web.log 2>&1 & 61 | 62 | echo "MFC subsystem started" 63 | 64 | exit 0 65 | -------------------------------------------------------------------------------- /usbxtract/fw/Config/AppConfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | LUFA Library 3 | Copyright (C) Dean Camera, 2013. 4 | 5 | dean [at] fourwalledcubicle [dot] com 6 | www.lufa-lib.org 7 | */ 8 | 9 | /* 10 | Copyright 2013 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 | /** \file 32 | * \brief Application Configuration Header File 33 | * 34 | * This is a header file which is be used to configure some of 35 | * the application's compile time options, as an alternative to 36 | * specifying the compile time constants supplied through a 37 | * makefile or build system. 38 | * 39 | * For information on what each token does, refer to the 40 | * \ref Sec_Options section of the application documentation. 41 | */ 42 | 43 | #ifndef _APP_CONFIG_H_ 44 | #define _APP_CONFIG_H_ 45 | 46 | #define GENERIC_REPORT_SIZE 8 47 | 48 | #endif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mfc - motion feedback controller 2 | 3 | this tool uses the native in-game telemetry shared via UDP/TCP from games to control a motion platform.
4 | the following games are supported so far: 5 | 6 | - Assetto Corsa (PS4)
7 | - Codemaster's F1 (PS4) and Dirt Rally (PC)
8 | - Project Cars 2 (PS4) 9 |
10 | the next thing it does, it uses the USB HID data exchanged between the steering wheel and the gaming console to 'guesstimate' how a motion platform SHOULD move as if it had telemetry available. it does its best and most of the times it manages well. keep in mind however that it guesses that and it relies heavily on the FFB and wheel data to do it. 11 |
supported wheels so far: 12 | 13 | - Thrustmaster T300RS for PS4 14 | - Logitech G92 for PS4 15 | - Fanatec Elite CSL for PS4 16 | 17 | # how this works 18 | 19 | the MFC SERVER controls the motion platform drivers.
20 | the MFC CLIENTS are programs that receive native telemetry data and sends it to the server (see list of games above).
21 | the USB XTRACTOR is used to proxy between the steering wheel and the console to extract USB HID data.
22 | the MFC XTRACTOR uses the USB HID data to generate game telemetry.
23 | the two extractors are only needed if the games you play don't provide in-game telemetry via UDP/TCP. the USBXTRACTOR also requires an Arduino/Teensy atmega32u4 with custom firmware. this solution is based on Matlo's https://github.com/matlo/serialusb
24 |
25 | the end result using the xtractors on a PS4 system looks something like this:
26 | [side view](https://www.youtube.com/watch?v=uBPW2BS_ysU&t=1s) and [back view](https://www.youtube.com/watch?v=jvZpMXiD8k4&t=1s) 27 | 28 | # WiKi 29 | 30 | - Wiki 31 | 32 |
Tested on a system using Raspberry PI2/3. 33 |

34 | USE AT YOUR OWN RISK and Enjoy! 35 | 36 | consider a small donation if you feel this helped you: https://paypal.me/lazarmirel 37 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/CodeTemplates/HostTemplate/HostApplication.h: -------------------------------------------------------------------------------- 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 | /** \file 32 | * 33 | * Header file for HostApplication.c. 34 | */ 35 | 36 | #ifndef _USB_HOST_APPLICATION_H_ 37 | #define _USB_HOST_APPLICATION_H_ 38 | 39 | /* Includes: */ 40 | #include 41 | #include 42 | #include 43 | 44 | #include 45 | 46 | /* Macros: */ 47 | #if (defined(ARCH_HAS_MULTI_ADDRESS_SPACE) && \ 48 | !(defined(USE_FLASH_DESCRIPTORS) || defined(USE_EEPROM_DESCRIPTORS) || defined(USE_RAM_DESCRIPTORS))) 49 | #define HAS_MULTIPLE_DESCRIPTOR_ADDRESS_SPACES 50 | #endif 51 | 52 | /* Function Prototypes: */ 53 | void SetupHardware(void); 54 | 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /usbxtract/fw/LUFA/DoxygenPages/Style/Style.css: -------------------------------------------------------------------------------- 1 | /* ============================= */ 2 | /* Page Header Formattings */ 3 | /* ============================= */ 4 | #titlearea { 5 | background-color:#E1E7F4; 6 | background-image:url('nav_f.png'); 7 | background-repeat:repeat-x; 8 | color:#20335A; 9 | font-weight:bold; 10 | text-shadow:0 1px 1px rgba(255, 255, 255, 0.9); 11 | } 12 | 13 | #projectlogo { 14 | padding-left: 10px; 15 | } 16 | 17 | /* ============================= */ 18 | /* General Text Formattings */ 19 | /* ============================= */ 20 | body,table,div,p,dl { 21 | font-family:Lucida Grande, Verdana, Geneva, Arial, sans-serif; 22 | font-size:13px; 23 | line-height:1.3; 24 | } 25 | 26 | div.header, div.contents p { 27 | padding-left:12px; 28 | } 29 | 30 | /* ============================= */ 31 | /* API Documentation Formattings */ 32 | /* ============================= */ 33 | div.contents table.memberdecls, .paramname { 34 | font-family:Consolas, Monaco, courier, sans-serif; 35 | font-size:105%; 36 | padding-right:20px; 37 | } 38 | 39 | /* ============================= */ 40 | /* HTML Heading Formattings */ 41 | /* ============================= */ 42 | h1, h2, h3, h4 { 43 | font-family:Lucida Grande, Verdana, Geneva, Arial, sans-serif; 44 | } 45 | 46 | h1 { 47 | font-size:25px; 48 | margin-bottom:10px; 49 | } 50 | 51 | h2 { 52 | color:#42657B; 53 | font-size:17px; 54 | } 55 | 56 | h3 { 57 | font-size:15px; 58 | } 59 | 60 | h4 { 61 | font-size:13px; 62 | } 63 | 64 | /* ============================= */ 65 | /* Code Snippet Formattings */ 66 | /* ============================= */ 67 | span.keyword { 68 | color:#008000; 69 | } 70 | 71 | span.keywordtype { 72 | color:#604020; 73 | } 74 | 75 | span.keywordflow { 76 | color:#e08000; 77 | } 78 | 79 | span.comment { 80 | color:#008000; 81 | } 82 | 83 | span.preprocessor { 84 | color:#806020; 85 | } 86 | 87 | span.stringliteral { 88 | color:#002080; 89 | } 90 | 91 | span.charliteral { 92 | color:#008080; 93 | } 94 | -------------------------------------------------------------------------------- /web-app/templates/cpanel.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {#{% block title %}control panel{% endblock %}#} 3 | {% block content %} 4 | {% with messages = get_flashed_messages(with_categories=true) %} 5 | {% if messages %} 6 | {% for message in messages %} 7 |
8 | {% if "Error" in message[1] %} 9 |
10 | {% elif "Danger" in message[1] %} 11 |
12 | {% else %} 13 |
14 | {% endif %} 15 | {{ message[1] }} 16 |
17 | {% endfor %} 18 | {% endif %} 19 | {% endwith %} 20 |
21 | {{ form.csrf }} 22 |
23 | 24 |
25 | {% for proc in processes %} 26 | {% if proc.status %} 27 |