aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE.txt27
-rw-r--r--common/bootloader.c (renamed from bootloader.c)0
-rw-r--r--common/bootloader.h (renamed from bootloader.h)0
-rw-r--r--common/command.c (renamed from command.c)0
-rw-r--r--common/command.h (renamed from command.h)0
-rw-r--r--common/controller_teensy.h (renamed from controller_teensy.h)0
-rw-r--r--common/debug.h (renamed from debug.h)0
-rw-r--r--common/host.c (renamed from host.c)0
-rw-r--r--common/host.h (renamed from host.h)0
-rw-r--r--common/host_driver.h (renamed from host_driver.h)0
-rw-r--r--common/keyboard.c (renamed from keyboard.c)0
-rw-r--r--common/keyboard.h (renamed from keyboard.h)0
-rw-r--r--common/keymap.h (renamed from keymap.h)0
-rw-r--r--common/layer.c (renamed from layer.c)0
-rw-r--r--common/layer.h (renamed from layer.h)0
-rw-r--r--common/led.h (renamed from led.h)0
-rw-r--r--common/matrix.h (renamed from matrix.h)0
-rwxr-xr-xcommon/mousekey.c (renamed from mousekey.c)0
-rw-r--r--common/mousekey.h (renamed from mousekey.h)0
-rw-r--r--common/print.c (renamed from print.c)0
-rw-r--r--common/print.h (renamed from print.h)0
-rw-r--r--common/report.h (renamed from report.h)0
-rw-r--r--common/sendchar.h (renamed from sendchar.h)0
-rw-r--r--common/sendchar_null.c (renamed from sendchar_null.c)0
-rw-r--r--common/sendchar_uart.c (renamed from sendchar_uart.c)0
-rw-r--r--common/timer.c (renamed from timer.c)0
-rw-r--r--common/timer.h (renamed from timer.h)0
-rw-r--r--common/uart.c (renamed from uart.c)0
-rw-r--r--common/uart.h (renamed from uart.h)0
-rw-r--r--common/usb_keycodes.h (renamed from usb_keycodes.h)0
-rw-r--r--common/util.c (renamed from util.c)0
-rw-r--r--common/util.h (renamed from util.h)0
-rw-r--r--doc/COPYING.GPLv2 (renamed from COPYING.GPLv2)0
-rw-r--r--doc/COPYING.GPLv3 (renamed from COPYING.GPLv3)0
-rw-r--r--doc/FUSE.txt (renamed from hhkb/FUSE.txt)0
-rw-r--r--doc/POWER.txt (renamed from POWER.txt)0
-rw-r--r--doc/USB_NKRO.txt (renamed from USB_NKRO.txt)0
-rw-r--r--pjrc/host.c183
-rw-r--r--protocol/adb.c (renamed from adb.c)0
-rw-r--r--protocol/adb.h (renamed from adb.h)0
-rw-r--r--protocol/iwrap.mk (renamed from iwrap.mk)0
-rw-r--r--protocol/iwrap/iWRAP.txt (renamed from iwrap/iWRAP.txt)0
-rw-r--r--protocol/iwrap/iwrap.c (renamed from iwrap/iwrap.c)0
-rw-r--r--protocol/iwrap/iwrap.h (renamed from iwrap/iwrap.h)0
-rw-r--r--protocol/iwrap/main.c (renamed from iwrap/main.c)0
-rw-r--r--protocol/iwrap/suart.S (renamed from iwrap/suart.S)0
-rw-r--r--protocol/iwrap/suart.h (renamed from iwrap/suart.h)0
-rw-r--r--protocol/iwrap/wd.h (renamed from iwrap/wd.h)0
-rw-r--r--protocol/m0110.c (renamed from m0110.c)0
-rw-r--r--protocol/m0110.h (renamed from m0110.h)0
-rw-r--r--protocol/pjrc.mk (renamed from pjrc.mk)0
-rw-r--r--protocol/pjrc/bootloader_teensy.c (renamed from pjrc/bootloader_teensy.c)0
-rw-r--r--protocol/pjrc/main.c (renamed from pjrc/main.c)0
-rw-r--r--protocol/pjrc/pjrc.c (renamed from pjrc/pjrc.c)0
-rw-r--r--protocol/pjrc/pjrc.h (renamed from pjrc/pjrc.h)0
-rw-r--r--protocol/pjrc/usb.c (renamed from pjrc/usb.c)0
-rw-r--r--protocol/pjrc/usb.h (renamed from pjrc/usb.h)0
-rw-r--r--protocol/pjrc/usb_debug.c (renamed from pjrc/usb_debug.c)0
-rw-r--r--protocol/pjrc/usb_debug.h (renamed from pjrc/usb_debug.h)0
-rw-r--r--protocol/pjrc/usb_extra.c (renamed from pjrc/usb_extra.c)0
-rw-r--r--protocol/pjrc/usb_extra.h (renamed from pjrc/usb_extra.h)0
-rw-r--r--protocol/pjrc/usb_keyboard.c (renamed from pjrc/usb_keyboard.c)0
-rw-r--r--protocol/pjrc/usb_keyboard.h (renamed from pjrc/usb_keyboard.h)0
-rw-r--r--protocol/pjrc/usb_mouse.c (renamed from pjrc/usb_mouse.c)0
-rw-r--r--protocol/pjrc/usb_mouse.h (renamed from pjrc/usb_mouse.h)0
-rw-r--r--protocol/ps2.c (renamed from ps2.c)0
-rw-r--r--protocol/ps2.h (renamed from ps2.h)0
-rw-r--r--protocol/ps2_mouse.c (renamed from ps2_mouse.c)0
-rw-r--r--protocol/ps2_mouse.h (renamed from ps2_mouse.h)0
-rw-r--r--protocol/ps2_usart.c (renamed from ps2_usart.c)0
-rw-r--r--protocol/vusb.mk (renamed from vusb.mk)0
-rw-r--r--protocol/vusb/bootloader_usbasp.c (renamed from vusb/bootloader_usbasp.c)0
-rw-r--r--protocol/vusb/main.c (renamed from vusb/main.c)0
-rw-r--r--protocol/vusb/sendchar_usart.c (renamed from vusb/sendchar_usart.c)0
-rw-r--r--protocol/vusb/usbdrv/Changelog.txt (renamed from vusb/usbdrv/Changelog.txt)0
-rw-r--r--protocol/vusb/usbdrv/CommercialLicense.txt (renamed from vusb/usbdrv/CommercialLicense.txt)0
-rw-r--r--protocol/vusb/usbdrv/License.txt (renamed from vusb/usbdrv/License.txt)0
-rw-r--r--protocol/vusb/usbdrv/Readme.txt (renamed from vusb/usbdrv/Readme.txt)0
-rw-r--r--protocol/vusb/usbdrv/USB-ID-FAQ.txt (renamed from vusb/usbdrv/USB-ID-FAQ.txt)0
-rw-r--r--protocol/vusb/usbdrv/USB-IDs-for-free.txt (renamed from vusb/usbdrv/USB-IDs-for-free.txt)0
-rw-r--r--protocol/vusb/usbdrv/asmcommon.inc (renamed from vusb/usbdrv/asmcommon.inc)0
-rw-r--r--protocol/vusb/usbdrv/oddebug.c (renamed from vusb/usbdrv/oddebug.c)0
-rw-r--r--protocol/vusb/usbdrv/oddebug.h (renamed from vusb/usbdrv/oddebug.h)0
-rw-r--r--protocol/vusb/usbdrv/usbconfig-prototype.h (renamed from vusb/usbdrv/usbconfig-prototype.h)0
-rw-r--r--protocol/vusb/usbdrv/usbdrv.c (renamed from vusb/usbdrv/usbdrv.c)0
-rw-r--r--protocol/vusb/usbdrv/usbdrv.h (renamed from vusb/usbdrv/usbdrv.h)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm.S (renamed from vusb/usbdrv/usbdrvasm.S)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm.asm (renamed from vusb/usbdrv/usbdrvasm.asm)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm12.inc (renamed from vusb/usbdrv/usbdrvasm12.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm128.inc (renamed from vusb/usbdrv/usbdrvasm128.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm15.inc (renamed from vusb/usbdrv/usbdrvasm15.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm16.inc (renamed from vusb/usbdrv/usbdrvasm16.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm165.inc (renamed from vusb/usbdrv/usbdrvasm165.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm18-crc.inc (renamed from vusb/usbdrv/usbdrvasm18-crc.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbdrvasm20.inc (renamed from vusb/usbdrv/usbdrvasm20.inc)0
-rw-r--r--protocol/vusb/usbdrv/usbportability.h (renamed from vusb/usbdrv/usbportability.h)0
-rw-r--r--protocol/vusb/vusb.c (renamed from vusb/vusb.c)0
-rw-r--r--protocol/vusb/vusb.h (renamed from vusb/vusb.h)0
98 files changed, 0 insertions, 210 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
deleted file mode 100644
index de622df54..000000000
--- a/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
1Codes are released under each license. See heading of each file for details.
2
3Modified BSD license:
4 ps2.c
5 ps2.h
6 adb.c
7 adb.h
8
9GPLv2 or later:
10 other codes
11
12PJRC's license:
13 print.c
14 print.h
15 pjrc/
16
17GPLv2 or GPLv3 or OBJECTIVE DEVELOPMENT's commercial license:
18 vusb/
19
20
21
22
23This software includes following codes from other parties.
24 - V-USB from OBJECTIVE DEVELOPMENT
25 http://www.obdev.at/products/vusb/index.html
26 - Teensy example codes from PJRC
27 http://www.pjrc.com/teensy/
diff --git a/bootloader.c b/common/bootloader.c
index 5cbfc72e5..5cbfc72e5 100644
--- a/bootloader.c
+++ b/common/bootloader.c
diff --git a/bootloader.h b/common/bootloader.h
index 44775039d..44775039d 100644
--- a/bootloader.h
+++ b/common/bootloader.h
diff --git a/command.c b/common/command.c
index e325a5d84..e325a5d84 100644
--- a/command.c
+++ b/common/command.c
diff --git a/command.h b/common/command.h
index 4888f5ee0..4888f5ee0 100644
--- a/command.h
+++ b/common/command.h
diff --git a/controller_teensy.h b/common/controller_teensy.h
index 6c3f47ce4..6c3f47ce4 100644
--- a/controller_teensy.h
+++ b/common/controller_teensy.h
diff --git a/debug.h b/common/debug.h
index 230d3b349..230d3b349 100644
--- a/debug.h
+++ b/common/debug.h
diff --git a/host.c b/common/host.c
index cc26d55c2..cc26d55c2 100644
--- a/host.c
+++ b/common/host.c
diff --git a/host.h b/common/host.h
index 11b9aacd7..11b9aacd7 100644
--- a/host.h
+++ b/common/host.h
diff --git a/host_driver.h b/common/host_driver.h
index edb9e5dd9..edb9e5dd9 100644
--- a/host_driver.h
+++ b/common/host_driver.h
diff --git a/keyboard.c b/common/keyboard.c
index 5c2643c95..5c2643c95 100644
--- a/keyboard.c
+++ b/common/keyboard.c
diff --git a/keyboard.h b/common/keyboard.h
index 988dac36e..988dac36e 100644
--- a/keyboard.h
+++ b/common/keyboard.h
diff --git a/keymap.h b/common/keymap.h
index 7dfd6c2a1..7dfd6c2a1 100644
--- a/keymap.h
+++ b/common/keymap.h
diff --git a/layer.c b/common/layer.c
index 0854eede0..0854eede0 100644
--- a/layer.c
+++ b/common/layer.c
diff --git a/layer.h b/common/layer.h
index d9e8cebb8..d9e8cebb8 100644
--- a/layer.h
+++ b/common/layer.h
diff --git a/led.h b/common/led.h
index 402a247b9..402a247b9 100644
--- a/led.h
+++ b/common/led.h
diff --git a/matrix.h b/common/matrix.h
index c4b2cab51..c4b2cab51 100644
--- a/matrix.h
+++ b/common/matrix.h
diff --git a/mousekey.c b/common/mousekey.c
index 76bd0fd36..76bd0fd36 100755
--- a/mousekey.c
+++ b/common/mousekey.c
diff --git a/mousekey.h b/common/mousekey.h
index c2c24e9fa..c2c24e9fa 100644
--- a/mousekey.h
+++ b/common/mousekey.h
diff --git a/print.c b/common/print.c
index 558181ea7..558181ea7 100644
--- a/print.c
+++ b/common/print.c
diff --git a/print.h b/common/print.h
index 686fa89ac..686fa89ac 100644
--- a/print.h
+++ b/common/print.h
diff --git a/report.h b/common/report.h
index b85b86c5f..b85b86c5f 100644
--- a/report.h
+++ b/common/report.h
diff --git a/sendchar.h b/common/sendchar.h
index 7c81303c7..7c81303c7 100644
--- a/sendchar.h
+++ b/common/sendchar.h
diff --git a/sendchar_null.c b/common/sendchar_null.c
index 293330622..293330622 100644
--- a/sendchar_null.c
+++ b/common/sendchar_null.c
diff --git a/sendchar_uart.c b/common/sendchar_uart.c
index 0241859eb..0241859eb 100644
--- a/sendchar_uart.c
+++ b/common/sendchar_uart.c
diff --git a/timer.c b/common/timer.c
index 48a38c9b6..48a38c9b6 100644
--- a/timer.c
+++ b/common/timer.c
diff --git a/timer.h b/common/timer.h
index f9e8181e6..f9e8181e6 100644
--- a/timer.h
+++ b/common/timer.h
diff --git a/uart.c b/common/uart.c
index c17649b08..c17649b08 100644
--- a/uart.c
+++ b/common/uart.c
diff --git a/uart.h b/common/uart.h
index 41136a396..41136a396 100644
--- a/uart.h
+++ b/common/uart.h
diff --git a/usb_keycodes.h b/common/usb_keycodes.h
index 9b6cce153..9b6cce153 100644
--- a/usb_keycodes.h
+++ b/common/usb_keycodes.h
diff --git a/util.c b/common/util.c
index 36afdd447..36afdd447 100644
--- a/util.c
+++ b/common/util.c
diff --git a/util.h b/common/util.h
index 66bccbfa5..66bccbfa5 100644
--- a/util.h
+++ b/common/util.h
diff --git a/COPYING.GPLv2 b/doc/COPYING.GPLv2
index d159169d1..d159169d1 100644
--- a/COPYING.GPLv2
+++ b/doc/COPYING.GPLv2
diff --git a/COPYING.GPLv3 b/doc/COPYING.GPLv3
index 94a9ed024..94a9ed024 100644
--- a/COPYING.GPLv3
+++ b/doc/COPYING.GPLv3
diff --git a/hhkb/FUSE.txt b/doc/FUSE.txt
index 40055e5ab..40055e5ab 100644
--- a/hhkb/FUSE.txt
+++ b/doc/FUSE.txt
diff --git a/POWER.txt b/doc/POWER.txt
index 0abbbe48e..0abbbe48e 100644
--- a/POWER.txt
+++ b/doc/POWER.txt
diff --git a/USB_NKRO.txt b/doc/USB_NKRO.txt
index 4751bca86..4751bca86 100644
--- a/USB_NKRO.txt
+++ b/doc/USB_NKRO.txt
diff --git a/pjrc/host.c b/pjrc/host.c
deleted file mode 100644
index fcf71d579..000000000
--- a/pjrc/host.c
+++ /dev/null
@@ -1,183 +0,0 @@
1/*
2Copyright 2011 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include <stdint.h>
19#include <avr/interrupt.h>
20#include "usb_keycodes.h"
21#include "usb_keyboard.h"
22#if defined(MOUSEKEY_ENABLE) || defined(PS2_MOUSE_ENABLE)
23#include "usb_mouse.h"
24#endif
25#ifdef EXTRAKEY_ENABLE
26#include "usb_extra.h"
27#endif
28#include "debug.h"
29#include "host.h"
30#include "util.h"
31
32
33#ifdef NKRO_ENABLE
34bool keyboard_nkro = false;
35#endif
36
37static report_keyboard_t report0;
38static report_keyboard_t report1;
39report_keyboard_t *keyboard_report = &report0;
40report_keyboard_t *keyboard_report_prev = &report1;
41
42static inline void add_key_byte(uint8_t code);
43static inline void add_key_bit(uint8_t code);
44
45
46uint8_t host_keyboard_leds(void)
47{
48 return usb_keyboard_leds;
49}
50
51/* keyboard report operations */
52void host_add_key(uint8_t key)
53{
54#ifdef NKRO_ENABLE
55 if (keyboard_nkro) {
56 add_key_bit(key);
57 return;
58 }
59#endif
60 add_key_byte(key);
61}
62
63void host_add_mod_bit(uint8_t mod)
64{
65 keyboard_report->mods |= mod;
66}
67
68void host_set_mods(uint8_t mods)
69{
70 keyboard_report->mods = mods;
71}
72
73void host_add_code(uint8_t code)
74{
75 if (IS_MOD(code)) {
76 host_add_mod_bit(MOD_BIT(code));
77 } else {
78 host_add_key(code);
79 }
80}
81
82void host_swap_keyboard_report(void)
83{
84 uint8_t sreg = SREG;
85 cli();
86 report_keyboard_t *tmp = keyboard_report_prev;
87 keyboard_report_prev = keyboard_report;
88 keyboard_report = tmp;
89 SREG = sreg;
90}
91
92void host_clear_keyboard_report(void)
93{
94 keyboard_report->mods = 0;
95 for (int8_t i = 0; i < REPORT_KEYS; i++) {
96 keyboard_report->keys[i] = 0;
97 }
98}
99
100uint8_t host_has_anykey(void)
101{
102 uint8_t cnt = 0;
103 for (int i = 0; i < REPORT_KEYS; i++) {
104 if (keyboard_report->keys[i])
105 cnt++;
106 }
107 return cnt;
108}
109
110uint8_t host_get_first_key(void)
111{
112#ifdef NKRO_ENABLE
113 if (keyboard_nkro) {
114 uint8_t i = 0;
115 for (; i < REPORT_KEYS && !keyboard_report->keys[i]; i++)
116 ;
117 return i<<3 | biton(keyboard_report->keys[i]);
118 }
119#endif
120 return keyboard_report->keys[0];
121}
122
123
124void host_send_keyboard_report(void)
125{
126 usb_keyboard_send_report(keyboard_report);
127}
128
129#if defined(MOUSEKEY_ENABLE) || defined(PS2_MOUSE_ENABLE)
130void host_mouse_send(report_mouse_t *report)
131{
132 usb_mouse_send(report->x, report->y, report->v, report->h, report->buttons);
133}
134#endif
135
136#ifdef EXTRAKEY_ENABLE
137void host_system_send(uint16_t data)
138{
139 usb_extra_system_send(data);
140}
141
142void host_consumer_send(uint16_t data)
143{
144 static uint16_t last_data = 0;
145 if (data == last_data) return;
146 last_data = data;
147
148 usb_extra_consumer_send(data);
149}
150#endif
151
152
153static inline void add_key_byte(uint8_t code)
154{
155 // TODO: fix ugly code
156 int8_t i = 0;
157 int8_t empty = -1;
158 for (; i < REPORT_KEYS; i++) {
159 if (keyboard_report_prev->keys[i] == code) {
160 keyboard_report->keys[i] = code;
161 break;
162 }
163 if (empty == -1 &&
164 keyboard_report_prev->keys[i] == 0 &&
165 keyboard_report->keys[i] == 0) {
166 empty = i;
167 }
168 }
169 if (i == REPORT_KEYS) {
170 if (empty != -1) {
171 keyboard_report->keys[empty] = code;
172 }
173 }
174}
175
176static inline void add_key_bit(uint8_t code)
177{
178 if ((code>>3) < REPORT_KEYS) {
179 keyboard_report->keys[code>>3] |= 1<<(code&7);
180 } else {
181 debug("add_key_bit: can't add: "); phex(code); debug("\n");
182 }
183}
diff --git a/adb.c b/protocol/adb.c
index 116f61272..116f61272 100644
--- a/adb.c
+++ b/protocol/adb.c
diff --git a/adb.h b/protocol/adb.h
index 177f41394..177f41394 100644
--- a/adb.h
+++ b/protocol/adb.h
diff --git a/iwrap.mk b/protocol/iwrap.mk
index ea4a6e972..ea4a6e972 100644
--- a/iwrap.mk
+++ b/protocol/iwrap.mk
diff --git a/iwrap/iWRAP.txt b/protocol/iwrap/iWRAP.txt
index 2a062d9d9..2a062d9d9 100644
--- a/iwrap/iWRAP.txt
+++ b/protocol/iwrap/iWRAP.txt
diff --git a/iwrap/iwrap.c b/protocol/iwrap/iwrap.c
index 9c68761bf..9c68761bf 100644
--- a/iwrap/iwrap.c
+++ b/protocol/iwrap/iwrap.c
diff --git a/iwrap/iwrap.h b/protocol/iwrap/iwrap.h
index ffaad9395..ffaad9395 100644
--- a/iwrap/iwrap.h
+++ b/protocol/iwrap/iwrap.h
diff --git a/iwrap/main.c b/protocol/iwrap/main.c
index a552afb67..a552afb67 100644
--- a/iwrap/main.c
+++ b/protocol/iwrap/main.c
diff --git a/iwrap/suart.S b/protocol/iwrap/suart.S
index 1b0290963..1b0290963 100644
--- a/iwrap/suart.S
+++ b/protocol/iwrap/suart.S
diff --git a/iwrap/suart.h b/protocol/iwrap/suart.h
index 72725b998..72725b998 100644
--- a/iwrap/suart.h
+++ b/protocol/iwrap/suart.h
diff --git a/iwrap/wd.h b/protocol/iwrap/wd.h
index 99058f033..99058f033 100644
--- a/iwrap/wd.h
+++ b/protocol/iwrap/wd.h
diff --git a/m0110.c b/protocol/m0110.c
index a669c85a4..a669c85a4 100644
--- a/m0110.c
+++ b/protocol/m0110.c
diff --git a/m0110.h b/protocol/m0110.h
index 2b95ed34d..2b95ed34d 100644
--- a/m0110.h
+++ b/protocol/m0110.h
diff --git a/pjrc.mk b/protocol/pjrc.mk
index e13a809a1..e13a809a1 100644
--- a/pjrc.mk
+++ b/protocol/pjrc.mk
diff --git a/pjrc/bootloader_teensy.c b/protocol/pjrc/bootloader_teensy.c
index 9d34852f1..9d34852f1 100644
--- a/pjrc/bootloader_teensy.c
+++ b/protocol/pjrc/bootloader_teensy.c
diff --git a/pjrc/main.c b/protocol/pjrc/main.c
index 15f14920b..15f14920b 100644
--- a/pjrc/main.c
+++ b/protocol/pjrc/main.c
diff --git a/pjrc/pjrc.c b/protocol/pjrc/pjrc.c
index 0562a12ff..0562a12ff 100644
--- a/pjrc/pjrc.c
+++ b/protocol/pjrc/pjrc.c
diff --git a/pjrc/pjrc.h b/protocol/pjrc/pjrc.h
index 06e79626f..06e79626f 100644
--- a/pjrc/pjrc.h
+++ b/protocol/pjrc/pjrc.h
diff --git a/pjrc/usb.c b/protocol/pjrc/usb.c
index 89087218f..89087218f 100644
--- a/pjrc/usb.c
+++ b/protocol/pjrc/usb.c
diff --git a/pjrc/usb.h b/protocol/pjrc/usb.h
index 0eb58fc39..0eb58fc39 100644
--- a/pjrc/usb.h
+++ b/protocol/pjrc/usb.h
diff --git a/pjrc/usb_debug.c b/protocol/pjrc/usb_debug.c
index c1e6f6544..c1e6f6544 100644
--- a/pjrc/usb_debug.c
+++ b/protocol/pjrc/usb_debug.c
diff --git a/pjrc/usb_debug.h b/protocol/pjrc/usb_debug.h
index e70f4ca3a..e70f4ca3a 100644
--- a/pjrc/usb_debug.h
+++ b/protocol/pjrc/usb_debug.h
diff --git a/pjrc/usb_extra.c b/protocol/pjrc/usb_extra.c
index fe1f422c0..fe1f422c0 100644
--- a/pjrc/usb_extra.c
+++ b/protocol/pjrc/usb_extra.c
diff --git a/pjrc/usb_extra.h b/protocol/pjrc/usb_extra.h
index 042ac4837..042ac4837 100644
--- a/pjrc/usb_extra.h
+++ b/protocol/pjrc/usb_extra.h
diff --git a/pjrc/usb_keyboard.c b/protocol/pjrc/usb_keyboard.c
index e057c77fa..e057c77fa 100644
--- a/pjrc/usb_keyboard.c
+++ b/protocol/pjrc/usb_keyboard.c
diff --git a/pjrc/usb_keyboard.h b/protocol/pjrc/usb_keyboard.h
index c362ca3b8..c362ca3b8 100644
--- a/pjrc/usb_keyboard.h
+++ b/protocol/pjrc/usb_keyboard.h
diff --git a/pjrc/usb_mouse.c b/protocol/pjrc/usb_mouse.c
index d81db756f..d81db756f 100644
--- a/pjrc/usb_mouse.c
+++ b/protocol/pjrc/usb_mouse.c
diff --git a/pjrc/usb_mouse.h b/protocol/pjrc/usb_mouse.h
index eb3056126..eb3056126 100644
--- a/pjrc/usb_mouse.h
+++ b/protocol/pjrc/usb_mouse.h
diff --git a/ps2.c b/protocol/ps2.c
index 8a0591621..8a0591621 100644
--- a/ps2.c
+++ b/protocol/ps2.c
diff --git a/ps2.h b/protocol/ps2.h
index 834165356..834165356 100644
--- a/ps2.h
+++ b/protocol/ps2.h
diff --git a/ps2_mouse.c b/protocol/ps2_mouse.c
index f796b2b4d..f796b2b4d 100644
--- a/ps2_mouse.c
+++ b/protocol/ps2_mouse.c
diff --git a/ps2_mouse.h b/protocol/ps2_mouse.h
index 4529ce113..4529ce113 100644
--- a/ps2_mouse.h
+++ b/protocol/ps2_mouse.h
diff --git a/ps2_usart.c b/protocol/ps2_usart.c
index 7d591c650..7d591c650 100644
--- a/ps2_usart.c
+++ b/protocol/ps2_usart.c
diff --git a/vusb.mk b/protocol/vusb.mk
index 9426efb25..9426efb25 100644
--- a/vusb.mk
+++ b/protocol/vusb.mk
diff --git a/vusb/bootloader_usbasp.c b/protocol/vusb/bootloader_usbasp.c
index 6ec99cbf2..6ec99cbf2 100644
--- a/vusb/bootloader_usbasp.c
+++ b/protocol/vusb/bootloader_usbasp.c
diff --git a/vusb/main.c b/protocol/vusb/main.c
index 1bf9035b3..1bf9035b3 100644
--- a/vusb/main.c
+++ b/protocol/vusb/main.c
diff --git a/vusb/sendchar_usart.c b/protocol/vusb/sendchar_usart.c
index 8d24f87d1..8d24f87d1 100644
--- a/vusb/sendchar_usart.c
+++ b/protocol/vusb/sendchar_usart.c
diff --git a/vusb/usbdrv/Changelog.txt b/protocol/vusb/usbdrv/Changelog.txt
index 5c6354ab1..5c6354ab1 100644
--- a/vusb/usbdrv/Changelog.txt
+++ b/protocol/vusb/usbdrv/Changelog.txt
diff --git a/vusb/usbdrv/CommercialLicense.txt b/protocol/vusb/usbdrv/CommercialLicense.txt
index 11d07d9df..11d07d9df 100644
--- a/vusb/usbdrv/CommercialLicense.txt
+++ b/protocol/vusb/usbdrv/CommercialLicense.txt
diff --git a/vusb/usbdrv/License.txt b/protocol/vusb/usbdrv/License.txt
index 4460cfbae..4460cfbae 100644
--- a/vusb/usbdrv/License.txt
+++ b/protocol/vusb/usbdrv/License.txt
diff --git a/vusb/usbdrv/Readme.txt b/protocol/vusb/usbdrv/Readme.txt
index 970dc66b2..970dc66b2 100644
--- a/vusb/usbdrv/Readme.txt
+++ b/protocol/vusb/usbdrv/Readme.txt
diff --git a/vusb/usbdrv/USB-ID-FAQ.txt b/protocol/vusb/usbdrv/USB-ID-FAQ.txt
index d1de8fb61..d1de8fb61 100644
--- a/vusb/usbdrv/USB-ID-FAQ.txt
+++ b/protocol/vusb/usbdrv/USB-ID-FAQ.txt
diff --git a/vusb/usbdrv/USB-IDs-for-free.txt b/protocol/vusb/usbdrv/USB-IDs-for-free.txt
index 2f4d59ad1..2f4d59ad1 100644
--- a/vusb/usbdrv/USB-IDs-for-free.txt
+++ b/protocol/vusb/usbdrv/USB-IDs-for-free.txt
diff --git a/vusb/usbdrv/asmcommon.inc b/protocol/vusb/usbdrv/asmcommon.inc
index 07d692be3..07d692be3 100644
--- a/vusb/usbdrv/asmcommon.inc
+++ b/protocol/vusb/usbdrv/asmcommon.inc
diff --git a/vusb/usbdrv/oddebug.c b/protocol/vusb/usbdrv/oddebug.c
index 945457c1f..945457c1f 100644
--- a/vusb/usbdrv/oddebug.c
+++ b/protocol/vusb/usbdrv/oddebug.c
diff --git a/vusb/usbdrv/oddebug.h b/protocol/vusb/usbdrv/oddebug.h
index d61309daa..d61309daa 100644
--- a/vusb/usbdrv/oddebug.h
+++ b/protocol/vusb/usbdrv/oddebug.h
diff --git a/vusb/usbdrv/usbconfig-prototype.h b/protocol/vusb/usbdrv/usbconfig-prototype.h
index 847710e2a..847710e2a 100644
--- a/vusb/usbdrv/usbconfig-prototype.h
+++ b/protocol/vusb/usbdrv/usbconfig-prototype.h
diff --git a/vusb/usbdrv/usbdrv.c b/protocol/vusb/usbdrv/usbdrv.c
index 21ed554f8..21ed554f8 100644
--- a/vusb/usbdrv/usbdrv.c
+++ b/protocol/vusb/usbdrv/usbdrv.c
diff --git a/vusb/usbdrv/usbdrv.h b/protocol/vusb/usbdrv/usbdrv.h
index 3a78f307b..3a78f307b 100644
--- a/vusb/usbdrv/usbdrv.h
+++ b/protocol/vusb/usbdrv/usbdrv.h
diff --git a/vusb/usbdrv/usbdrvasm.S b/protocol/vusb/usbdrv/usbdrvasm.S
index 45fcf1831..45fcf1831 100644
--- a/vusb/usbdrv/usbdrvasm.S
+++ b/protocol/vusb/usbdrv/usbdrvasm.S
diff --git a/vusb/usbdrv/usbdrvasm.asm b/protocol/vusb/usbdrv/usbdrvasm.asm
index 9cc4e4d73..9cc4e4d73 100644
--- a/vusb/usbdrv/usbdrvasm.asm
+++ b/protocol/vusb/usbdrv/usbdrvasm.asm
diff --git a/vusb/usbdrv/usbdrvasm12.inc b/protocol/vusb/usbdrv/usbdrvasm12.inc
index c1167584c..c1167584c 100644
--- a/vusb/usbdrv/usbdrvasm12.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm12.inc
diff --git a/vusb/usbdrv/usbdrvasm128.inc b/protocol/vusb/usbdrv/usbdrvasm128.inc
index bcd6621cc..bcd6621cc 100644
--- a/vusb/usbdrv/usbdrvasm128.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm128.inc
diff --git a/vusb/usbdrv/usbdrvasm15.inc b/protocol/vusb/usbdrv/usbdrvasm15.inc
index 401b7f8ff..401b7f8ff 100644
--- a/vusb/usbdrv/usbdrvasm15.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm15.inc
diff --git a/vusb/usbdrv/usbdrvasm16.inc b/protocol/vusb/usbdrv/usbdrvasm16.inc
index 207b6e48a..207b6e48a 100644
--- a/vusb/usbdrv/usbdrvasm16.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm16.inc
diff --git a/vusb/usbdrv/usbdrvasm165.inc b/protocol/vusb/usbdrv/usbdrvasm165.inc
index 79b3c61cf..79b3c61cf 100644
--- a/vusb/usbdrv/usbdrvasm165.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm165.inc
diff --git a/vusb/usbdrv/usbdrvasm18-crc.inc b/protocol/vusb/usbdrv/usbdrvasm18-crc.inc
index f83347df7..f83347df7 100644
--- a/vusb/usbdrv/usbdrvasm18-crc.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm18-crc.inc
diff --git a/vusb/usbdrv/usbdrvasm20.inc b/protocol/vusb/usbdrv/usbdrvasm20.inc
index 303abaf64..303abaf64 100644
--- a/vusb/usbdrv/usbdrvasm20.inc
+++ b/protocol/vusb/usbdrv/usbdrvasm20.inc
diff --git a/vusb/usbdrv/usbportability.h b/protocol/vusb/usbdrv/usbportability.h
index 476184dc6..476184dc6 100644
--- a/vusb/usbdrv/usbportability.h
+++ b/protocol/vusb/usbdrv/usbportability.h
diff --git a/vusb/vusb.c b/protocol/vusb/vusb.c
index 0bfe21e92..0bfe21e92 100644
--- a/vusb/vusb.c
+++ b/protocol/vusb/vusb.c
diff --git a/vusb/vusb.h b/protocol/vusb/vusb.h
index 5accf233b..5accf233b 100644
--- a/vusb/vusb.h
+++ b/protocol/vusb/vusb.h