diff options
-rw-r--r-- | docs/config_options.md | 2 | ||||
-rw-r--r-- | docs/es/hardware_avr.md | 3 | ||||
-rw-r--r-- | docs/hardware_avr.md | 3 | ||||
-rw-r--r-- | docs/ja/config_options.md | 2 | ||||
-rw-r--r-- | docs/ja/hardware_avr.md | 3 | ||||
-rw-r--r-- | lib/python/qmk/info.py | 1 | ||||
-rw-r--r-- | quantum/template/avr/config.h | 1 | ||||
-rw-r--r-- | quantum/template/ps2avrgb/config.h | 1 | ||||
-rw-r--r-- | tmk_core/common/command.c | 1 | ||||
-rw-r--r-- | tmk_core/protocol/usb_hid/test/Makefile | 126 | ||||
-rw-r--r-- | tmk_core/protocol/usb_hid/test/config.h | 30 | ||||
-rw-r--r-- | tmk_core/protocol/usb_hid/test/test.cpp | 92 | ||||
-rw-r--r-- | tmk_core/readme.md | 1 |
13 files changed, 3 insertions, 263 deletions
diff --git a/docs/config_options.md b/docs/config_options.md index 21c9972e0..81a3b4b61 100644 --- a/docs/config_options.md +++ b/docs/config_options.md | |||
@@ -43,8 +43,6 @@ This is a C header file that is one of the first things included, and will persi | |||
43 | * generally who/whatever brand produced the board | 43 | * generally who/whatever brand produced the board |
44 | * `#define PRODUCT Board` | 44 | * `#define PRODUCT Board` |
45 | * the name of the keyboard | 45 | * the name of the keyboard |
46 | * `#define DESCRIPTION a keyboard` | ||
47 | * a short description of what the keyboard is | ||
48 | * `#define MATRIX_ROWS 5` | 46 | * `#define MATRIX_ROWS 5` |
49 | * the number of rows in your keyboard's matrix | 47 | * the number of rows in your keyboard's matrix |
50 | * `#define MATRIX_COLS 15` | 48 | * `#define MATRIX_COLS 15` |
diff --git a/docs/es/hardware_avr.md b/docs/es/hardware_avr.md index 4236292a1..2ecf78d66 100644 --- a/docs/es/hardware_avr.md +++ b/docs/es/hardware_avr.md | |||
@@ -67,7 +67,7 @@ El archivo `config.h` es donde configuras el hardware y el conjunto de caracterà | |||
67 | 67 | ||
68 | En la parte superior de `config.h` encontrarás ajustes relacionados con USB. Estos controlan la apariencia de tu teclado en el Sistema Operativo. Si no tienes una buena razón para cambiar debes dejar el `VENDOR_ID` como `0xFEED`. Para el `PRODUCT_ID` debes seleccionar un número que todavÃa no esté en uso. | 68 | En la parte superior de `config.h` encontrarás ajustes relacionados con USB. Estos controlan la apariencia de tu teclado en el Sistema Operativo. Si no tienes una buena razón para cambiar debes dejar el `VENDOR_ID` como `0xFEED`. Para el `PRODUCT_ID` debes seleccionar un número que todavÃa no esté en uso. |
69 | 69 | ||
70 | Cambia las lÃneas de `MANUFACTURER`, `PRODUCT`, y `DESCRIPTION` para reflejar con precisión tu teclado. | 70 | Cambia las lÃneas de `MANUFACTURER` y `PRODUCT` para reflejar con precisión tu teclado. |
71 | 71 | ||
72 | ```c | 72 | ```c |
73 | #define VENDOR_ID 0xFEED | 73 | #define VENDOR_ID 0xFEED |
@@ -75,7 +75,6 @@ Cambia las lÃneas de `MANUFACTURER`, `PRODUCT`, y `DESCRIPTION` para reflejar c | |||
75 | #define DEVICE_VER 0x0001 | 75 | #define DEVICE_VER 0x0001 |
76 | #define MANUFACTURER Tú | 76 | #define MANUFACTURER Tú |
77 | #define PRODUCT mi_teclado_fantastico | 77 | #define PRODUCT mi_teclado_fantastico |
78 | #define DESCRIPTION Un teclado personalizado | ||
79 | ``` | 78 | ``` |
80 | 79 | ||
81 | ?> Windows y macOS mostrarán el `MANUFACTURER` y `PRODUCT` en la lista de dispositivos USB. `lsusb` en Linux toma estos de la lista mantenida por el [Repositorio de ID USB](http://www.linux-usb.org/usb-ids.html) por defecto. `lsusb -v` mostrará los valores reportados por el dispositivo, y también están presentes en los registros del núcleo después de conectarlo. | 80 | ?> Windows y macOS mostrarán el `MANUFACTURER` y `PRODUCT` en la lista de dispositivos USB. `lsusb` en Linux toma estos de la lista mantenida por el [Repositorio de ID USB](http://www.linux-usb.org/usb-ids.html) por defecto. `lsusb -v` mostrará los valores reportados por el dispositivo, y también están presentes en los registros del núcleo después de conectarlo. |
diff --git a/docs/hardware_avr.md b/docs/hardware_avr.md index 697c55d2a..2c0f2e9a1 100644 --- a/docs/hardware_avr.md +++ b/docs/hardware_avr.md | |||
@@ -67,7 +67,7 @@ The `config.h` file is where you configure the hardware and feature set for your | |||
67 | 67 | ||
68 | At the top of the `config.h` you'll find USB related settings. These control how your keyboard appears to the Operating System. If you don't have a good reason to change you should leave the `VENDOR_ID` as `0xFEED`. For the `PRODUCT_ID` you should pick a number that is not yet in use. | 68 | At the top of the `config.h` you'll find USB related settings. These control how your keyboard appears to the Operating System. If you don't have a good reason to change you should leave the `VENDOR_ID` as `0xFEED`. For the `PRODUCT_ID` you should pick a number that is not yet in use. |
69 | 69 | ||
70 | Do change the `MANUFACTURER`, `PRODUCT`, and `DESCRIPTION` lines to accurately reflect your keyboard. | 70 | Do change the `MANUFACTURER` and `PRODUCT` lines to accurately reflect your keyboard. |
71 | 71 | ||
72 | ```c | 72 | ```c |
73 | #define VENDOR_ID 0xFEED | 73 | #define VENDOR_ID 0xFEED |
@@ -75,7 +75,6 @@ Do change the `MANUFACTURER`, `PRODUCT`, and `DESCRIPTION` lines to accurately r | |||
75 | #define DEVICE_VER 0x0001 | 75 | #define DEVICE_VER 0x0001 |
76 | #define MANUFACTURER You | 76 | #define MANUFACTURER You |
77 | #define PRODUCT my_awesome_keyboard | 77 | #define PRODUCT my_awesome_keyboard |
78 | #define DESCRIPTION A custom keyboard | ||
79 | ``` | 78 | ``` |
80 | 79 | ||
81 | ?> Windows and macOS will display the `MANUFACTURER` and `PRODUCT` in the list of USB devices. `lsusb` on Linux instead takes these from the list maintained by the [USB ID Repository](http://www.linux-usb.org/usb-ids.html) by default. `lsusb -v` will show the values reported by the device, and they are also present in kernel logs after plugging it in. | 80 | ?> Windows and macOS will display the `MANUFACTURER` and `PRODUCT` in the list of USB devices. `lsusb` on Linux instead takes these from the list maintained by the [USB ID Repository](http://www.linux-usb.org/usb-ids.html) by default. `lsusb -v` will show the values reported by the device, and they are also present in kernel logs after plugging it in. |
diff --git a/docs/ja/config_options.md b/docs/ja/config_options.md index 9e0dd7147..55ee2cfbe 100644 --- a/docs/ja/config_options.md +++ b/docs/ja/config_options.md | |||
@@ -48,8 +48,6 @@ QMK ã§ã®å…¨ã¦ã®åˆ©ç”¨å¯èƒ½ãªè¨å®šã«ã¯ãƒ‡ãƒ•ォルトãŒã‚りã¾ã™ã€‚ã | |||
48 | * 一般的ã«ã€èª°ã‚‚ã—ãã¯ã©ã®ãƒ–ランドãŒãƒœãƒ¼ãƒ‰ã‚’作æˆã—ãŸã‹ | 48 | * 一般的ã«ã€èª°ã‚‚ã—ãã¯ã©ã®ãƒ–ランドãŒãƒœãƒ¼ãƒ‰ã‚’作æˆã—ãŸã‹ |
49 | * `#define PRODUCT Board` | 49 | * `#define PRODUCT Board` |
50 | * ã‚ーボードã®åå‰ | 50 | * ã‚ーボードã®åå‰ |
51 | * `#define DESCRIPTION a keyboard` | ||
52 | * ã‚ーボードã®ç°¡å˜ãªèª¬æ˜Ž | ||
53 | * `#define MATRIX_ROWS 5` | 51 | * `#define MATRIX_ROWS 5` |
54 | * ã‚ーボードã®ãƒžãƒˆãƒªãƒƒã‚¯ã‚¹ã®è¡Œã®æ•° | 52 | * ã‚ーボードã®ãƒžãƒˆãƒªãƒƒã‚¯ã‚¹ã®è¡Œã®æ•° |
55 | * `#define MATRIX_COLS 15` | 53 | * `#define MATRIX_COLS 15` |
diff --git a/docs/ja/hardware_avr.md b/docs/ja/hardware_avr.md index fecbfd71f..0cba943c1 100644 --- a/docs/ja/hardware_avr.md +++ b/docs/ja/hardware_avr.md | |||
@@ -73,7 +73,7 @@ or open the directory in your favourite text editor. | |||
73 | 73 | ||
74 | `config.h` ã®å…ˆé ã«ã¯ USB ã«é–¢ã™ã‚‹è¨å®šãŒã‚りã¾ã™ã€‚ã“れらã¯ã‚ーボード㌠OS ã‹ã‚‰ã©ã®ã‚ˆã†ã«è¦‹ãˆã‚‹ã‹ã‚’制御ã—ã¦ã„ã¾ã™ã€‚変更ã™ã‚‹ç†ç”±ãŒãªã„å ´åˆã¯ã€`VENDOR_ID` ã‚’ `0xFEED` ã®ã¾ã¾ã«ã—ã¦ãŠãå¿…è¦ãŒã‚りã¾ã™ã€‚`PRODUCT_ID` ã«ã¯ã¾ã 使用ã•れã¦ã„ãªã„番å·ã‚’é¸ã°ãªã‘れã°ã„ã‘ã¾ã›ã‚“。 | 74 | `config.h` ã®å…ˆé ã«ã¯ USB ã«é–¢ã™ã‚‹è¨å®šãŒã‚りã¾ã™ã€‚ã“れらã¯ã‚ーボード㌠OS ã‹ã‚‰ã©ã®ã‚ˆã†ã«è¦‹ãˆã‚‹ã‹ã‚’制御ã—ã¦ã„ã¾ã™ã€‚変更ã™ã‚‹ç†ç”±ãŒãªã„å ´åˆã¯ã€`VENDOR_ID` ã‚’ `0xFEED` ã®ã¾ã¾ã«ã—ã¦ãŠãå¿…è¦ãŒã‚りã¾ã™ã€‚`PRODUCT_ID` ã«ã¯ã¾ã 使用ã•れã¦ã„ãªã„番å·ã‚’é¸ã°ãªã‘れã°ã„ã‘ã¾ã›ã‚“。 |
75 | 75 | ||
76 | `MANUFACTURER`〠`PRODUCT`〠`DESCRIPTION` ã‚’ã‚ーボードã«ã‚ã£ãŸè¨å®šã«å¤‰æ›´ã—ã¾ã™ã€‚ | 76 | `MANUFACTURER`〠`PRODUCT` ã‚’ã‚ーボードã«ã‚ã£ãŸè¨å®šã«å¤‰æ›´ã—ã¾ã™ã€‚ |
77 | 77 | ||
78 | ```c | 78 | ```c |
79 | #define VENDOR_ID 0xFEED | 79 | #define VENDOR_ID 0xFEED |
@@ -81,7 +81,6 @@ or open the directory in your favourite text editor. | |||
81 | #define DEVICE_VER 0x0001 | 81 | #define DEVICE_VER 0x0001 |
82 | #define MANUFACTURER You | 82 | #define MANUFACTURER You |
83 | #define PRODUCT my_awesome_keyboard | 83 | #define PRODUCT my_awesome_keyboard |
84 | #define DESCRIPTION A custom keyboard | ||
85 | ``` | 84 | ``` |
86 | 85 | ||
87 | ?> Windows ã‚„ macOS ã§ã¯ã€`MANUFACTURER` 㨠`PRODUCT` ㌠USBデãƒã‚¤ã‚¹ã®ãƒªã‚¹ãƒˆã«è¡¨ç¤ºã•れã¾ã™ã€‚Linux 上㮠`lsusb` ã§ã¯ã€ä»£ã‚りã«ãƒ‡ãƒ•ォルト㧠[USB ID Repository](http://www.linux-usb.org/usb-ids.html) ã«ã‚ˆã£ã¦ç¶æŒã•れã¦ã„るリストã‹ã‚‰ã“れらをå–å¾—ã—ã¾ã™ã€‚`lsusb -v` を使用ã™ã‚‹ã¨ãƒ‡ãƒã‚¤ã‚¹ã‹ã‚‰ç¤ºã•れãŸå€¤ã‚’表示ã—ã¾ã™ã€‚ã¾ãŸã€æŽ¥ç¶šã—ãŸã¨ãã®ã‚«ãƒ¼ãƒãƒ«ãƒã‚°ã«ã‚‚表示ã•れã¾ã™ã€‚ | 86 | ?> Windows ã‚„ macOS ã§ã¯ã€`MANUFACTURER` 㨠`PRODUCT` ㌠USBデãƒã‚¤ã‚¹ã®ãƒªã‚¹ãƒˆã«è¡¨ç¤ºã•れã¾ã™ã€‚Linux 上㮠`lsusb` ã§ã¯ã€ä»£ã‚りã«ãƒ‡ãƒ•ォルト㧠[USB ID Repository](http://www.linux-usb.org/usb-ids.html) ã«ã‚ˆã£ã¦ç¶æŒã•れã¦ã„るリストã‹ã‚‰ã“れらをå–å¾—ã—ã¾ã™ã€‚`lsusb -v` を使用ã™ã‚‹ã¨ãƒ‡ãƒã‚¤ã‚¹ã‹ã‚‰ç¤ºã•れãŸå€¤ã‚’表示ã—ã¾ã™ã€‚ã¾ãŸã€æŽ¥ç¶šã—ãŸã¨ãã®ã‚«ãƒ¼ãƒãƒ«ãƒã‚°ã«ã‚‚表示ã•れã¾ã™ã€‚ |
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index e1ace5d51..de7632e37 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py | |||
@@ -77,7 +77,6 @@ def _extract_config_h(info_data): | |||
77 | 'device_ver': config_c.get('DEVICE_VER'), | 77 | 'device_ver': config_c.get('DEVICE_VER'), |
78 | 'manufacturer': config_c.get('MANUFACTURER'), | 78 | 'manufacturer': config_c.get('MANUFACTURER'), |
79 | 'product': config_c.get('PRODUCT'), | 79 | 'product': config_c.get('PRODUCT'), |
80 | 'description': config_c.get('DESCRIPTION'), | ||
81 | } | 80 | } |
82 | 81 | ||
83 | return info_data | 82 | return info_data |
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index 8b0961f24..5f0bc7363 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h | |||
@@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
26 | #define MANUFACTURER %YOUR_NAME% | 26 | #define MANUFACTURER %YOUR_NAME% |
27 | #define PRODUCT %KEYBOARD% | 27 | #define PRODUCT %KEYBOARD% |
28 | #define DESCRIPTION A custom keyboard | ||
29 | 28 | ||
30 | /* key matrix size */ | 29 | /* key matrix size */ |
31 | #define MATRIX_ROWS 2 | 30 | #define MATRIX_ROWS 2 |
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h index 126afbcbd..ef065c0f1 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/quantum/template/ps2avrgb/config.h | |||
@@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
26 | #define MANUFACTURER %YOUR_NAME% | 26 | #define MANUFACTURER %YOUR_NAME% |
27 | #define PRODUCT %KEYBOARD% | 27 | #define PRODUCT %KEYBOARD% |
28 | #define DESCRIPTION A custom keyboard | ||
29 | 28 | ||
30 | /* key matrix size */ | 29 | /* key matrix size */ |
31 | #define MATRIX_ROWS 8 | 30 | #define MATRIX_ROWS 8 |
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 3cfcba305..ef6a39c0f 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c | |||
@@ -141,7 +141,6 @@ static void command_common_help(void) { | |||
141 | static void print_version(void) { | 141 | static void print_version(void) { |
142 | // print version & information | 142 | // print version & information |
143 | print("\n\t- Version -\n"); | 143 | print("\n\t- Version -\n"); |
144 | print("DESC: " STR(DESCRIPTION) "\n"); | ||
145 | print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") " | 144 | print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") " |
146 | "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") " | 145 | "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") " |
147 | "VER: " STR(DEVICE_VER) "\n"); | 146 | "VER: " STR(DEVICE_VER) "\n"); |
diff --git a/tmk_core/protocol/usb_hid/test/Makefile b/tmk_core/protocol/usb_hid/test/Makefile deleted file mode 100644 index 83bf2aed6..000000000 --- a/tmk_core/protocol/usb_hid/test/Makefile +++ /dev/null | |||
@@ -1,126 +0,0 @@ | |||
1 | #---------------------------------------------------------------------------- | ||
2 | # On command line: | ||
3 | # | ||
4 | # make all = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # make coff = Convert ELF to AVR COFF. | ||
9 | # | ||
10 | # make extcoff = Convert ELF to AVR Extended COFF. | ||
11 | # | ||
12 | # make program = Download the hex file to the device. | ||
13 | # Please customize your programmer settings(PROGRAM_CMD) | ||
14 | # | ||
15 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
16 | # (must have teensy_loader_cli installed). | ||
17 | # | ||
18 | # make dfu = Download the hex file to the device, using dfu-programmer (must | ||
19 | # have dfu-programmer installed). | ||
20 | # | ||
21 | # make flip = Download the hex file to the device, using Atmel FLIP (must | ||
22 | # have Atmel FLIP installed). | ||
23 | # | ||
24 | # make dfu-ee = Download the eeprom file to the device, using dfu-programmer | ||
25 | # (must have dfu-programmer installed). | ||
26 | # | ||
27 | # make flip-ee = Download the eeprom file to the device, using Atmel FLIP | ||
28 | # (must have Atmel FLIP installed). | ||
29 | # | ||
30 | # make debug = Start either simulavr or avarice as specified for debugging, | ||
31 | # with avr-gdb or avr-insight as the front end for debugging. | ||
32 | # | ||
33 | # make filename.s = Just compile filename.c into the assembler code only. | ||
34 | # | ||
35 | # make filename.i = Create a preprocessed source file for use in submitting | ||
36 | # bug reports to the GCC project. | ||
37 | # | ||
38 | # To rebuild project do "make clean" then "make all". | ||
39 | #---------------------------------------------------------------------------- | ||
40 | |||
41 | # Target file name (without extension). | ||
42 | TARGET = usb_hid_test | ||
43 | |||
44 | TMK_DIR = ../../.. | ||
45 | |||
46 | # Directory keyboard dependent files exist | ||
47 | TARGET_DIR = . | ||
48 | |||
49 | # MCU name | ||
50 | MCU = atmega32u4 | ||
51 | |||
52 | |||
53 | # Processor frequency. | ||
54 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
55 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
56 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
57 | # automatically to create a 32-bit value in your source code. | ||
58 | # | ||
59 | # This will be an integer division of F_USB below, as it is sourced by | ||
60 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
61 | # does not *change* the processor frequency - it should merely be updated to | ||
62 | # reflect the processor speed set externally so that the code can use accurate | ||
63 | # software delays. | ||
64 | F_CPU = 16000000 | ||
65 | |||
66 | |||
67 | |||
68 | # | ||
69 | # LUFA specific | ||
70 | # | ||
71 | # Target architecture (see library "Board Types" documentation). | ||
72 | ARCH = AVR8 | ||
73 | # Input clock frequency. | ||
74 | # This will define a symbol, F_USB, in all source code files equal to the | ||
75 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
76 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
77 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
78 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
79 | # at the end, this will be done automatically to create a 32-bit value in your | ||
80 | # source code. | ||
81 | # | ||
82 | # If no clock division is performed on the input clock inside the AVR (via the | ||
83 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
84 | F_USB = $(F_CPU) | ||
85 | # Interrupt driven control endpoint task | ||
86 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
87 | |||
88 | |||
89 | |||
90 | # Build Options | ||
91 | # comment out to disable the options. | ||
92 | # | ||
93 | # Console for debug | ||
94 | OPT_DEFS += -DCONSOLE_ENABLE | ||
95 | |||
96 | # Boot Section Size in bytes | ||
97 | # Teensy halfKay 512 | ||
98 | # Atmel DFU loader 4096 | ||
99 | # LUFA bootloader 4096 | ||
100 | #OPT_DEFS += -DBOOT_SIZE=4096 | ||
101 | |||
102 | |||
103 | |||
104 | SRC = test.cpp | ||
105 | SRC += common/debug.c | ||
106 | SRC += common/print.c | ||
107 | |||
108 | CONFIG_H = config.h | ||
109 | |||
110 | |||
111 | |||
112 | # Search Path | ||
113 | VPATH += $(TARGET_DIR) | ||
114 | VPATH += $(TMK_DIR) | ||
115 | VPATH += $(TMK_DIR)/common | ||
116 | |||
117 | |||
118 | |||
119 | # program Leonardo | ||
120 | PROGRAM_CMD = avrdude -p$(MCU) -cavr109 -P$(DEV) -b57600 -Uflash:w:$(TARGET).hex | ||
121 | |||
122 | |||
123 | |||
124 | include $(TMK_DIR)/protocol/usb_hid.mk | ||
125 | include $(TMK_DIR)/protocol/lufa.mk | ||
126 | include $(TMK_DIR)/rules.mk | ||
diff --git a/tmk_core/protocol/usb_hid/test/config.h b/tmk_core/protocol/usb_hid/test/config.h deleted file mode 100644 index 71a6814fd..000000000 --- a/tmk_core/protocol/usb_hid/test/config.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #define VENDOR_ID 0xFEED | ||
21 | #define PRODUCT_ID 0xCAFE | ||
22 | #define DEVICE_VER 0x0814 | ||
23 | #define MANUFACTURER t.m.k. | ||
24 | #define PRODUCT USB to USB keyboard converter | ||
25 | |||
26 | #define DESCRIPTION Product from t.m.k. keyboard firmware project | ||
27 | |||
28 | /* matrix size */ | ||
29 | #define MATRIX_ROWS 32 | ||
30 | #define MATRIX_COLS 8 | ||
diff --git a/tmk_core/protocol/usb_hid/test/test.cpp b/tmk_core/protocol/usb_hid/test/test.cpp deleted file mode 100644 index 4958f0c61..000000000 --- a/tmk_core/protocol/usb_hid/test/test.cpp +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | #include <avr/io.h> | ||
2 | #include <avr/wdt.h> | ||
3 | #include <avr/power.h> | ||
4 | #include <util/delay.h> | ||
5 | #include <Arduino.h> | ||
6 | |||
7 | // USB HID host | ||
8 | #include "Usb.h" | ||
9 | #include "hid.h" | ||
10 | #include "hidboot.h" | ||
11 | #include "parser.h" | ||
12 | |||
13 | // LUFA | ||
14 | #include "lufa.h" | ||
15 | |||
16 | #include "debug.h" | ||
17 | |||
18 | #include "leonardo_led.h" | ||
19 | |||
20 | |||
21 | static USB usb_host; | ||
22 | static HIDBoot<HID_PROTOCOL_KEYBOARD> kbd(&usb_host); | ||
23 | static KBDReportParser kbd_parser; | ||
24 | |||
25 | static void LUFA_setup(void) | ||
26 | { | ||
27 | /* Disable watchdog if enabled by bootloader/fuses */ | ||
28 | MCUSR &= ~(1 << WDRF); | ||
29 | wdt_disable(); | ||
30 | |||
31 | /* Disable clock division */ | ||
32 | clock_prescale_set(clock_div_1); | ||
33 | |||
34 | // Leonardo needs. Without this USB device is not recognized. | ||
35 | USB_Disable(); | ||
36 | |||
37 | USB_Init(); | ||
38 | |||
39 | // for Console_Task | ||
40 | USB_Device_EnableSOFEvents(); | ||
41 | } | ||
42 | |||
43 | static void HID_setup() | ||
44 | { | ||
45 | // Arduino Timer startup: wiring.c | ||
46 | init(); | ||
47 | |||
48 | if (usb_host.Init() == -1) { | ||
49 | debug("HID init: failed\n"); | ||
50 | LED_TX_OFF; | ||
51 | } | ||
52 | |||
53 | _delay_ms(200); | ||
54 | |||
55 | kbd.SetReportParser(0, (HIDReportParser*)&kbd_parser); | ||
56 | } | ||
57 | |||
58 | int main(void) | ||
59 | { | ||
60 | // LED for debug | ||
61 | LED_TX_INIT; | ||
62 | LED_TX_ON; | ||
63 | |||
64 | print_enable = true; | ||
65 | debug_enable = true; | ||
66 | debug_matrix = true; | ||
67 | debug_keyboard = true; | ||
68 | debug_mouse = true; | ||
69 | |||
70 | LUFA_setup(); | ||
71 | sei(); | ||
72 | |||
73 | // wait for startup of sendchar routine | ||
74 | while (USB_DeviceState != DEVICE_STATE_Configured) ; | ||
75 | if (debug_enable) { | ||
76 | _delay_ms(1000); | ||
77 | } | ||
78 | |||
79 | HID_setup(); | ||
80 | |||
81 | debug("init: done\n"); | ||
82 | for (;;) { | ||
83 | usb_host.Task(); | ||
84 | |||
85 | #if !defined(INTERRUPT_CONTROL_ENDPOINT) | ||
86 | // LUFA Task for control request | ||
87 | USB_USBTask(); | ||
88 | #endif | ||
89 | } | ||
90 | |||
91 | return 0; | ||
92 | } | ||
diff --git a/tmk_core/readme.md b/tmk_core/readme.md index 71b8d2e9f..5b719bca5 100644 --- a/tmk_core/readme.md +++ b/tmk_core/readme.md | |||
@@ -67,7 +67,6 @@ Start Your Own Project | |||
67 | #define PRODUCT_ID 0xBEEF | 67 | #define PRODUCT_ID 0xBEEF |
68 | #define MANUFACTURER t.m.k. | 68 | #define MANUFACTURER t.m.k. |
69 | #define PRODUCT Macway mod | 69 | #define PRODUCT Macway mod |
70 | #define DESCRIPTION t.m.k. keyboard firmware for Macway mod | ||
71 | 70 | ||
72 | #### 2. Keyboard matrix configuration | 71 | #### 2. Keyboard matrix configuration |
73 | #define MATRIX_ROWS 8 | 72 | #define MATRIX_ROWS 8 |