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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /* Copyright (C) 2014-2016 by Jacob Alexander
  2. *
  3. * This file is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This file is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this file. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. // This file was generated by the kll compiler, DO NOT EDIT.
  17. // Generation Date: 2016-11-11
  18. // KLL Backend: kiibohd
  19. // KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f
  20. // KLL Git Changes: None
  21. // Compiler arguments:
  22. // ../../kll/kll.py
  23. // /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
  24. // /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
  25. // /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
  26. // /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
  27. // -d
  28. // /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
  29. // /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
  30. // -p
  31. // /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
  32. // -p
  33. // /mnt/1/share/i75/controller/kll/layouts/colemak.kll
  34. // --backend
  35. // kiibohd
  36. // --templates
  37. // /mnt/1/share/i75/controller/kll/templates/kiibohdKeymap.h
  38. // /mnt/1/share/i75/controller/kll/templates/kiibohdDefs.h
  39. // --outputs
  40. // generatedKeymap.h
  41. // kll_defs.h
  42. //
  43. // - Base Layer -
  44. // MatrixArmCapabilities
  45. // /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
  46. // PartialMapCapabilities
  47. // /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
  48. // pjrcUSBCapabilities
  49. // /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
  50. // MD1
  51. // /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
  52. // - Default Layer -
  53. // md1Overlay
  54. // /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
  55. // stdFuncMap
  56. // /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
  57. // - Partial Layers -
  58. // Layer 1
  59. // hhkbpro2
  60. // /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
  61. // Layer 2
  62. // colemak
  63. // /mnt/1/share/i75/controller/kll/layouts/colemak.kll
  64. #pragma once
  65. // ----- Enums -----
  66. // Capability Indices
  67. typedef enum CapabilityIndex {
  68. CustomAction_action1_capability_index,
  69. CustomAction_blockHold_capability_index,
  70. CustomAction_blockKey_capability_index,
  71. Macro_layerLatch_capability_index,
  72. Macro_layerLock_capability_index,
  73. Macro_layerRotate_capability_index,
  74. Macro_layerShift_capability_index,
  75. Macro_layerState_capability_index,
  76. Output_consCtrlSend_capability_index,
  77. Output_flashMode_capability_index,
  78. Output_kbdProtocolBoot_capability_index,
  79. Output_kbdProtocolNKRO_capability_index,
  80. Output_noneSend_capability_index,
  81. Output_sysCtrlSend_capability_index,
  82. Output_toggleKbdProtocol_capability_index,
  83. Output_usbCodeSend_capability_index,
  84. Output_usbMouse_capability_index,
  85. } CapabilityIndex;
  86. // ----- KLL Variables -----
  87. // ----- Defines -----
  88. // -- Interconnect Node Maximum --
  89. #define InterconnectNodeMax 0x1
  90. #define enableRawIO_define 0
  91. #define enableUSBResume_define 1
  92. #define MinDebounceTime_define 5
  93. #define IndexWordSize_define 16
  94. #define enableMouse_define 1
  95. #define DebounceDivThreshold_define 65535
  96. #define flashModeEnabled_define 0
  97. #define enableKeyboard_define 1
  98. #define enableUSBSuspend_define 1
  99. #define DebounceThrottleDiv_define 0
  100. #define enableJoystick_define 0
  101. #define StateWordSize_define 8
  102. #define enableVirtualSerialPort_define 1
  103. #define StrobeDelay_define 0
  104. #define KeyboardLocale_define 0
  105. #define enableUSBLowPowerNegotiation_define 0
  106. #define enableDeviceRestartOnUSBTimeout_define 0
  107. #define USBProtocol_define 1
  108. #define CapabilitiesNum_KLL 17
  109. #define ResultMacroNum_KLL 96
  110. #define TriggerMacroNum_KLL 126
  111. #define LayerNum_KLL 3