diff options
| author | tmk <nobody@nowhere> | 2011-12-22 01:05:28 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2011-12-22 01:05:28 +0900 |
| commit | 7386c761912530bbb53496002ab32d02c8a86833 (patch) | |
| tree | d974c9f82f4db2434ac26357f4f3e38a2d4f6777 | |
| parent | baf885dc31e1d4ac98e03870dffea6e19c259427 (diff) | |
| download | qmk_firmware-7386c761912530bbb53496002ab32d02c8a86833.tar.gz qmk_firmware-7386c761912530bbb53496002ab32d02c8a86833.zip | |
fixed a bug on host_system_send().
| -rw-r--r-- | adb_usb/Makefile | 2 | ||||
| -rw-r--r-- | adb_usb/config.h | 1 | ||||
| -rw-r--r-- | hhkb/config_pjrc.h | 1 | ||||
| -rw-r--r-- | host.c | 2 | ||||
| -rw-r--r-- | pjrc/usb.c | 6 |
5 files changed, 9 insertions, 3 deletions
diff --git a/adb_usb/Makefile b/adb_usb/Makefile index 56b342df9..f4c5031cb 100644 --- a/adb_usb/Makefile +++ b/adb_usb/Makefile | |||
| @@ -38,7 +38,7 @@ F_CPU = 16000000 | |||
| 38 | # | 38 | # |
| 39 | #MOUSEKEY_ENABLE = yes # Mouse keys | 39 | #MOUSEKEY_ENABLE = yes # Mouse keys |
| 40 | #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support | 40 | #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support |
| 41 | #EXTRAKEY_ENABLE = yes # Audio control and System control | 41 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 42 | #NKRO_ENABLE = yes # USB Nkey Rollover | 42 | #NKRO_ENABLE = yes # USB Nkey Rollover |
| 43 | 43 | ||
| 44 | 44 | ||
diff --git a/adb_usb/config.h b/adb_usb/config.h index 6431ede4c..52d5925a5 100644 --- a/adb_usb/config.h +++ b/adb_usb/config.h | |||
| @@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | 23 | ||
| 24 | #define VENDOR_ID 0xFEED | 24 | #define VENDOR_ID 0xFEED |
| 25 | #define PRODUCT_ID 0x0ADB | 25 | #define PRODUCT_ID 0x0ADB |
| 26 | #define DEVICE_VER 0x0101 | ||
| 26 | #define MANUFACTURER t.m.k. | 27 | #define MANUFACTURER t.m.k. |
| 27 | #define PRODUCT ADB keyboard converter | 28 | #define PRODUCT ADB keyboard converter |
| 28 | #define DESCRIPTION convert ADB keyboard to USB | 29 | #define DESCRIPTION convert ADB keyboard to USB |
diff --git a/hhkb/config_pjrc.h b/hhkb/config_pjrc.h index 8379202ca..fffe3522c 100644 --- a/hhkb/config_pjrc.h +++ b/hhkb/config_pjrc.h | |||
| @@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | 23 | ||
| 24 | #define VENDOR_ID 0xFEED | 24 | #define VENDOR_ID 0xFEED |
| 25 | #define PRODUCT_ID 0xCAFE | 25 | #define PRODUCT_ID 0xCAFE |
| 26 | #define DEVICE_VER 0x0101 | ||
| 26 | #define MANUFACTURER t.m.k. | 27 | #define MANUFACTURER t.m.k. |
| 27 | #define PRODUCT HHKB mod | 28 | #define PRODUCT HHKB mod |
| 28 | #define DESCRIPTION t.m.k. keyboard firmware for HHKB mod | 29 | #define DESCRIPTION t.m.k. keyboard firmware for HHKB mod |
| @@ -142,7 +142,7 @@ void host_mouse_send(report_mouse_t *report) | |||
| 142 | void host_system_send(uint16_t data) | 142 | void host_system_send(uint16_t data) |
| 143 | { | 143 | { |
| 144 | if (!driver) return; | 144 | if (!driver) return; |
| 145 | (*driver->send_consumer)(data); | 145 | (*driver->send_system)(data); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | void host_consumer_send(uint16_t data) | 148 | void host_consumer_send(uint16_t data) |
diff --git a/pjrc/usb.c b/pjrc/usb.c index 9989a4b2d..20afc1b88 100644 --- a/pjrc/usb.c +++ b/pjrc/usb.c | |||
| @@ -66,6 +66,10 @@ | |||
| 66 | # define PRODUCT_ID 0xBABE | 66 | # define PRODUCT_ID 0xBABE |
| 67 | #endif | 67 | #endif |
| 68 | 68 | ||
| 69 | #ifndef DEVICE_VER | ||
| 70 | # define DEVICE_VER 0x0100 | ||
| 71 | #endif | ||
| 72 | |||
| 69 | 73 | ||
| 70 | // USB devices are supposed to implment a halt feature, which is | 74 | // USB devices are supposed to implment a halt feature, which is |
| 71 | // rarely (if ever) used. If you comment this line out, the halt | 75 | // rarely (if ever) used. If you comment this line out, the halt |
| @@ -134,7 +138,7 @@ static uint8_t PROGMEM device_descriptor[] = { | |||
| 134 | ENDPOINT0_SIZE, // bMaxPacketSize0 | 138 | ENDPOINT0_SIZE, // bMaxPacketSize0 |
| 135 | LSB(VENDOR_ID), MSB(VENDOR_ID), // idVendor | 139 | LSB(VENDOR_ID), MSB(VENDOR_ID), // idVendor |
| 136 | LSB(PRODUCT_ID), MSB(PRODUCT_ID), // idProduct | 140 | LSB(PRODUCT_ID), MSB(PRODUCT_ID), // idProduct |
| 137 | 0x00, 0x01, // bcdDevice | 141 | LSB(DEVICE_VER), MSB(DEVICE_VER), // bcdDevice |
| 138 | 1, // iManufacturer | 142 | 1, // iManufacturer |
| 139 | 2, // iProduct | 143 | 2, // iProduct |
| 140 | 0, // iSerialNumber | 144 | 0, // iSerialNumber |
