]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Adding support for kll 0.3d
authorJacob Alexander <haata@kiibohd.com>
Sat, 17 Oct 2015 22:03:21 +0000 (15:03 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sat, 17 Oct 2015 22:09:03 +0000 (15:09 -0700)
- Requires kll compiler update
- Includes descriptor update to handle new consumer control codes

Macro/PartialMap/usb_hid.h
Output/pjrcUSB/arm/usb_desc.c

index a9ac5689c5fe22990bb557ce01e95500f4464a44..4f5cd7a4e8662abd939dc00c0b19e0b5672dc9fc 100644 (file)
 #define CONSUMER_BROADCAST_MODE          0x064
 #define CONSUMER_SNAPSHOT                0x065
 #define CONSUMER_STILL                   0x066
-// 0x067 - 0x07F Reserved
+// 0x067 - 0x06E Reserved?
+#define CONSUMER_BRIGHTNESS_INCREMENT    0x06F
+#define CONSUMER_BRIGHTNESS_DECREMENT    0x070
+
+#define CONSUMER_BACKLIGHT_TOGGLE        0x072
+#define CONSUMER_BRIGHTNESS_MIN          0x073
+#define CONSUMER_BRIGHTNESS_MAX          0x074
+#define CONSUMER_BRIGHTNESS_AUTO         0x075
+// 0x076 - 0x07F Reserved
 
 #define CONSUMER_ASSIGN_SELECTION        0x081
 #define CONSUMER_MODE_STEP               0x082
 #define AC_SPLIT                    0x29A
 #define AC_DISTRIBUTE_HORIZONTALLY  0x29B
 #define AC_DISTRIBUTE_VERTICALLY    0x29C
-// 0x29D-0xFFFF Reserved
+#define AC_NEXT_KEYBOARD_LAYOUT_SEL 0x29D
+// 0x29E-0xFFFF Reserved
 
index 70ece51ca7345bc5ab52b936fffd28b28c7f7fea..ee278e80ec3b26c8b2488bb8e4993fe017e50647 100644 (file)
@@ -300,7 +300,7 @@ static uint8_t sys_ctrl_report_desc[] = {
        0x26, 0x9C, 0x02,    //   Logical Maximum (668),
        0x05, 0x0C,          //   Usage Page (Consumer),
        0x19, 0x01,          //   Usage Minimum (1),
-       0x2A, 0x9C, 0x02,    //   Usage Maximum (668),
+       0x2A, 0x9D, 0x02,    //   Usage Maximum (669),
        0x81, 0x00,          //   Input (Data, Array),
        0xc0,                // End Collection - Consumer Control
 };