Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

capabilities.kll 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Name = pjrcUSBCapabilities;
  2. Version = 0.8;
  3. Author = "HaaTa (Jacob Alexander) 2014-2016";
  4. KLL = 0.3d;
  5. # Modified Date
  6. Date = 2016-05-31;
  7. # Output capabilities
  8. consCtrlOut => Output_consCtrlSend_capability( consCode : 2 );
  9. noneOut => Output_noneSend_capability();
  10. sysCtrlOut => Output_sysCtrlSend_capability( sysCode : 1 );
  11. usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 );
  12. mouseOut => Output_usbMouse_capability( mouseCode : 2, relative_x : 2, relative_y : 2 );
  13. # Configuration capabilities
  14. kbdProtocolBoot => Output_kbdProtocolBoot_capability();
  15. kbdProtocolNKRO => Output_kbdProtocolNKRO_capability();
  16. toggleKbdProtocol => Output_toggleKbdProtocol_capability();
  17. # Locale Settings
  18. keyboardLocale => KeyboardLocale_define;
  19. keyboardLocale = 0;
  20. # Default KRO Mode
  21. # Set to 0 for Boot Mode (6KRO)
  22. # Set to 1 for NKRO Mode (default)
  23. usbProtocol => USBProtocol_define;
  24. usbProtocol = 1;
  25. # Bootloader Mode capability
  26. # XXX
  27. # By default this is disabled on purpose
  28. # It is a large security hazard
  29. flashModeEnabled => flashModeEnabled_define;
  30. flashModeEnabled = 0;
  31. flashMode => Output_flashMode_capability();
  32. ## USB Compatibility Flags ##
  33. # Some OSs and USB Chipsets have issues with USB features
  34. # These flags are available to provide ways to debug them
  35. # Enable USB Suspend/Low Power mode
  36. # After a period of inactivity, the USB host may request that the device go into low power mode
  37. # This is different than system sleep, though it may occur around the same time
  38. enableUSBSuspend => enableUSBSuspend_define;
  39. enableUSBSuspend = 1;
  40. # Enable Low-power Negotiation
  41. # In order to support low-powered USB hosts, such as an Apple IPad, a low power auto-negotiation scheme has been implemented
  42. # Unfortunately, badly behaved USB Chipsets and OSs may not work correctly with this support enabled
  43. # Typical symptoms:
  44. # * USB constantly re-initializing when first plugging in
  45. enableUSBLowPowerNegotiation => enableUSBLowPowerNegotiation_define;
  46. enableUSBLowPowerNegotiation = 0;
  47. # Enable Device Restart on USB Timeout
  48. # *USE AS LAST RETORT*
  49. # To work around some USB OS, Chipset and Firwmare bugs, an auto-restart mechanism has been implemented
  50. # Depending on the situation, this can be rather aggressive.
  51. # This behaves differently than the Low-power negotiation restart and have very different triggering schemes.
  52. enableDeviceRestartOnUSBTimeout => enableDeviceRestartOnUSBTimeout_define;
  53. enableDeviceRestartOnUSBTimeout = 0;
  54. # Enable Host-Resume (wake-from-sleep)
  55. # On specific actions (such as USB key actions), will trigger the host device to wake if USB is suspended
  56. enableUSBResume => enableUSBResume_define;
  57. enableUSBResume = 1;
  58. ## USB Endpoint Configuration ##
  59. # 1 - Enable endpoint
  60. # 0 - Disable endpoint
  61. # Any/all endpoints can be disabled
  62. # But you'll lose functionality for that feature
  63. # Disabling endpoints will save RAM and Flash on the target MCU
  64. # Joystick Endpoint
  65. # *Currently Unused*
  66. enableJoystick => enableJoystick_define;
  67. enableJoystick = 0;
  68. # Mouse Endpoint
  69. enableMouse => enableMouse_define;
  70. enableMouse = 1;
  71. # Keyboard Endpoint
  72. enableKeyboard => enableKeyboard_define;
  73. enableKeyboard = 1;
  74. # CDC / Serial Port Endpoint
  75. enableVirtualSerialPort => enableVirtualSerialPort_define;
  76. enableVirtualSerialPort = 1;
  77. # Raw I/O Endpoint
  78. # *Currently Unused*
  79. enableRawIO => enableRawIO_define;
  80. enableRawIO = 0;