Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c89c084146 | ||
|
|
13fff52f6b | ||
|
|
7bf9d9dc0a | ||
|
|
14079ce698 | ||
|
|
05d9a0ff03 | ||
|
|
b9d0b1f064 | ||
|
|
ed80874f72 | ||
|
|
23e942ae4e | ||
|
|
c077300e19 | ||
|
|
11f12d386b | ||
|
|
4d76d85d7b | ||
|
|
981ea87b05 | ||
|
|
65252ebf67 | ||
|
|
5bd0a5a585 |
No files matched your search
@@ -2,10 +2,8 @@
|
|||||||
"""CLI wrapper for running QMK commands.
|
"""CLI wrapper for running QMK commands.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
from importlib.util import find_spec
|
from importlib.util import find_spec
|
||||||
from time import strftime
|
|
||||||
|
|
||||||
# Add the QMK python libs to our path
|
# Add the QMK python libs to our path
|
||||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
@@ -35,16 +33,6 @@ with open(os.path.join(qmk_dir, 'requirements.txt'), 'r') as fd:
|
|||||||
print('Please run `pip3 install -r requirements.txt` to install the python dependencies.')
|
print('Please run `pip3 install -r requirements.txt` to install the python dependencies.')
|
||||||
exit(255)
|
exit(255)
|
||||||
|
|
||||||
# Figure out our version
|
|
||||||
# TODO(skullydazed/anyone): Find a method that doesn't involve git. This is slow in docker and on windows.
|
|
||||||
command = ['git', 'describe', '--abbrev=6', '--dirty', '--always', '--tags']
|
|
||||||
result = subprocess.run(command, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
||||||
|
|
||||||
if result.returncode == 0:
|
|
||||||
os.environ['QMK_VERSION'] = result.stdout.strip()
|
|
||||||
else:
|
|
||||||
os.environ['QMK_VERSION'] = 'nogit-' + strftime('%Y-%m-%d-%H:%M:%S') + '-dirty'
|
|
||||||
|
|
||||||
# Setup the CLI
|
# Setup the CLI
|
||||||
import milc # noqa
|
import milc # noqa
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,57 @@ This file is used by the [QMK API](https://github.com/qmk/qmk_api). It contains
|
|||||||
|
|
||||||
All projects need to have a `config.h` file that sets things like the matrix size, product name, USB VID/PID, description and other settings. In general, use this file to set essential information and defaults for your keyboard that will always work.
|
All projects need to have a `config.h` file that sets things like the matrix size, product name, USB VID/PID, description and other settings. In general, use this file to set essential information and defaults for your keyboard that will always work.
|
||||||
|
|
||||||
|
The `config.h` files can also be placed in sub-folders, and the order in which they are read is as follows:
|
||||||
|
|
||||||
|
* `keyboards/top_folder/config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/sub_3/config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/sub_3/sub_4/config.h`
|
||||||
|
* `users/a_user_folder/config.h`
|
||||||
|
* `keyboards/top_folder/keymaps/a_keymap/config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/sub_3/sub_4/post_config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/sub_3/post_config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/sub_2/post_config.h`
|
||||||
|
* `keyboards/top_folder/sub_1/post_config.h`
|
||||||
|
* `keyboards/top_folder/post_config.h`
|
||||||
|
|
||||||
|
The `post_config.h` file can be used for additional post-processing, depending on what is specified in the `config.h` file. For example, if you define the `IOS_DEVICE_ENABLE` macro in your keymap-level `config.h` file as follows, you can configure more detailed settings accordingly in the `post_config.h` file:
|
||||||
|
|
||||||
|
* `keyboards/top_folder/keymaps/a_keymap/config.h`
|
||||||
|
```c
|
||||||
|
#define IOS_DEVICE_ENABLE
|
||||||
|
```
|
||||||
|
* `keyboards/top_folder/post_config.h`
|
||||||
|
```c
|
||||||
|
#ifndef IOS_DEVICE_ENABLE
|
||||||
|
// USB_MAX_POWER_CONSUMPTION value for this keyboard
|
||||||
|
#define USB_MAX_POWER_CONSUMPTION 400
|
||||||
|
#else
|
||||||
|
// fix iPhone and iPad power adapter issue
|
||||||
|
// iOS device need lessthan 100
|
||||||
|
#define USB_MAX_POWER_CONSUMPTION 100
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
#ifndef IOS_DEVICE_ENABLE
|
||||||
|
#define RGBLIGHT_LIMIT_VAL 200
|
||||||
|
#define RGBLIGHT_VAL_STEP 17
|
||||||
|
#else
|
||||||
|
#define RGBLIGHT_LIMIT_VAL 35
|
||||||
|
#define RGBLIGHT_VAL_STEP 4
|
||||||
|
#endif
|
||||||
|
#ifndef RGBLIGHT_HUE_STEP
|
||||||
|
#define RGBLIGHT_HUE_STEP 10
|
||||||
|
#endif
|
||||||
|
#ifndef RGBLIGHT_SAT_STEP
|
||||||
|
#define RGBLIGHT_SAT_STEP 17
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
```
|
||||||
|
|
||||||
|
?> If you define options using `post_config.h` as in the above example, you should not define the same options in the keyboard- or user-level `config.h`.
|
||||||
|
|
||||||
### `rules.mk`
|
### `rules.mk`
|
||||||
|
|
||||||
The presence of this file means that the folder is a keyboard target and can be used in `make` commands. This is where you setup the build environment for your keyboard and configure the default set of features.
|
The presence of this file means that the folder is a keyboard target and can be used in `make` commands. This is where you setup the build environment for your keyboard and configure the default set of features.
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ After opening a new MSYS2 MinGW 64-bit terminal, make sure `pacman` is up to dat
|
|||||||
|
|
||||||
You may be asked to close and reopen the window. Do this and keep running the above command until it says `there is nothing to do`. Then run the following:
|
You may be asked to close and reopen the window. Do this and keep running the above command until it says `there is nothing to do`. Then run the following:
|
||||||
|
|
||||||
pacman -S git python3-pip
|
pacman -S git mingw-w64-x86_64-toolchain mingw-w64-x86_64-python3-pip
|
||||||
python3 -m pip install qmk
|
python3 -m pip install qmk
|
||||||
|
|
||||||
### macOS
|
### macOS
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "progmem.h"
|
#include "progmem.h"
|
||||||
#ifndef __AVR__
|
|
||||||
# define memcpy_P(des, src, len) memcpy(des, src, len)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Used commands from spec sheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
|
// Used commands from spec sheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
|
||||||
// for SH1106: https://www.velleman.eu/downloads/29/infosheets/sh1106_datasheet.pdf
|
// for SH1106: https://www.velleman.eu/downloads/29/infosheets/sh1106_datasheet.pdf
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER LSJ
|
#define MANUFACTURER LSJ
|
||||||
#define PRODUCT QMK Firmware for Ares
|
#define PRODUCT Ares
|
||||||
|
|
||||||
#define RGBLED_NUM 16
|
#define RGBLED_NUM 16
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'L', 'S', 'J'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 3
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'A', 'r', 'e', 's'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER NotActuallyWinkeyless
|
#define MANUFACTURER NotWinkeyless
|
||||||
#define PRODUCT b.fake
|
#define PRODUCT B.fake
|
||||||
|
|
||||||
#define RGBLED_NUM 16
|
#define RGBLED_NUM 16
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
/* Copyright 2019
|
||||||
|
*
|
||||||
|
* 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 QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
_BASE = 0,
|
||||||
|
_FN1,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_BASE] = LAYOUT_ortho_4x4(
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_P0, KC_PDOT, KC_SPC, MO(_FN1)
|
||||||
|
),
|
||||||
|
[_FN1] = LAYOUT_ortho_4x4(
|
||||||
|
RESET, KC_PAST, KC_PSLS, _______,
|
||||||
|
BL_TOGG, BL_DEC, BL_INC, BL_STEP,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD,
|
||||||
|
RGB_SAI, RGB_SAD, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# A factory-like keymap for the bm16a
|
||||||
|
|
||||||
|
This keymap recreates the stock layout this keypad ships with. Use it if you want to return to stock, but with QMK.
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'K','a','g','i','z','a','r','a','y','a'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 10
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'C', 'h', 'i', 'd', 'o', 'r', 'i'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 7
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'c','o','s','e','y','f','a','n','n','i','t','u','t','t','i'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 15
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'D','I','S','C','I','P','A','D'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER '0'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 1
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'c','o','s','e','y','f','a','n','n','i','t','u','t','t','i'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 15
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'D','I','S','C','I','P','L','I','N','E'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 10
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER '0'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 1
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'c','o','s','e','y','f','a','n','n','i','t','u','t','t','i'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 15
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'M','Y','S','T','E','R','I','U','M'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 9
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER '0'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 1
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'c','o','s','e','y','f','a','n','n','i','t','u','t','t','i'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 15
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'R','O','M','E','O'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER '0'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 1
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0xFAAD
|
#define VENDOR_ID 0xFAAD
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// You can edit those at usbconfig.h about line 250. These values will
|
|
||||||
// unforunatly be ignored so far
|
|
||||||
#define MANUFACTURER HNB
|
#define MANUFACTURER HNB
|
||||||
#define PRODUCT DB63v1 Hotswap
|
#define PRODUCT DB63v1 Hotswap
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'H', 'N', 'B'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 3
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'D', 'B', '6', '3', 'H', 'S'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'D', 'o', 'n', 'u', 't', 'C', 'a', 'b', 'l', 'e', 's'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 11
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'b', 'u', 'd', 'g', 'e', 't', '9', '6'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -206,7 +206,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -217,34 +217,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -323,18 +295,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
#define PRODUCT_ID 0x0000
|
#define PRODUCT_ID 0x0000
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER exclusive
|
#define MANUFACTURER Exclusive / E-Team
|
||||||
#define PRODUCT e6v2 le bmc
|
#define PRODUCT E6-V2 LE BMC
|
||||||
#define DESCRIPTION A custom 60% keyboard
|
#define DESCRIPTION A custom 60% keyboard
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'E', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 9
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'E', '6', 'V', '2'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
#define PRODUCT_ID 0x0000
|
#define PRODUCT_ID 0x0000
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER exclusive
|
#define MANUFACTURER Exclusive / E-Team
|
||||||
#define PRODUCT e6v2 oe bmc
|
#define PRODUCT E6-V2 OE BMC
|
||||||
#define DESCRIPTION A custom 60% keyboard
|
#define DESCRIPTION A custom 60% keyboard
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'E', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 9
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'E', '6', 'V', '2'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -206,7 +206,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -217,34 +217,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -323,18 +295,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER NotActuallyWinkeyless
|
#define MANUFACTURER SPRiT
|
||||||
#define PRODUCT facew
|
#define PRODUCT FaceW
|
||||||
|
|
||||||
#define RGBLED_NUM 16
|
#define RGBLED_NUM 16
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'S', 'p', 'r', 'i', 't'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 5
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'F', 'a', 'c', 'e', 'W'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'f', 't'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 2
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'm', 'a', 'r', 's', '8', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'Y','i','a','n','c','a','r','-','D','e', 's', 'i', 'g', 'n', 's'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 15
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'G', 'i', 'n', 'g', 'h', 'a', 'm'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 7
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER '0'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 1
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'G', 'r', 'a', 'y', ' ', 'S', 't', 'u', 'd', 'i', 'o'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 11
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'H', 'B', '8', '5'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x0000
|
#define PRODUCT_ID 0x0000
|
||||||
#define DEVICE_VER 0x0002
|
#define DEVICE_VER 0x0002
|
||||||
#define MANUFACTURER HnahKB
|
#define MANUFACTURER HnahKB
|
||||||
#define PRODUCT hnah40
|
#define PRODUCT Hnah40
|
||||||
#define DESCRIPTION Custom 40% PCB
|
#define DESCRIPTION Custom 40% PCB
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'H','n','a','h','K','B'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 6
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'H', 'n', 'a', 'h', '4', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER 'H','n','a','h','K','B'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 6
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -206,7 +206,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -217,34 +217,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'J', 'E', 'R'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 3
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'J', '8', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 3
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -323,18 +295,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x1234
|
#define VENDOR_ID 0x1234
|
||||||
#define PRODUCT_ID 0x5679
|
#define PRODUCT_ID 0x5679
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER winkeyless.kr
|
#define MANUFACTURER RAMA
|
||||||
#define PRODUCT JC65 PS2AVRGB
|
#define PRODUCT JC65 BMC
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 7
|
#define MATRIX_ROWS 7
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -19,10 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// TODO: share these strings with usbconfig.h
|
#define MANUFACTURER KPrepublic
|
||||||
// Edit usbconfig.h to change these.
|
#define PRODUCT JJ40
|
||||||
#define MANUFACTURER Kprepublic
|
|
||||||
#define PRODUCT jj40
|
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 4
|
#define MATRIX_ROWS 4
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'j', 'j', '4', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,10 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// TODO: share these strings with usbconfig.h
|
#define MANUFACTURER KPrepublic
|
||||||
// Edit usbconfig.h to change these.
|
#define PRODUCT JJ4x4
|
||||||
#define MANUFACTURER Kprepublic
|
|
||||||
#define PRODUCT jj4x4
|
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 4
|
#define MATRIX_ROWS 4
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'j', 'j', '4', 'x', '4'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -25,10 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// TODO: share these strings with usbconfig.h
|
#define MANUFACTURER KPrepublic
|
||||||
// Edit usbconfig.h to change these.
|
#define PRODUCT JJ50
|
||||||
#define MANUFACTURER kprepublic
|
|
||||||
#define PRODUCT jj50
|
|
||||||
#define DESCRIPTION Preonic-like clone
|
#define DESCRIPTION Preonic-like clone
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'K', 'P', 'R', 'e', 'p', 'u', 'b', 'l', 'i', 'c'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 10
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'J','J','5','0',' ','K','e','y','b','o','a','r','d'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 13
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER KBDfans
|
#define MANUFACTURER KBDfans
|
||||||
#define PRODUCT KBDPAD-MKI
|
#define PRODUCT KBDPAD Mk. I
|
||||||
|
|
||||||
#define MATRIX_ROWS 6
|
#define MATRIX_ROWS 6
|
||||||
#define MATRIX_COLS 4
|
#define MATRIX_COLS 4
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'K','e','y','c','a','p','s','s','s'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 9
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'P', 'l', 'a', 'i', 'd', '-', 'P', 'a', 'd'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 9
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'E', 'V', 'E'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 3
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'K', 'i', 'r', 'a', '8', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x6050
|
#define PRODUCT_ID 0x6050
|
||||||
#define DEVICE_VER 0x0100
|
#define DEVICE_VER 0x0100
|
||||||
#define MANUFACTURER LeeKu
|
#define MANUFACTURER LeeKu
|
||||||
#define PRODUCT L3
|
#define PRODUCT Finger65
|
||||||
#define DESCRIPTION QMK keyboard firmware for L3
|
#define DESCRIPTION QMK keyboard firmware for L3
|
||||||
|
|
||||||
#define RGBLED_NUM 12
|
#define RGBLED_NUM 12
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'L', 'e', 'e', 'k', 'u'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 5
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'F', 'i', 'n', 'g', 'e', 'r', '6', '5'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,13 +305,13 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|||||||
@@ -22,8 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
#define PRODUCT_ID 0xCA40
|
#define PRODUCT_ID 0xCA40
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
// TODO: share these strings with usbconfig.h
|
|
||||||
// Edit usbconfig.h to change these.
|
|
||||||
#define MANUFACTURER MECHKEYS
|
#define MANUFACTURER MECHKEYS
|
||||||
#define PRODUCT Mechmini
|
#define PRODUCT Mechmini
|
||||||
#define DESCRIPTION 40% modular keyboard
|
#define DESCRIPTION 40% modular keyboard
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER mehkee
|
#define MANUFACTURER Mehkee
|
||||||
#define PRODUCT 96kee
|
#define PRODUCT 96KEE
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 8
|
#define MATRIX_ROWS 8
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -0,0 +1,158 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 mechmerlin
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x4D42
|
||||||
|
#define PRODUCT_ID 0x0017
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Mountainblocks
|
||||||
|
#define PRODUCT MB17
|
||||||
|
#define DESCRIPTION A custom numpad
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 4
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define MATRIX_ROW_PINS { F4, B1, B3, B2, B6 }
|
||||||
|
#define MATRIX_COL_PINS { F7, E6, D7, C6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
|
||||||
|
*/
|
||||||
|
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
|
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
|
*/
|
||||||
|
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Force NKRO
|
||||||
|
*
|
||||||
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||||
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||||
|
* makefile for this to work.)
|
||||||
|
*
|
||||||
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||||
|
* until the next keyboard reset.
|
||||||
|
*
|
||||||
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||||
|
* fully operational during normal computer usage.
|
||||||
|
*
|
||||||
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||||
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||||
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||||
|
* power-up.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//#define FORCE_NKRO
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Magic Key Options
|
||||||
|
*
|
||||||
|
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||||
|
* the keyboard. They are best used in combination with the HID Listen program,
|
||||||
|
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||||
|
*
|
||||||
|
* The options below allow the magic key functionality to be changed. This is
|
||||||
|
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* key combination for magic key command */
|
||||||
|
/* defined by default; to change, uncomment and set to the combination you want */
|
||||||
|
// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
|
||||||
|
|
||||||
|
/* control how magic key switches layers */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||||
|
|
||||||
|
/* override magic key keymap */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||||
|
//#define MAGIC_KEY_HELP H
|
||||||
|
//#define MAGIC_KEY_HELP_ALT SLASH
|
||||||
|
//#define MAGIC_KEY_DEBUG D
|
||||||
|
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||||
|
//#define MAGIC_KEY_DEBUG_KBD K
|
||||||
|
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||||
|
//#define MAGIC_KEY_VERSION V
|
||||||
|
//#define MAGIC_KEY_STATUS S
|
||||||
|
//#define MAGIC_KEY_CONSOLE C
|
||||||
|
//#define MAGIC_KEY_LAYER0 0
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT GRAVE
|
||||||
|
//#define MAGIC_KEY_LAYER1 1
|
||||||
|
//#define MAGIC_KEY_LAYER2 2
|
||||||
|
//#define MAGIC_KEY_LAYER3 3
|
||||||
|
//#define MAGIC_KEY_LAYER4 4
|
||||||
|
//#define MAGIC_KEY_LAYER5 5
|
||||||
|
//#define MAGIC_KEY_LAYER6 6
|
||||||
|
//#define MAGIC_KEY_LAYER7 7
|
||||||
|
//#define MAGIC_KEY_LAYER8 8
|
||||||
|
//#define MAGIC_KEY_LAYER9 9
|
||||||
|
//#define MAGIC_KEY_BOOTLOADER B
|
||||||
|
//#define MAGIC_KEY_BOOTLOADER_ALT ESC
|
||||||
|
//#define MAGIC_KEY_LOCK CAPS
|
||||||
|
//#define MAGIC_KEY_EEPROM E
|
||||||
|
//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
|
||||||
|
//#define MAGIC_KEY_NKRO N
|
||||||
|
//#define MAGIC_KEY_SLEEP_LED Z
|
||||||
|
|
||||||
|
|
||||||
|
/* disable these deprecated features by default */
|
||||||
|
#ifndef LINK_TIME_OPTIMIZATION_ENABLE
|
||||||
|
#define NO_ACTION_MACRO
|
||||||
|
#define NO_ACTION_FUNCTION
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "MB17",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 4,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_numpad_5x4": {
|
||||||
|
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":1, "h":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":0, "y":4, "w":2}, {"x":2, "y":4}, {"x":3, "y":3, "h":2}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/* Copyright 2020 mechmerlin
|
||||||
|
*
|
||||||
|
* 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 QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┐
|
||||||
|
* │TG1│ / │ * │ - │
|
||||||
|
* ├───┼───┼───┼───┤
|
||||||
|
* │ 7 │ 8 │ 9 │ │
|
||||||
|
* ├───┼───┼───┤ + │
|
||||||
|
* │ 4 │ 5 │ 6 │ │
|
||||||
|
* ├───┼───┼───┼───┤
|
||||||
|
* │ 1 │ 2 │ 3 │ │
|
||||||
|
* ├───┴───┼───┤Ent│
|
||||||
|
* │ 0 │ . │ │
|
||||||
|
* └───────┴───┴───┘
|
||||||
|
*/
|
||||||
|
[0] = LAYOUT_numpad_5x4(
|
||||||
|
TG(1), KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
KC_P7, KC_P8, KC_P9,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3,
|
||||||
|
KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┐
|
||||||
|
* │TG1│ / │ * │ - │
|
||||||
|
* ┌───┬───┬───┐───┤
|
||||||
|
* │Hom│ ↑ │PgU│ │
|
||||||
|
* ├───┼───┼───┤ + │
|
||||||
|
* │ ← │ │ → │ │
|
||||||
|
* ├───┼───┼───┤───┤
|
||||||
|
* │End│ ↓ │PgD│ │
|
||||||
|
* ├───┴───┼───┤Ent│
|
||||||
|
* │Insert │Del│ │
|
||||||
|
* └───────┴───┘───┘
|
||||||
|
*/
|
||||||
|
[1] = LAYOUT_numpad_5x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
KC_HOME, KC_UP, KC_PGUP,
|
||||||
|
KC_LEFT, XXXXXXX, KC_RGHT, _______,
|
||||||
|
KC_END, KC_DOWN, KC_PGDN,
|
||||||
|
KC_INS, KC_DEL, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for mb17
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
/* Copyright 2020 mechmerlin
|
||||||
|
*
|
||||||
|
* 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 QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┐
|
||||||
|
* │TG1│ / │ * │ - │
|
||||||
|
* ├───┼───┼───┼───┤
|
||||||
|
* │ 7 │ 8 │ 9 │ │
|
||||||
|
* ├───┼───┼───┤ + │
|
||||||
|
* │ 4 │ 5 │ 6 │ │
|
||||||
|
* ├───┼───┼───┼───┤
|
||||||
|
* │ 1 │ 2 │ 3 │ │
|
||||||
|
* ├───┴───┼───┤Ent│
|
||||||
|
* │ 0 │ . │ │
|
||||||
|
* └───────┴───┴───┘
|
||||||
|
*/
|
||||||
|
[0] = LAYOUT_numpad_5x4(
|
||||||
|
TG(1), KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
KC_P7, KC_P8, KC_P9,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3,
|
||||||
|
KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┐
|
||||||
|
* │TG1│ / │ * │ - │
|
||||||
|
* ┌───┬───┬───┐───┤
|
||||||
|
* │Hom│ ↑ │PgU│ │
|
||||||
|
* ├───┼───┼───┤ + │
|
||||||
|
* │ ← │ │ → │ │
|
||||||
|
* ├───┼───┼───┤───┤
|
||||||
|
* │End│ ↓ │PgD│ │
|
||||||
|
* ├───┴───┼───┤Ent│
|
||||||
|
* │Insert │Del│ │
|
||||||
|
* └───────┴───┘───┘
|
||||||
|
*/
|
||||||
|
[1] = LAYOUT_numpad_5x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
KC_HOME, KC_UP, KC_PGUP,
|
||||||
|
KC_LEFT, XXXXXXX, KC_RGHT, _______,
|
||||||
|
KC_END, KC_DOWN, KC_PGDN,
|
||||||
|
KC_INS, KC_DEL, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[2] = LAYOUT_numpad_5x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______,
|
||||||
|
_______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[3] = LAYOUT_numpad_5x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______,
|
||||||
|
_______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
|
LTO_ENABLE = yes
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/* Copyright 2020 mechmerlin
|
||||||
|
*
|
||||||
|
* 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 "mb17.h"
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
/* Copyright 2020 mechmerlin
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define ___ KC_NO
|
||||||
|
|
||||||
|
#define LAYOUT_numpad_5x4( \
|
||||||
|
k00, k01, k02, k03, \
|
||||||
|
k10, k11, k12, \
|
||||||
|
k20, k21, k22, k23, \
|
||||||
|
k30, k31, k32, \
|
||||||
|
k41, k42, k43 \
|
||||||
|
){ \
|
||||||
|
{ k00, k01, k02, k03 }, \
|
||||||
|
{ k10, k11, k12, ___ }, \
|
||||||
|
{ k20, k21, k22, k23 }, \
|
||||||
|
{ k30, k31, k32, ___ }, \
|
||||||
|
{ ___, k41, k42, k43 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# MB17
|
||||||
|
|
||||||
|
A single layout sandwich numpad.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
|
||||||
|
* Hardware Supported: MB17
|
||||||
|
* Hardware Availability: TBD
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make mountainblocks/mb17:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
|
|
||||||
#define MANUFACTURER ThomasDehaeze
|
#define MANUFACTURER ThomasDehaeze
|
||||||
#define PRODUCT mt40
|
#define PRODUCT MT40
|
||||||
|
|
||||||
#define DESCRIPTION A Planck clone
|
#define DESCRIPTION A Planck clone
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'T', 'h', 'o', 'm', 'a', 's', 'D', 'e', 'h', 'a', 'e', 'z', 'e'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'c', 'u', 's', 't', 'o', 'm', '4', '8'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER Panc Interactive
|
#define MANUFACTURER Panc Interactive
|
||||||
#define PRODUCT panc60
|
#define PRODUCT Panc60
|
||||||
|
|
||||||
#define RGBLED_NUM 12
|
#define RGBLED_NUM 12
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER NotActuallyPercent
|
#define MANUFACTURER Percent Studios
|
||||||
#define PRODUCT CANOE
|
#define PRODUCT CANOE
|
||||||
|
|
||||||
#define RGBLED_NUM 2
|
#define RGBLED_NUM 2
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
|
|
||||||
#define MANUFACTURER Percent
|
#define MANUFACTURER Percent Studios
|
||||||
#define PRODUCT Skog TKL
|
#define PRODUCT Skog TKL
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'P','e','r','c','e','n','t'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 7
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'S','k','o','g',' ','T','K','L'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER Percent
|
#define MANUFACTURER Percent Studios
|
||||||
#define PRODUCT Skog Lite
|
#define PRODUCT Skog Lite
|
||||||
|
|
||||||
#define RGBLED_NUM 18
|
#define RGBLED_NUM 18
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define PRODUCT_ID 0x27db
|
#define PRODUCT_ID 0x27db
|
||||||
#define DEVICE_VER 0x0002
|
#define DEVICE_VER 0x0002
|
||||||
#define MANUFACTURER dm9records
|
#define MANUFACTURER dm9records
|
||||||
#define PRODUCT plaid
|
#define PRODUCT Plaid
|
||||||
#define DESCRIPTION 12x4 ortholinear keyboard with through hole components
|
#define DESCRIPTION 12x4 ortholinear keyboard with through hole components
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'd','m','9','r','e','c','o','r','d','s'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 10
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'P', 'l', 'a', 'i', 'd'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER 'd','m','9','r','e','c','o','r','d','s','.','c','o','m',':','p','1'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 17
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012,2013 Jun Wako <[email protected]>
|
||||||
|
|
||||||
|
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 QMK_KEYBOARD_H
|
||||||
|
#include "stanrc85.h"
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_QWERTY] = LAYOUT_default(
|
||||||
|
KC_ESC, TD_TESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, KC_BSPC,
|
||||||
|
KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
KC_PGDN, KC_CTLE, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN2_60),
|
||||||
|
KC_LCTL, KC_LALT, LT_SPCF, KC_LGUI, LT_SPCF, TD_TWIN, TD_TCTL
|
||||||
|
),
|
||||||
|
|
||||||
|
[_DEFAULT] = LAYOUT_default(
|
||||||
|
KC_ESC, KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, KC_BSPC,
|
||||||
|
KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
KC_PGDN, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN2_60),
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(_FN1_60), KC_SPC, KC_RALT, KC_RCTL
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN1_60] = LAYOUT_default(
|
||||||
|
_______, KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_DEL,
|
||||||
|
_______, _______, _______, CA_QUOT, KC_VOLU, CA_SCLN, _______, _______, KC_HOME, KC_UP, KC_END, KC_PSCR, _______, _______, KC_INS,
|
||||||
|
_______, KC_CAPS, _______, KC_MUTE, KC_VOLD, KC_MPLY, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
|
||||||
|
_______, KC_RDP, _______, _______, _______, _______, _______, _______, KC_WBAK, KC_WFWD, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN2_60] = LAYOUT_default(
|
||||||
|
BL_TOGG, RGB_TOG, RGB_MOD, RGB_VAD, RGB_VAI, RGB_SAI, RGB_HUD, RGB_HUI, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
BL_INC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
|
||||||
|
BL_DEC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MAKE,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, TG(_DEFAULT)
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'd','m','9','r','e','c','o','r','d','s'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 10
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'T', 'a', 'r', 't', 'a', 'n'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_SERIAL_NUMBER 'd','m','9','r','e','c','o','r','d','s','.','c','o','m',':','t','1'
|
|
||||||
#define USB_CFG_SERIAL_NUMBER_LEN 17
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -20,10 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422E
|
#define PRODUCT_ID 0x422E
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// TODO: share these strings with usbconfig.h
|
|
||||||
// Edit usbconfig.h to change these.
|
|
||||||
#define MANUFACTURER TGR
|
#define MANUFACTURER TGR
|
||||||
#define PRODUCT TGR Alice
|
#define PRODUCT Alice
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 6
|
#define MATRIX_ROWS 6
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'T', 'G', 'R'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 3
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'T', 'G', 'R', ' ', 'A', 'l', 'i', 'c', 'e'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 9
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER Singa and TGR
|
#define MANUFACTURER Singa x TGR
|
||||||
#define PRODUCT Unikorn 60
|
#define PRODUCT Unikorn60
|
||||||
|
|
||||||
#define MATRIX_ROWS 5
|
#define MATRIX_ROWS 5
|
||||||
#define MATRIX_COLS 15
|
#define MATRIX_COLS 15
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 's', 'i', 'n', 'g', 'a', 't', 'g', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 8
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'u', 'n', 'i', 'k', 'o', 'r', 'n'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 7
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -21,10 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// You can edit those at usbconfig.h about line 250. These values will
|
#define MANUFACTURER Winkeyless
|
||||||
// unforunatly be ignored so far
|
#define PRODUCT B.face
|
||||||
#define MANUFACTURER winkeyless.kr
|
|
||||||
#define PRODUCT b.face
|
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 8
|
#define MATRIX_ROWS 8
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'b', '.', 'f', 'a', 'c', 'e'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 6
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER winkeyless.kr
|
#define MANUFACTURER Winkeyless
|
||||||
#define PRODUCT B.mini
|
#define PRODUCT B.mini
|
||||||
|
|
||||||
#define RGBLED_NUM 16
|
#define RGBLED_NUM 16
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422E
|
#define PRODUCT_ID 0x422E
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER winkeyless.kr
|
#define MANUFACTURER Winkeyless
|
||||||
#define PRODUCT B.mini Ex
|
#define PRODUCT B.mini EX
|
||||||
|
|
||||||
#define RGBLED_NUM 20
|
#define RGBLED_NUM 20
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'p', 's', '2', 'a', 'v', 'r', 'G', 'B'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 8
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
/* Backlight Setup */
|
/* Backlight Setup */
|
||||||
#define BACKLIGHT_PIN F5
|
#define BACKLIGHT_PIN F5
|
||||||
#define BACKLIGHT_LEVELS 6
|
#define BACKLIGHT_LEVELS 6
|
||||||
|
#define BACKLIGHT_ON_STATE 0
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */
|
/* COL2ROW or ROW2COL */
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
/* Backlight Setup */
|
/* Backlight Setup */
|
||||||
#define BACKLIGHT_PIN F5
|
#define BACKLIGHT_PIN F5
|
||||||
#define BACKLIGHT_LEVELS 6
|
#define BACKLIGHT_LEVELS 6
|
||||||
|
#define BACKLIGHT_ON_STATE 0
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */
|
/* COL2ROW or ROW2COL */
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|||||||
@@ -24,11 +24,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
|
|
||||||
// TODO: share these strings with usbconfig.h
|
|
||||||
// Edit usbconfig.h to change these.
|
|
||||||
#define MANUFACTURER YMDK
|
#define MANUFACTURER YMDK
|
||||||
#define PRODUCT ymd75 / mt84
|
#define PRODUCT YMD75 / MT84
|
||||||
#define DESCRIPTION 75% Keyboard
|
#define DESCRIPTION 75% Keyboard
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'Y', 'M', 'D', 'K'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 4
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'Y','M','D','7','5',' ','K','e','y','b','o','a','r','d'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 14
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -23,9 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// Edit usbconfig.h to change these.
|
#define MANUFACTURER YMDK
|
||||||
#define MANUFACTURER ymdkey
|
#define PRODUCT YMD96
|
||||||
#define PRODUCT ymd96
|
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 8
|
#define MATRIX_ROWS 8
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'y','m','d','k','e','y'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 6
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'y','m','d','9','6'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -20,10 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// You can edit those at usbconfig.h about line 250. These values will
|
|
||||||
// unforunatly be ignored so far
|
|
||||||
#define MANUFACTURER YMDK
|
#define MANUFACTURER YMDK
|
||||||
#define PRODUCT bface
|
#define PRODUCT B.face
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 5
|
#define MATRIX_ROWS 5
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -216,7 +216,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -227,34 +227,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'Y', 'M', 'D', 'K'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 4
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'b', 'f', 'a', 'c', 'e'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 5
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -333,18 +305,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -22,10 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x20A0
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x422D
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
// TODO: share these strings with usbconfig.h
|
#define MANUFACTURER YMDK
|
||||||
// Edit usbconfig.h to change these.
|
#define PRODUCT NP21
|
||||||
#define MANUFACTURER ymdk
|
|
||||||
#define PRODUCT np21
|
|
||||||
|
|
||||||
/* matrix size */
|
/* matrix size */
|
||||||
#define MATRIX_ROWS 4
|
#define MATRIX_ROWS 4
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ section at the end of this file).
|
|||||||
|
|
||||||
/* -------------------------- Device Description --------------------------- */
|
/* -------------------------- Device Description --------------------------- */
|
||||||
|
|
||||||
#define USB_CFG_VENDOR_ID (VENDOR_ID & 0xFF), ((VENDOR_ID >> 8) & 0xFF)
|
#define USB_CFG_VENDOR_ID
|
||||||
/* USB vendor ID for the device, low byte first. If you have registered your
|
/* USB vendor ID for the device, low byte first. If you have registered your
|
||||||
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
|
||||||
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
|
||||||
@@ -217,7 +217,7 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_ID (PRODUCT_ID & 0xFF), ((PRODUCT_ID >> 8) & 0xFF)
|
#define USB_CFG_DEVICE_ID
|
||||||
/* This is the ID of the product, low byte first. It is interpreted in the
|
/* This is the ID of the product, low byte first. It is interpreted in the
|
||||||
* scope of the vendor ID. If you have registered your own VID with usb.org
|
* scope of the vendor ID. If you have registered your own VID with usb.org
|
||||||
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
* or if you have licensed a PID from somebody else, define it here. Otherwise
|
||||||
@@ -228,34 +228,6 @@ section at the end of this file).
|
|||||||
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
|
||||||
* the implications!
|
* the implications!
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
|
|
||||||
/* Version number of the device: Minor number first, then major number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'
|
|
||||||
#define USB_CFG_VENDOR_NAME_LEN 13
|
|
||||||
/* These two values define the vendor name returned by the USB device. The name
|
|
||||||
* must be given as a list of characters under single quotes. The characters
|
|
||||||
* are interpreted as Unicode (UTF-16) entities.
|
|
||||||
* If you don't want a vendor name string, undefine these macros.
|
|
||||||
* ALWAYS define a vendor name containing your Internet domain name if you use
|
|
||||||
* obdev's free shared VID/PID pair. See the file USB-IDs-for-free.txt for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_NAME 'j', 'j', '4', '0'
|
|
||||||
#define USB_CFG_DEVICE_NAME_LEN 4
|
|
||||||
/* Same as above for the device name. If you don't want a device name, undefine
|
|
||||||
* the macros. See the file USB-IDs-for-free.txt before you assign a name if
|
|
||||||
* you use a shared VID/PID.
|
|
||||||
*/
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
|
||||||
/*#define USB_CFG_SERIAL_NUMBER_LEN 0 */
|
|
||||||
/* Same as above for the serial number. If you don't want a serial number,
|
|
||||||
* undefine the macros.
|
|
||||||
* It may be useful to provide the serial number through other means than at
|
|
||||||
* compile time. See the section about descriptor properties below for how
|
|
||||||
* to fine tune control over USB descriptors such as the string descriptor
|
|
||||||
* for the serial number.
|
|
||||||
*/
|
|
||||||
#define USB_CFG_DEVICE_CLASS 0
|
#define USB_CFG_DEVICE_CLASS 0
|
||||||
#define USB_CFG_DEVICE_SUBCLASS 0
|
#define USB_CFG_DEVICE_SUBCLASS 0
|
||||||
/* See USB specification if you want to conform to an existing device class.
|
/* See USB specification if you want to conform to an existing device class.
|
||||||
@@ -334,18 +306,15 @@ section at the end of this file).
|
|||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
#define USB_CFG_DESCR_PROPS_DEVICE USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_CONFIGURATION 0
|
#define USB_CFG_DESCR_PROPS_STRINGS USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRINGS 0
|
#define USB_CFG_DESCR_PROPS_STRING_0 USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_0 0
|
#define USB_CFG_DESCR_PROPS_STRING_VENDOR USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
|
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
|
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER USB_PROP_IS_DYNAMIC
|
||||||
#define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
#define USB_CFG_DESCR_PROPS_HID_REPORT USB_PROP_IS_DYNAMIC
|
||||||
//#define USB_CFG_DESCR_PROPS_HID_REPORT 0
|
|
||||||
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
|
||||||
|
|
||||||
#define usbMsgPtr_t unsigned short
|
#define usbMsgPtr_t unsigned short
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ from pathlib import Path
|
|||||||
from milc import cli
|
from milc import cli
|
||||||
from qmk import submodules
|
from qmk import submodules
|
||||||
from qmk.questions import yesno
|
from qmk.questions import yesno
|
||||||
|
from qmk.commands import run
|
||||||
|
|
||||||
ESSENTIAL_BINARIES = {
|
ESSENTIAL_BINARIES = {
|
||||||
'dfu-programmer': {},
|
'dfu-programmer': {},
|
||||||
@@ -135,7 +136,7 @@ def check_modem_manager():
|
|||||||
"""Returns True if ModemManager is running.
|
"""Returns True if ModemManager is running.
|
||||||
"""
|
"""
|
||||||
if shutil.which("systemctl"):
|
if shutil.which("systemctl"):
|
||||||
mm_check = subprocess.run(["systemctl", "--quiet", "is-active", "ModemManager.service"], timeout=10)
|
mm_check = run(["systemctl", "--quiet", "is-active", "ModemManager.service"], timeout=10)
|
||||||
if mm_check.returncode == 0:
|
if mm_check.returncode == 0:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -153,7 +154,7 @@ def is_executable(command):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# Make sure the command can be executed
|
# Make sure the command can be executed
|
||||||
check = subprocess.run([command, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=5, universal_newlines=True)
|
check = run([command, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=5, universal_newlines=True)
|
||||||
ESSENTIAL_BINARIES[command]['output'] = check.stdout
|
ESSENTIAL_BINARIES[command]['output'] = check.stdout
|
||||||
|
|
||||||
if check.returncode in [0, 1]: # Older versions of dfu-programmer exit 1
|
if check.returncode in [0, 1]: # Older versions of dfu-programmer exit 1
|
||||||
@@ -207,19 +208,19 @@ def doctor(cli):
|
|||||||
ok = True
|
ok = True
|
||||||
|
|
||||||
# Determine our OS and run platform specific tests
|
# Determine our OS and run platform specific tests
|
||||||
OS = platform.platform().lower() # noqa (N806), uppercase name is ok in this instance
|
platform_id = platform.platform().lower()
|
||||||
|
|
||||||
if 'darwin' in OS or 'macos' in OS:
|
if 'darwin' in platform_id or 'macos' in platform_id:
|
||||||
if not os_test_macos():
|
if not os_test_macos():
|
||||||
ok = False
|
ok = False
|
||||||
elif 'linux' in OS:
|
elif 'linux' in platform_id:
|
||||||
if not os_test_linux():
|
if not os_test_linux():
|
||||||
ok = False
|
ok = False
|
||||||
elif 'windows' in OS:
|
elif 'windows' in platform_id:
|
||||||
if not os_test_windows():
|
if not os_test_windows():
|
||||||
ok = False
|
ok = False
|
||||||
else:
|
else:
|
||||||
cli.log.error('Unsupported OS detected: %s', OS)
|
cli.log.error('Unsupported OS detected: %s', platform_id)
|
||||||
ok = False
|
ok = False
|
||||||
|
|
||||||
# Make sure the basic CLI tools we need are available and can be executed.
|
# Make sure the basic CLI tools we need are available and can be executed.
|
||||||
@@ -227,7 +228,7 @@ def doctor(cli):
|
|||||||
|
|
||||||
if not bin_ok:
|
if not bin_ok:
|
||||||
if yesno('Would you like to install dependencies?', default=True):
|
if yesno('Would you like to install dependencies?', default=True):
|
||||||
subprocess.run(['util/qmk_install.sh'])
|
run(['util/qmk_install.sh'])
|
||||||
bin_ok = check_binaries()
|
bin_ok = check_binaries()
|
||||||
|
|
||||||
if bin_ok:
|
if bin_ok:
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
"""Helper functions for commands.
|
"""Helper functions for commands.
|
||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
import subprocess
|
||||||
|
import shlex
|
||||||
|
|
||||||
import qmk.keymap
|
import qmk.keymap
|
||||||
|
|
||||||
@@ -61,3 +65,19 @@ def parse_configurator_json(configurator_file):
|
|||||||
user_keymap = json.load(configurator_file)
|
user_keymap = json.load(configurator_file)
|
||||||
|
|
||||||
return user_keymap
|
return user_keymap
|
||||||
|
|
||||||
|
|
||||||
|
def run(command, *args, **kwargs):
|
||||||
|
"""Run a command with subprocess.run
|
||||||
|
"""
|
||||||
|
platform_id = platform.platform().lower()
|
||||||
|
|
||||||
|
if isinstance(command, str):
|
||||||
|
raise TypeError('`command` must be a non-text sequence such as list or tuple.')
|
||||||
|
|
||||||
|
if 'windows' in platform_id:
|
||||||
|
safecmd = map(shlex.quote, command)
|
||||||
|
safecmd = ' '.join(safecmd)
|
||||||
|
command = [os.environ['SHELL'], '-c', safecmd]
|
||||||
|
|
||||||
|
return subprocess.run(command, *args, **kwargs)
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
from qmk.commands import run
|
||||||
|
|
||||||
|
|
||||||
def check_subcommand(command, *args):
|
def check_subcommand(command, *args):
|
||||||
cmd = ['bin/qmk', command] + list(args)
|
cmd = ['bin/qmk', command] + list(args)
|
||||||
return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
|
return run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
|
||||||
|
|
||||||
|
|
||||||
def test_cformat():
|
def test_cformat():
|
||||||
|
|||||||
Loaded 100 of 112 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user