diff options
author | tmk <nobody@nowhere> | 2012-06-07 02:25:15 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-06-07 02:47:33 +0900 |
commit | f4125707399d11a7d80587659c464b9bcddb8c56 (patch) | |
tree | 1d2a02e30f8cd103e8f4dc36629c09f6a3d44fef | |
parent | 225de7a847a511d004bf909b1334e19497cf2f9d (diff) |
Moved files to common, protocol and doc directory
-rw-r--r-- | LICENSE.txt | 27 | ||||
-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-x | common/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.c | 183 | ||||
-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 de622df54c..0000000000 --- a/LICENSE.txt +++ /dev/null @@ -1,27 +0,0 @@ -Codes are released under each license. See heading of each file for details. - -Modified BSD license: - ps2.c - ps2.h - adb.c - adb.h - -GPLv2 or later: - other codes - -PJRC's license: - print.c - print.h - pjrc/ - -GPLv2 or GPLv3 or OBJECTIVE DEVELOPMENT's commercial license: - vusb/ - - - - -This software includes following codes from other parties. - - V-USB from OBJECTIVE DEVELOPMENT - http://www.obdev.at/products/vusb/index.html - - Teensy example codes from PJRC - http://www.pjrc.com/teensy/ diff --git a/bootloader.c b/common/bootloader.c index 5cbfc72e5b..5cbfc72e5b 100644 --- a/bootloader.c +++ b/common/bootloader.c diff --git a/bootloader.h b/common/bootloader.h index 44775039d5..44775039d5 100644 --- a/bootloader.h +++ b/common/bootloader.h diff --git a/command.c b/common/command.c index e325a5d847..e325a5d847 100644 --- a/command.c +++ b/common/command.c diff --git a/command.h b/common/command.h index 4888f5ee0b..4888f5ee0b 100644 --- a/command.h +++ b/common/command.h diff --git a/controller_teensy.h b/common/controller_teensy.h index 6c3f47ce4e..6c3f47ce4e 100644 --- a/controller_teensy.h +++ b/common/controller_teensy.h diff --git a/debug.h b/common/debug.h index 230d3b3499..230d3b3499 100644 --- a/debug.h +++ b/common/debug.h diff --git a/host.c b/common/host.c index cc26d55c22..cc26d55c22 100644 --- a/host.c +++ b/common/host.c diff --git a/host.h b/common/host.h index 11b9aacd7c..11b9aacd7c 100644 --- a/host.h +++ b/common/host.h diff --git a/host_driver.h b/common/host_driver.h index edb9e5dd9c..edb9e5dd9c 100644 --- a/host_driver.h +++ b/common/host_driver.h diff --git a/keyboard.c b/common/keyboard.c index 5c2643c951..5c2643c951 100644 --- a/keyboard.c +++ b/common/keyboard.c diff --git a/keyboard.h b/common/keyboard.h index 988dac36ed..988dac36ed 100644 --- a/keyboard.h +++ b/common/keyboard.h diff --git a/keymap.h b/common/keymap.h index 7dfd6c2a1b..7dfd6c2a1b 100644 --- a/keymap.h +++ b/common/keymap.h diff --git a/layer.c b/common/layer.c index 0854eede0d..0854eede0d 100644 --- a/layer.c +++ b/common/layer.c diff --git a/layer.h b/common/layer.h index d9e8cebb8f..d9e8cebb8f 100644 --- a/layer.h +++ b/common/layer.h diff --git a/matrix.h b/common/matrix.h index c4b2cab518..c4b2cab518 100644 --- a/matrix.h +++ b/common/matrix.h diff --git a/mousekey.c b/common/mousekey.c index 76bd0fd363..76bd0fd363 100755 --- a/mousekey.c +++ b/common/mousekey.c diff --git a/mousekey.h b/common/mousekey.h index c2c24e9fa5..c2c24e9fa5 100644 --- a/mousekey.h +++ b/common/mousekey.h diff --git a/print.c b/common/print.c index 558181ea72..558181ea72 100644 --- a/print.c +++ b/common/print.c diff --git a/print.h b/common/print.h index 686fa89acc..686fa89acc 100644 --- a/print.h +++ b/common/print.h diff --git a/report.h b/common/report.h index b85b86c5f8..b85b86c5f8 100644 --- a/report.h +++ b/common/report.h diff --git a/sendchar.h b/common/sendchar.h index 7c81303c7a..7c81303c7a 100644 --- a/sendchar.h +++ b/common/sendchar.h diff --git a/sendchar_null.c b/common/sendchar_null.c index 2933306228..2933306228 100644 --- a/sendchar_null.c +++ b/common/sendchar_null.c diff --git a/sendchar_uart.c b/common/sendchar_uart.c index 0241859eb7..0241859eb7 100644 --- a/sendchar_uart.c +++ b/common/sendchar_uart.c diff --git a/timer.c b/common/timer.c index 48a38c9b68..48a38c9b68 100644 --- a/timer.c +++ b/common/timer.c diff --git a/timer.h b/common/timer.h index f9e8181e6f..f9e8181e6f 100644 --- a/timer.h +++ b/common/timer.h diff --git a/uart.c b/common/uart.c index c17649b082..c17649b082 100644 --- a/uart.c +++ b/common/uart.c diff --git a/uart.h b/common/uart.h index 41136a396f..41136a396f 100644 --- a/uart.h +++ b/common/uart.h diff --git a/usb_keycodes.h b/common/usb_keycodes.h index 9b6cce1532..9b6cce1532 100644 --- a/usb_keycodes.h +++ b/common/usb_keycodes.h diff --git a/util.c b/common/util.c index 36afdd4470..36afdd4470 100644 --- a/util.c +++ b/common/util.c diff --git a/util.h b/common/util.h index 66bccbfa58..66bccbfa58 100644 --- a/util.h +++ b/common/util.h diff --git a/COPYING.GPLv2 b/doc/COPYING.GPLv2 index d159169d10..d159169d10 100644 --- a/COPYING.GPLv2 +++ b/doc/COPYING.GPLv2 diff --git a/COPYING.GPLv3 b/doc/COPYING.GPLv3 index 94a9ed024d..94a9ed024d 100644 --- a/COPYING.GPLv3 +++ b/doc/COPYING.GPLv3 diff --git a/hhkb/FUSE.txt b/doc/FUSE.txt index 40055e5ab1..40055e5ab1 100644 --- a/hhkb/FUSE.txt +++ b/doc/FUSE.txt diff --git a/POWER.txt b/doc/POWER.txt index 0abbbe48e8..0abbbe48e8 100644 --- a/POWER.txt +++ b/doc/POWER.txt diff --git a/USB_NKRO.txt b/doc/USB_NKRO.txt index 4751bca868..4751bca868 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 fcf71d5790..0000000000 --- a/pjrc/host.c +++ /dev/null @@ -1,183 +0,0 @@ -/* -Copyright 2011 Jun Wako <wakojun@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include <stdint.h> -#include <avr/interrupt.h> -#include "usb_keycodes.h" -#include "usb_keyboard.h" -#if defined(MOUSEKEY_ENABLE) || defined(PS2_MOUSE_ENABLE) -#include "usb_mouse.h" -#endif -#ifdef EXTRAKEY_ENABLE -#include "usb_extra.h" -#endif -#include "debug.h" -#include "host.h" -#include "util.h" - - -#ifdef NKRO_ENABLE -bool keyboard_nkro = false; -#endif - -static report_keyboard_t report0; -static report_keyboard_t report1; -report_keyboard_t *keyboard_report = &report0; -report_keyboard_t *keyboard_report_prev = &report1; - -static inline void add_key_byte(uint8_t code); -static inline void add_key_bit(uint8_t code); - - -uint8_t host_keyboard_leds(void) -{ - return usb_keyboard_leds; -} - -/* keyboard report operations */ -void host_add_key(uint8_t key) -{ -#ifdef NKRO_ENABLE - if (keyboard_nkro) { - add_key_bit(key); - return; - } -#endif - add_key_byte(key); -} - -void host_add_mod_bit(uint8_t mod) -{ - keyboard_report->mods |= mod; -} - -void host_set_mods(uint8_t mods) -{ - keyboard_report->mods = mods; -} - -void host_add_code(uint8_t code) -{ - if (IS_MOD(code)) { - host_add_mod_bit(MOD_BIT(code)); |